rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
Loading...
Searching...
No Matches
sense_link_int.h
Go to the documentation of this file.
1
11
#ifndef SENSE_LINK_INT_H
12
#define SENSE_LINK_INT_H
13
14
#include <stdbool.h>
15
#include <stdint.h>
16
17
#include "
sense_link.h
"
18
19
/* The three frames of the set-up, each four registers from its first. */
20
#define FRAME_N 4u
21
#define BUS_AT ((uint8_t)LINK_SN_ENABLE)
22
#define I228_AT ((uint8_t)LINK_SN_I228_ADDR)
23
#define I3221_AT ((uint8_t)LINK_SN_I3221_ADDR)
24
25
/* A status register by its page number. */
26
#define ST(reg) ((unsigned)(reg) - (unsigned)LINK_SN_FLAGS)
27
35
sense_link_op_kind_t
sense_link_write_owed
(
const
sense_link_t
*
s
,
36
uint16_t *regs);
37
46
unsigned
sense_link_status_count
(
const
sense_link_t
*
s
);
47
48
/* The ENABLE bit of each part, indexed by sense_link_part_t. */
49
extern
const
uint16_t sense_link_en_bit[2];
50
51
#endif
/* SENSE_LINK_INT_H */
s
#define s
Short name for esc_stick_s inside the five stick-class files.
Definition
esc_stick_panel_int.h:295
sense_link_write_owed
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.
Definition
sense_link.c:294
sense_link_status_count
unsigned sense_link_status_count(const sense_link_t *s)
The registers a SENSE status read takes.
Definition
sense_link.c:383
sense_link.h
The panel's half of the SENSE (0x2B), SERVO_SENSE (0x2C) and SERVO_WIN (0x31) link pages: what is wri...
sense_link_op_kind_t
sense_link_op_kind_t
The exchange sense_link_next() asks for.
Definition
sense_link.h:293
sense_link_t
The panel's state of the SENSE link page.
Definition
sense_link.h:386
shared
bench
sense_link_int.h
Generated by
1.18.0