rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
33
bool
xl2515_init
(uint32_t bitrate);
34
45
bool
xl2515_send
(
const
link_can_frame_t
*f);
46
60
bool
xl2515_recv
(
link_can_frame_t
*f, uint32_t *refused);
61
71
void
xl2515_errors
(uint8_t *tx_errors, uint8_t *rx_errors, uint8_t *flags);
72
84
bool
xl2515_take_overflow
(
void
);
85
86
#endif
/* RCBENCH_XL2515_H */
link_can.h
The page protocol over CAN (Controller Area Network).
link_can_frame_t
One CAN frame: its identifier and up to 8 payload bytes.
Definition
link_can.h:93
xl2515_recv
bool xl2515_recv(link_can_frame_t *f, uint32_t *refused)
Take one frame from whichever receive buffer has one.
Definition
xl2515.c:215
xl2515_take_overflow
bool xl2515_take_overflow(void)
True if a frame arrived with both receive buffers full since the last call.
Definition
xl2515.c:220
xl2515_errors
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
xl2515_send
bool xl2515_send(const link_can_frame_t *f)
Queue one frame in TXB0 and request transmission.
Definition
xl2515.c:163
xl2515_init
bool xl2515_init(uint32_t bitrate)
Reset, set the bit timing for bitrate, and enter normal mode.
Definition
xl2515.c:102
firmware
iomcu
src
xl2515.h
Generated by
1.18.0