rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
Loading...
Searching...
No Matches
link_control.h
Go to the documentation of this file.
1
12
#ifndef RCBENCH_LINK_CONTROL_H
13
#define RCBENCH_LINK_CONTROL_H
14
15
#include <stdbool.h>
16
#include <stdint.h>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
30
bool
link_arm_value_ok
(uint16_t arm);
31
42
uint16_t
link_arm_roles
(uint16_t arm);
43
78
uint8_t
link_control_write
(uint16_t *regs, uint8_t off, uint8_t n,
79
const
uint16_t *in,
bool
may_arm,
bool
*cleared);
80
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* RCBENCH_LINK_CONTROL_H */
link_arm_roles
uint16_t link_arm_roles(uint16_t arm)
The roles arm arms, as LINK_ARM_ROLES bits: LINK_ARM_ROLES for LINK_ARM_ALL, the value itself for a s...
Definition
link_control.c:55
link_control_write
uint8_t link_control_write(uint16_t *regs, uint8_t off, uint8_t n, const uint16_t *in, bool may_arm, bool *cleared)
Validate a register window of the CONTROL page and store it.
Definition
link_control.c:63
link_arm_value_ok
bool link_arm_value_ok(uint16_t arm)
Whether arm is a value CONTROL's ARM takes: 0, LINK_ARM_ALL, or a non-empty set of LINK_ARM_ROLES.
Definition
link_control.c:49
shared
link
include
link_control.h
Generated by
1.18.0