1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net/someip.h
Karl Fessel 05f114d0af doc: fix unbalaced grouping
- most were trivial
    - missing group close or open
    - extra space
    - no doxygen comment
- name commad might open an implicit group
    this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00

74 lines
1.7 KiB
C

/*
* Copyright (C) 2020 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_someip SOME/IP
* @ingroup net
* @brief Provides SOME/IP header and field defines
*
* @{
*
* @file
* @brief SOME/IP header and field definitions
*
* @author Jannes Volkens <jannes.volkens@haw-hamburg.de>
*/
#ifndef NET_SOMEIP_H
#define NET_SOMEIP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
/**
* @brief SOME/IP header length size, excluding payload
*/
#define SOMEIP_HDR_LENGTH (8U)
/**
* @brief SOME/IP full header size, including all field expect for the payload
*/
#define SOMEIP_FULL_HDR_SIZE (16U)
/**
* @brief Structure of the Message ID
*/
typedef struct {
uint16_t service_id; /**< Service ID */
uint16_t method_id; /**< Method ID */
} someip_message_id_t;
/**
* @brief Structure of the Request ID
*/
typedef struct {
uint16_t client_id; /**< Client ID */
uint16_t session_id; /**< Session ID */
} someip_request_id_t;
/**
* @brief SOME/IP header
*/
typedef struct __attribute__((packed)) {
someip_message_id_t message_id; /**< Message ID */
uint32_t length; /**< Length */
someip_request_id_t request_id; /**< Request ID */
uint8_t protocol_version; /**< Protocol Version */
uint8_t interface_version; /**< Interface Version*/
uint8_t msg_type; /**< Message Type*/
uint8_t return_code; /**< Return Code*/
} someip_hdr_t;
#ifdef __cplusplus
}
#endif
#endif /* NET_SOMEIP_H */
/** @} */