big refactoring: J1939, log output, state machine bug fixes
This commit is contained in:
@@ -27,11 +27,31 @@ typedef struct{
|
||||
uint32_t tick;
|
||||
}j_receive_t;
|
||||
|
||||
typedef struct{
|
||||
uint32_t ExtId;
|
||||
uint8_t DLC;
|
||||
uint8_t data[8];
|
||||
uint32_t tick;
|
||||
}j1939_rx_frame_t;
|
||||
|
||||
typedef struct{
|
||||
uint32_t ExtId;
|
||||
uint8_t DLC;
|
||||
uint8_t data[8];
|
||||
}j1939_tx_frame_t;
|
||||
|
||||
extern j_receive_t j_rx;
|
||||
|
||||
|
||||
void J_SendCTS(j_receive_t rx);
|
||||
void J_SendACK(j_receive_t rx);
|
||||
void J1939_ExchangeRxBuffer(void);
|
||||
void J1939_ExchangeTxBuffer(void);
|
||||
void J1939_InitBuffers(void);
|
||||
uint16_t J1939_GetRxBufferCount(void);
|
||||
uint16_t J1939_GetTxBufferCount(void);
|
||||
uint32_t J1939_GetRxOverflowCount(void);
|
||||
uint32_t J1939_GetTxOverflowCount(void);
|
||||
|
||||
|
||||
void GBT_CAN_ReInit();
|
||||
|
||||
Reference in New Issue
Block a user