32#define BCAN_MAX_TX_MSG 256
33#define BCAN_MAX_RX_MSG 256
36#define BCAN_DEV_UNINIT -1
37#define BCAN_DEV_OPEN (1 << 0)
38#define BCAN_DEV_CLOSE (1 << 1)
39#define BCAN_DEV_BAUD_SET (1 << 2)
40#define BCAN_DEV_NORMAL (1 << 3)
41#define BCAN_DEV_LOOPBACK (1 << 4)
42#define BCAN_DEV_CONFIG (1 << 5)
43#define BCAN_DEV_START (1 << 6)
44#define BCAN_DEV_STOP (1 << 7)
45#define BCAN_DEV_ACTIVE (1 << 8)
46#define BCAN_DEV_RECVD (1 << 9)
70int bcan_open(uint32_t dev_index, uint32_t flags, uint64_t tx_to,
int bcan_recv(bcan_hdl_t hdl, bcan_msg_t *buf, uint32_t num_msg)
const char * bcan_bld_info_short(void)
int bcan_set_baudrate(bcan_hdl_t hdl, uint32_t rate)
int bcan_unset_loopback(bcan_hdl_t hdl)
const char * bcan_bld_info(void)
int bcan_id_remove_all(bcan_hdl_t hdl)
int bcan_get_err_counter(bcan_hdl_t hdl, uint8_t *rx_err, uint8_t *tx_err)
int bcan_id_add(bcan_hdl_t hdl, uint32_t id_start, uint32_t id_end)
int bcan_stop(bcan_hdl_t hdl)
const char * bcan_get_libversion(void)
int bcan_get_status(bcan_hdl_t hdl)
int bcan_open(uint32_t dev_index, uint32_t flags, uint64_t tx_to, uint64_t rx_to, bcan_hdl_t *hdl)
int bcan_id_add_all(bcan_hdl_t hdl)
int bcan_start(bcan_hdl_t hdl)
int bcan_set_loopback(bcan_hdl_t hdl)
int bcan_close(bcan_hdl_t hdl)
int bcan_get_baudrate(bcan_hdl_t hdl, uint32_t *rate)
int bcan_send_hi_pri(bcan_hdl_t hdl, bcan_msg_t *buf)
int bcan_send(bcan_hdl_t hdl, bcan_msg_t *buf, uint32_t num_msg)
const char * bcan_get_err_msg(int err_code)
int bcan_id_remove(bcan_hdl_t hdl, uint32_t id_start, uint32_t id_end)