Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include <stdint.h>
26
30
#define SOMEIP_HDR_LENGTH (8U)
34
#define SOMEIP_FULL_HDR_SIZE (16U)
35
39
typedef
struct
{
40
uint16_t
service_id
;
41
uint16_t
method_id
;
42
}
someip_message_id_t
;
43
47
typedef
struct
{
48
uint16_t
client_id
;
49
uint16_t
session_id
;
50
}
someip_request_id_t
;
51
55
typedef
struct
__attribute__((packed)) {
56
someip_message_id_t
message_id
;
57
uint32_t
length
;
58
someip_request_id_t
request_id
;
59
uint8_t
protocol_version
;
60
uint8_t
interface_version
;
61
uint8_t
msg_type
;
62
uint8_t
return_code
;
63
}
someip_hdr_t
;
64
65
#ifdef __cplusplus
66
}
67
#endif
68
someip_hdr_t
SOME/IP header.
Definition:
someip.h:55
someip_hdr_t::length
uint32_t length
Length.
Definition:
someip.h:57
someip_hdr_t::protocol_version
uint8_t protocol_version
Protocol Version.
Definition:
someip.h:59
someip_hdr_t::request_id
someip_request_id_t request_id
Request ID.
Definition:
someip.h:58
someip_hdr_t::interface_version
uint8_t interface_version
Interface Version.
Definition:
someip.h:60
someip_hdr_t::return_code
uint8_t return_code
Return Code.
Definition:
someip.h:62
someip_hdr_t::message_id
someip_message_id_t message_id
Message ID.
Definition:
someip.h:56
someip_hdr_t::msg_type
uint8_t msg_type
Message Type.
Definition:
someip.h:61
someip_message_id_t
Structure of the Message ID.
Definition:
someip.h:39
someip_message_id_t::service_id
uint16_t service_id
Service ID.
Definition:
someip.h:40
someip_message_id_t::method_id
uint16_t method_id
Method ID.
Definition:
someip.h:41
someip_request_id_t
Structure of the Request ID.
Definition:
someip.h:47
someip_request_id_t::client_id
uint16_t client_id
Client ID.
Definition:
someip.h:48
someip_request_id_t::session_id
uint16_t session_id
Session ID.
Definition:
someip.h:49
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1