|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
What sense_link.c and sense_link_view.c share and nobody else sees: the set-up's frame layout, the status register index, and three names the two files cross. More...
Go to the source code of this file.
Macros | |
| #define | FRAME_N 4u |
| #define | BUS_AT ((uint8_t)LINK_SN_ENABLE) |
| #define | I228_AT ((uint8_t)LINK_SN_I228_ADDR) |
| #define | I3221_AT ((uint8_t)LINK_SN_I3221_ADDR) |
| #define | ST(reg) |
Functions | |
| sense_link_op_kind_t | sense_link_write_owed (const sense_link_t *s, uint16_t *regs) |
The write owed now, or NONE, with its registers in regs. | |
| unsigned | sense_link_status_count (const sense_link_t *s) |
| The registers a SENSE status read takes. | |
Variables | |
| const uint16_t | sense_link_en_bit [2] |
What sense_link.c and sense_link_view.c share and nobody else sees: the set-up's frame layout, the status register index, and three names the two files cross.
Not part of the module's interface (sense_link.h).
SPDX-License-Identifier: MIT
| #define ST | ( | reg | ) |
| unsigned sense_link_status_count | ( | const sense_link_t * | s | ) |
The registers a SENSE status read takes.
| s | The link state. |
| sense_link_op_kind_t sense_link_write_owed | ( | const sense_link_t * | s, |
| uint16_t * | regs ) |
The write owed now, or NONE, with its registers in regs.
| s | The link state. |
| regs | Receives the registers of the write. |