Init
This commit is contained in:
parent
c25a8098af
commit
b14c25bc1e
|
|
@ -27,14 +27,6 @@ typedef enum
|
||||||
LIN_TIMEOUT, /*!< RX overflow occurred */
|
LIN_TIMEOUT, /*!< RX overflow occurred */
|
||||||
} lin_event_id_t;
|
} lin_event_id_t;
|
||||||
|
|
||||||
typedef struct __attribute__((packed)) {
|
|
||||||
uint8_t id; // ID команды (0-63)
|
|
||||||
uint8_t dataLen; // Длина данных (0-8)
|
|
||||||
uint8_t data[8]; // Массив данных
|
|
||||||
uint8_t checksum; // Контрольная сумма
|
|
||||||
lin_event_id_t event; // Событие/статус приема
|
|
||||||
} lin_frame_t;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LIN_DIRECTION_GET = 0,
|
LIN_DIRECTION_GET = 0,
|
||||||
LIN_DIRECTION_SET = 1
|
LIN_DIRECTION_SET = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue