rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sense_limit.h
Go to the documentation of this file.
1
15
16#pragma once
17
18#include <stdint.h>
19
20#include "sense_page.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
39void sense_limit_read(sense_page_t *p, uint8_t off, uint8_t n,
40 uint16_t *out);
41
53void sense_limit_peek(const sense_page_t *p, uint8_t off, uint8_t n,
54 uint16_t *out);
55
72uint8_t sense_limit_write(sense_page_t *p, uint8_t off, uint8_t n,
73 const uint16_t *in);
74
81void sense_limit_kept(const sense_page_t *p, uint16_t *kept);
82
93uint8_t sense_limit_restore(sense_page_t *p, const uint16_t *kept);
94
95#ifdef __cplusplus
96}
97#endif
void sense_limit_kept(const sense_page_t *p, uint16_t *kept)
What is kept: the 12 limits into kept.
Definition sense_limit.c:72
void sense_limit_read(sense_page_t *p, uint8_t off, uint8_t n, uint16_t *out)
A SENSE_LIMIT read from the link.
Definition sense_limit.c:42
uint8_t sense_limit_restore(sense_page_t *p, const uint16_t *kept)
Kept limits back at boot, through sense_limit_write()'s checks: 0, or the refusal,...
Definition sense_limit.c:77
uint8_t sense_limit_write(sense_page_t *p, uint8_t off, uint8_t n, const uint16_t *in)
A SENSE_LIMIT write, judged whole.
Definition sense_limit.c:54
void sense_limit_peek(const sense_page_t *p, uint8_t off, uint8_t n, uint16_t *out)
The registers as they stand, OVER kept: for a report, not the link.
Definition sense_limit.c:33
The SENSE, SERVO_SENSE and SERVO_WIN link pages at the IOmcu: the I2C bus of the two current monitors...
The state of the SENSE page: its three register images, the generations, the pins and the map and lim...
Definition sense_page.h:78