From f0bbd7a7fc120b9df0159cadc18e395ea35e869d Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 21 Nov 2025 13:18:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/LinIO.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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);