rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
xl2515.h
Go to the documentation of this file.
1
13
14#ifndef RCBENCH_XL2515_H
15#define RCBENCH_XL2515_H
16
17#include <stdbool.h>
18#include <stdint.h>
19
20#include "link_can.h"
21
33bool xl2515_init(uint32_t bitrate);
34
45bool xl2515_send(const link_can_frame_t *f);
46
60bool xl2515_recv(link_can_frame_t *f, uint32_t *refused);
61
71void xl2515_errors(uint8_t *tx_errors, uint8_t *rx_errors, uint8_t *flags);
72
84bool xl2515_take_overflow(void);
85
86#endif /* RCBENCH_XL2515_H */
bool xl2515_recv(link_can_frame_t *f, uint32_t *refused)
Take one frame from whichever receive buffer has one.
Definition xl2515.c:215
bool xl2515_take_overflow(void)
True if a frame arrived with both receive buffers full since the last call.
Definition xl2515.c:220
void xl2515_errors(uint8_t *tx_errors, uint8_t *rx_errors, uint8_t *flags)
The controller's own error counters, for the bring-up report.
Definition xl2515.c:232
bool xl2515_send(const link_can_frame_t *f)
Queue one frame in TXB0 and request transmission.
Definition xl2515.c:163
bool xl2515_init(uint32_t bitrate)
Reset, set the bit timing for bitrate, and enter normal mode.
Definition xl2515.c:102