canable-fw-normaldotcom/inc/slcan.h

14 lines
358 B
C
Raw Normal View History

2015-01-14 07:09:08 -08:00
#ifndef _SLCAN_H
#define _SLCAN_H
2016-02-29 10:51:25 -08:00
int8_t slcan_parse_frame(uint8_t *buf, CanRxMsgTypeDef *frame);
int8_t slcan_parse_str(uint8_t *buf, uint8_t len);
2015-01-14 07:09:08 -08:00
// maximum rx buffer len: extended CAN frame with timestamp
#define SLCAN_MTU 30 // (sizeof("T1111222281122334455667788EA5F\r")+1)
2015-01-14 07:09:08 -08:00
#define SLCAN_STD_ID_LEN 3
#define SLCAN_EXT_ID_LEN 8
#endif // _SLCAN_H