|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
What crosses the link, independent of the transport: an op, a page, an offset, a count and up to a page of registers. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | link_msg_t |
| One link message: the op, the register window and its values. More... | |
Macros | |
| #define | LINK_MAX_REGS 32 |
| Registers in a page, and therefore in the largest transfer. | |
Enumerations | |
| enum | link_op_t { LINK_OP_READ = 0x01 , LINK_OP_WRITE = 0x02 , LINK_OP_DATA = 0x03 , LINK_OP_ACK = 0x04 , LINK_OP_NACK = 0x05 } |
| The operation a link message carries. More... | |
| enum | link_nack_t { LINK_NACK_BAD_PAGE = 1 , LINK_NACK_BAD_RANGE = 2 , LINK_NACK_READ_ONLY = 3 , LINK_NACK_BAD_VALUE = 4 , LINK_NACK_NOT_ARMED = 5 , LINK_NACK_BUSY = 6 } |
| Reasons a NACK (negative acknowledge) carries. More... | |
What crosses the link, independent of the transport: an op, a page, an offset, a count and up to a page of registers.
The dispatcher and the poller work on this struct; link_can.h maps it onto CAN (Controller Area Network) frames.
SPDX-License-Identifier: MIT
| enum link_nack_t |
Reasons a NACK (negative acknowledge) carries.
| enum link_op_t |