|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
SPDX-License-Identifier: MIT. More...
Macros | |
| #define | STATE_MASK 0x0Fu |
| Status byte: low nibble is the motor state, high nibble the warnings. | |
| #define | WARN_MASK 0xF0u |
| #define | WARN_UNDERVOLT 0x10u |
| #define | WARN_OVERTEMP 0x20u |
| #define | WARN_OVERCURR 0x40u |
| #define | WARN_DEV_BEC 0x80u |
| #define | WARN_SETPOINT 0xC0u |
Functions | |
| const char * | openyge_state_name (uint8_t state) |
| A short name for a motor state, or "?" for a reserved value. | |
| void | openyge_status_decode (uint8_t status1, openyge_status_t *out) |
| Decode the status byte of a telemetry frame. | |
SPDX-License-Identifier: MIT.
| #define WARN_DEV_BEC 0x80u |
subject is the BEC, not the ESC
| #define WARN_OVERCURR 0x40u |
overcurrent warning bit
| #define WARN_OVERTEMP 0x20u |
overtemperature warning bit
| #define WARN_SETPOINT 0xC0u |
the overloaded combination
| #define WARN_UNDERVOLT 0x10u |
undervoltage warning bit
| const char * openyge_state_name | ( | uint8_t | state | ) |
A short name for a motor state, or "?" for a reserved value.
| state | State value; only the low nibble is used. |
| void openyge_status_decode | ( | uint8_t | status1, |
| openyge_status_t * | out ) |
Decode the status byte of a telemetry frame.
| status1 | The status byte. |
| out | Receives the decoded status; NULL does nothing. |