rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
pdmini_t Struct Reference

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

Detailed Description

Driver state: what is asked, what is known, and the transaction under way.

Field Documentation

◆ answered

bool pdmini_t::answered

identified once since pdmini_init()

◆ blind_due

bool pdmini_t::blind_due

a WHO_AM_I went unanswered: OFF blind

◆ check

uint8_t pdmini_t::check

pdmini_check_t, PDMINI_CHECK_SENT between

◆ data_known

bool pdmini_t::data_known

set_mv/set_ma read back from it

◆ data_pending

bool pdmini_t::data_pending

OUTPUT_DATA written, not yet read back

◆ data_tries

uint8_t pdmini_t::data_tries

OUTPUT_DATA writes towards the set points

◆ en_for

bool pdmini_t::en_for

the state it was written towards

◆ en_pending

bool pdmini_t::en_pending

written, waiting for the confirming read

◆ en_tries

uint8_t pdmini_t::en_tries

OUTPUT_EN writes towards the wanted state

◆ en_value

uint8_t pdmini_t::en_value

the argument last written

◆ fails

uint8_t pdmini_t::fails

consecutive

◆ input_known

bool pdmini_t::input_known

READ_INPUT_STATE answered, the last read

◆ input_misses

uint8_t pdmini_t::input_misses

READ_INPUT_STATE unanswered, consecutive

◆ input_seen

bool pdmini_t::input_seen

and this firmware has answered it at all

◆ off_owed

bool pdmini_t::off_owed

gone while on: an OFF is sent blind

◆ on_confirmed

bool pdmini_t::on_confirmed

and twice: relied on

◆ on_seen

bool pdmini_t::on_seen

on_value seen to work once

◆ on_sent

bool pdmini_t::on_sent

an ON went out, not yet settled by a read

◆ on_value

uint8_t pdmini_t::on_value

OUTPUT_EN's argument for on; learnt

◆ reset_owed

bool pdmini_t::reset_owed

SYSTEM_RESET asked, not yet sent

◆ restored

bool pdmini_t::restored

wiring from before a restart: maybe on

◆ slot

int pdmini_t::slot

the active slot, -1 until read

◆ state_fails

uint8_t pdmini_t::state_fails

READ_OUTPUT_STATE failed, consecutive

◆ state_known

bool pdmini_t::state_known

READ_OUTPUT_STATE answered since online

◆ t

uint32_t pdmini_t::t

when the phase began, or the deadline

◆ want_set

bool pdmini_t::want_set

set points named; none written before

◆ who_misses

uint8_t pdmini_t::who_misses

WHO_AM_I answered by not a byte, so far

◆ write

bool pdmini_t::write

answered by nothing


The documentation for this struct was generated from the following file: