mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Move C API to separate folder
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
#include <sta/can/controller.hpp>
|
||||
#include <sta/rtos/system/can_msg.h>
|
||||
#include <sta/rtos/c_api/can_msg.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
@@ -1,49 +0,0 @@
|
||||
/**
|
||||
* @file
|
||||
* @brief CAN driver message request types for use in C code.
|
||||
*/
|
||||
#ifndef STA_RTOS_SYSTEM_CAN_MSG_H
|
||||
#define STA_RTOS_SYSTEM_CAN_MSG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
/**
|
||||
* @brief CAN message header.
|
||||
*
|
||||
* @ingroup STA_RTOS_CanBus
|
||||
*/
|
||||
struct CanMsgHeader
|
||||
{
|
||||
uint32_t sid; /**< Message SID */
|
||||
uint32_t eid; /**< Message EID */
|
||||
uint8_t format; /**< Message ID format */
|
||||
uint8_t payloadLength; /**< Payload length */
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @brief Element type for CAN data message queue.
|
||||
*
|
||||
* @ingroup STA_RTOS_CanBus
|
||||
*/
|
||||
struct CanDataMsg
|
||||
{
|
||||
struct CanMsgHeader header; /**< Message header data */
|
||||
uint8_t payload[64]; /**< Message payload */
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @brief Element type for CAN system message queue.
|
||||
*
|
||||
* @ingroup STA_RTOS_CanBus
|
||||
*/
|
||||
struct CanSysMsg
|
||||
{
|
||||
struct CanMsgHeader header; /**< Message header data */
|
||||
uint8_t payload[8]; /**< Message payload */
|
||||
};
|
||||
|
||||
|
||||
#endif // STA_RTOS_SYSTEM_CAN_MSG_H
|
Reference in New Issue
Block a user