diff --git a/Inc/LinIO.h b/Inc/LinIO.h index 8f2b0e0..24491f9 100644 --- a/Inc/LinIO.h +++ b/Inc/LinIO.h @@ -6,6 +6,21 @@ #define MODULE_LINIO_H #include "stdint.h" +#include "cmsis_os2.h" + +typedef enum { + LIN_DIRECTION_GET = 0, + LIN_DIRECTION_SET = 1 +} eDirection; + +typedef struct { + osMessageQueueId_t rxDataQueue; + eDirection direction; + uint8_t g_aTxBufferLen; + uint8_t g_aTxBuffer[8]; + uint8_t g_aRxBufferLen; + uint8_t g_aRxBuffer[8]; +} tLinData; typedef uint8_t (* LinIOTransaction )(void *env, uint8_t command, uint32_t timeout);