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

The whole injector: protocol, contacts, frames and replies. More...

#include <injector.h>

Data Fields

inj_state_t state
gt911_emu_t emu
char line [INJ_LINE_MAX+1u]
uint8_t len
bool overflow
inj_line_result_t wiring
bool wiring_running
bool wiring_wanted
bool attach_wanted
inj_contact_t c [INJ_ID_MAX+1u]
bool pending
bool published
uint32_t t_pub
bool withdraw_due
bool failed
uint32_t seen_reads
uint32_t seen_acks
uint32_t seen_product
bool any_read
uint32_t t_last_read
char replies [INJ_REPLIES][INJ_REPLY_LEN]
uint8_t r_head
uint8_t r_count

Detailed Description

The whole injector: protocol, contacts, frames and replies.

Field Documentation

◆ any_read

bool injector_t::any_read

the panel has read once

◆ attach_wanted

bool injector_t::attach_wanted

◆ c

inj_contact_t injector_t::c[INJ_ID_MAX+1u]

by contact id

◆ emu

gt911_emu_t injector_t::emu

the register file at 0x14

◆ failed

bool injector_t::failed

the last gesture failed: the LED is red

◆ len

uint8_t injector_t::len

its length

◆ line

char injector_t::line[INJ_LINE_MAX+1u]

the line being typed

◆ overflow

bool injector_t::overflow

it is longer than INJ_LINE_MAX

◆ pending

bool injector_t::pending

a published frame awaits its ack

◆ published

bool injector_t::published

a frame was published since idle

◆ r_count

uint8_t injector_t::r_count

how many

◆ r_head

uint8_t injector_t::r_head

the oldest

◆ replies

char injector_t::replies[INJ_REPLIES][INJ_REPLY_LEN]

not yet sent

◆ seen_acks

uint32_t injector_t::seen_acks

emu.acks as last seen

◆ seen_product

uint32_t injector_t::seen_product

emu.product_reads as last seen

◆ seen_reads

uint32_t injector_t::seen_reads

emu.reads as last seen

◆ state

inj_state_t injector_t::state

LISTEN or ACTIVE

◆ t_last_read

uint32_t injector_t::t_last_read

when it last read

◆ t_pub

uint32_t injector_t::t_pub

when the last frame was published

◆ wiring

inj_line_result_t injector_t::wiring

the last wiring verdict

◆ wiring_running

bool injector_t::wiring_running

the glue is listening

◆ wiring_wanted

bool injector_t::wiring_wanted

◆ withdraw_due

bool injector_t::withdraw_due

withdraw the frame once the bus is free


The documentation for this struct was generated from the following file:
  • testbench/touch-injector/core/include/injector.h