Обновление

This commit is contained in:
cfif 2025-11-21 13:18:04 +03:00
parent 7f21d19397
commit f0bbd7a7fc
1 changed files with 15 additions and 0 deletions

View File

@ -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);