canable-fw-normaldotcom/Inc/slcan.h

14 lines
353 B
C
Raw Normal View History

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