Loading...
Searching...
No Matches
someip.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26
30#define SOMEIP_HDR_LENGTH (8U)
34#define SOMEIP_FULL_HDR_SIZE (16U)
35
39typedef struct {
40 uint16_t service_id;
41 uint16_t method_id;
43
47typedef struct {
48 uint16_t client_id;
49 uint16_t session_id;
51
55typedef struct __attribute__((packed)) {
57 uint32_t length;
61 uint8_t msg_type;
62 uint8_t return_code;
64
65#ifdef __cplusplus
66}
67#endif
68
SOME/IP header.
Definition someip.h:55
uint32_t length
Length.
Definition someip.h:57
uint8_t protocol_version
Protocol Version.
Definition someip.h:59
someip_request_id_t request_id
Request ID.
Definition someip.h:58
uint8_t interface_version
Interface Version.
Definition someip.h:60
uint8_t return_code
Return Code.
Definition someip.h:62
someip_message_id_t message_id
Message ID.
Definition someip.h:56
uint8_t msg_type
Message Type.
Definition someip.h:61
Structure of the Message ID.
Definition someip.h:39
uint16_t service_id
Service ID.
Definition someip.h:40
uint16_t method_id
Method ID.
Definition someip.h:41
Structure of the Request ID.
Definition someip.h:47
uint16_t client_id
Client ID.
Definition someip.h:48
uint16_t session_id
Session ID.
Definition someip.h:49