rcbench
Servo and ESC test bench: panel, IOmcu and shared C
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
36 uint16_t *regs);
37
47
48/* The ENABLE bit of each part, indexed by sense_link_part_t. */
49extern const uint16_t sense_link_en_bit[2];
50
51#endif /* SENSE_LINK_INT_H */
#define s
Short name for esc_stick_s inside the five stick-class files.
Definition esc_stick_panel_int.h:295