|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
Driver state: what is asked, what is known, and the transaction under way. More...
#include <pdmini.h>
Public Types | |
| enum | { PD_IDLE , PD_ATTACH , PD_WAIT , PD_GAP } |
Data Fields | |
| pdmini_io_t | io |
| pdmini_status_t | st |
| bool | want_output |
| bool | want_set |
| uint16_t | want_mv |
| uint16_t | want_ma |
| bool | identified |
| bool | answered |
| bool | restored |
| uint8_t | who_misses |
| uint16_t | who_failed |
| bool | state_known |
| int | slot |
| bool | data_known |
| uint8_t | on_value |
| uint8_t | en_value |
| bool | en_for |
| bool | on_seen |
| bool | on_confirmed |
| bool | on_sent |
| bool | reset_owed |
| bool | held_off |
| bool | off_owed |
| bool | blind_due |
| uint8_t | en_tries |
| bool | en_pending |
| uint32_t | en_at |
| bool | data_pending |
| uint8_t | data_tries |
| uint32_t | data_at |
| uint8_t | fails |
| uint8_t | state_fails |
| uint8_t | input_misses |
| bool | input_known |
| bool | input_seen |
| uint8_t | on_step |
| bool | polled_late |
| uint8_t | sag_reads |
| uint8_t | check |
| enum { ... } | phase |
| uint8_t | req [8] |
| size_t | req_n |
| uint8_t | cmd |
| bool | write |
| uint8_t | rx [72] |
| size_t | rx_n |
| uint32_t | t |
| uint32_t | deadline |
| uint32_t | last_display |
| uint32_t | last_state |
| uint32_t | last_input |
| uint32_t | last_identify |
| uint32_t | last_slot |
Driver state: what is asked, what is known, and the transaction under way.
| bool pdmini_t::answered |
identified once since pdmini_init()
| bool pdmini_t::blind_due |
a WHO_AM_I went unanswered: OFF blind
| uint8_t pdmini_t::check |
pdmini_check_t, PDMINI_CHECK_SENT between
| bool pdmini_t::data_known |
set_mv/set_ma read back from it
| bool pdmini_t::data_pending |
OUTPUT_DATA written, not yet read back
| uint8_t pdmini_t::data_tries |
OUTPUT_DATA writes towards the set points
| bool pdmini_t::en_for |
the state it was written towards
| bool pdmini_t::en_pending |
written, waiting for the confirming read
| uint8_t pdmini_t::en_tries |
OUTPUT_EN writes towards the wanted state
| uint8_t pdmini_t::en_value |
the argument last written
| uint8_t pdmini_t::fails |
consecutive
| bool pdmini_t::input_known |
READ_INPUT_STATE answered, the last read
| uint8_t pdmini_t::input_misses |
READ_INPUT_STATE unanswered, consecutive
| bool pdmini_t::input_seen |
and this firmware has answered it at all
| bool pdmini_t::off_owed |
gone while on: an OFF is sent blind
| bool pdmini_t::on_confirmed |
and twice: relied on
| bool pdmini_t::on_seen |
on_value seen to work once
| bool pdmini_t::on_sent |
an ON went out, not yet settled by a read
| uint8_t pdmini_t::on_value |
OUTPUT_EN's argument for on; learnt
| bool pdmini_t::reset_owed |
SYSTEM_RESET asked, not yet sent
| bool pdmini_t::restored |
wiring from before a restart: maybe on
| int pdmini_t::slot |
the active slot, -1 until read
| uint8_t pdmini_t::state_fails |
READ_OUTPUT_STATE failed, consecutive
| bool pdmini_t::state_known |
READ_OUTPUT_STATE answered since online
| uint32_t pdmini_t::t |
when the phase began, or the deadline
| bool pdmini_t::want_set |
set points named; none written before
| uint8_t pdmini_t::who_misses |
WHO_AM_I answered by not a byte, so far
| bool pdmini_t::write |
answered by nothing