class DeviceState
Defined at line 14 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
Public Methods
void DeviceState ()
Defined at line 16 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
void set_irq_signaller (zx::unowned_interrupt signaller)
Defined at line 51 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
fdf::MmioBuffer GetMmio ()
Defined at line 53 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
bool PortResetRX ()
Defined at line 55 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
bool PortResetTX ()
Defined at line 61 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
void Inject (const void * buffer, size_t size)
Defined at line 67 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
serial::Status Status ()
Defined at line 73 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
serial::Control Control ()
Defined at line 77 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
serial::Reg5 Reg5 ()
Defined at line 81 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
uint32_t StopBits ()
Defined at line 83 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
uint32_t DataBits ()
Defined at line 94 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
uint32_t Parity ()
Defined at line 109 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
bool FlowControl ()
Defined at line 121 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
std::vector<uint8_t> TxBuf ()
Defined at line 123 of file ../../src/devices/serial/drivers/aml-uart/tests/device_state.h
void set_irq_signaller (zx::interrupt signaller)
Defined at line 302 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void TriggerInterrupt ()
Defined at line 306 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void Inject (std::span<const uint8_t> buffer, uint8_t line_status_error)
Defined at line 312 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void Inject ()
Defined at line 330 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void AssertAllInterruptConditions (std::span<const uint8_t>buffer,uint8_tline_status_error,uint8_tmsr_val,boolbusy_detect)
Atomically asserts multiple concurrent interrupt conditions (line status error,
RX data available, modem status delta, and busy detect) and fires a single hardware
interrupt trigger. This avoids race conditions where separate method calls trigger
intermediate interrupts that can be dropped while the driver is actively servicing
the first condition.
Defined at line 337 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
size_t TxBufSize ()
Defined at line 361 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t lcr ()
Defined at line 366 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t ier ()
Defined at line 367 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t mcr ()
Defined at line 368 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t fcr ()
Defined at line 369 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t msr ()
Defined at line 370 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t dll ()
Defined at line 371 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t dlh ()
Defined at line 372 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint32_t dlf ()
Defined at line 373 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
bool fifos_enabled ()
Defined at line 375 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
uint8_t line_status_error ()
Defined at line 376 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
bool busy_detect_irq_pending ()
Defined at line 377 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
bool modem_status_irq_pending ()
Defined at line 378 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
bool char_timeout ()
Defined at line 379 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
const std::vector<RegisterWrite> & write_log ()
Defined at line 381 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void ClearWriteLog ()
Defined at line 382 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void set_additional_feat (bool val)
Defined at line 384 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void set_uart_add_encoded_params (bool val)
Defined at line 385 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void set_thre_mode (bool val)
Defined at line 386 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void set_fifo_stat (bool val)
Defined at line 387 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void set_fifo_mode (uint32_t val)
Defined at line 388 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetLineStatusError (uint8_t error_mask)
Defined at line 390 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetCharTimeout (bool val)
Defined at line 395 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetBusyDetect (bool val)
Defined at line 407 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetModemStatus (uint8_t msr_val)
Defined at line 414 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetBusyCycles (size_t cycles)
Defined at line 420 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h
void SetAlwaysBusy (bool val)
Defined at line 421 of file ../../src/devices/serial/drivers/dw-apb-uart/tests/device-state.h