Skip to content

Struct SimGateway::GatewayDiag

ClassList > GatewayDiag

Link-health counters and event times (#355). Reported to the host as DIAG .More...

Public Attributes

Type Name
uint16_t cdcStalls
CDC stall onsets: DTR held, bytes pending, no drain for CDC_STALL_MS.
uint32_t firstUartErrMs
First PL011 error this boot.
uint32_t firstUsbLossMs
First healthy → unhealthy host-link edge.
uint16_t framesDropped
Calibration frames dropped for lack of CDC room.
uint32_t lastUartErrMs
Latest PL011 error.
uint32_t lastUsbLossMs
Latest such edge.
uint16_t linesCorrupt
Lines dropped for a non-ASCII byte.
uint16_t linesDropped
Lines dropped for lack of CDC room.
uint16_t linesOverlong
Lines dropped for exceeding RELAY_LINE_MAX.
uint8_t recoveryReboots
Recovery-ladder reboots. Survives a warm reboot.
uint8_t resetReason
OpenSkyhawk::CalDiagResetReason for this boot.
uint16_t uartBreak
Status ticks with RSR BE set.
uint16_t uartFraming
Status ticks with RSR FE set.
uint16_t uartOverrun
Status ticks with RSR OE set.
uint16_t uartParity
Status ticks with RSR PE set.
uint16_t uartRestarts
FAULT self-clears (UART restarted).
uint16_t uartRxOverflow
Status ticks on which the software RX queue had overflowed.
uint16_t usbReattaches
Recovery-ladder detach/attach cycles.
uint8_t watchdogResets
Hardware watchdog resets. Survives a warm reboot.

Detailed Description

Times are millis() since this boot, 0 = never. Counters saturate at 0xFFFF. The field meanings are the CAL_DIAG_* offsets in AxisCal.h, which define the wire layout.

Public Attributes Documentation

variable cdcStalls

CDC stall onsets: DTR held, bytes pending, no drain for CDC_STALL_MS.

uint16_t SimGateway::GatewayDiag::cdcStalls;


variable firstUartErrMs

First PL011 error this boot.

uint32_t SimGateway::GatewayDiag::firstUartErrMs;


variable firstUsbLossMs

First healthy → unhealthy host-link edge.

uint32_t SimGateway::GatewayDiag::firstUsbLossMs;


variable framesDropped

Calibration frames dropped for lack of CDC room.

uint16_t SimGateway::GatewayDiag::framesDropped;


variable lastUartErrMs

Latest PL011 error.

uint32_t SimGateway::GatewayDiag::lastUartErrMs;


variable lastUsbLossMs

Latest such edge.

uint32_t SimGateway::GatewayDiag::lastUsbLossMs;


variable linesCorrupt

Lines dropped for a non-ASCII byte.

uint16_t SimGateway::GatewayDiag::linesCorrupt;


variable linesDropped

Lines dropped for lack of CDC room.

uint16_t SimGateway::GatewayDiag::linesDropped;


variable linesOverlong

Lines dropped for exceeding RELAY_LINE_MAX.

uint16_t SimGateway::GatewayDiag::linesOverlong;


variable recoveryReboots

Recovery-ladder reboots. Survives a warm reboot.

uint8_t SimGateway::GatewayDiag::recoveryReboots;


variable resetReason

OpenSkyhawk::CalDiagResetReason for this boot.

uint8_t SimGateway::GatewayDiag::resetReason;


variable uartBreak

Status ticks with RSR BE set.

uint16_t SimGateway::GatewayDiag::uartBreak;


variable uartFraming

Status ticks with RSR FE set.

uint16_t SimGateway::GatewayDiag::uartFraming;


variable uartOverrun

Status ticks with RSR OE set.

uint16_t SimGateway::GatewayDiag::uartOverrun;


variable uartParity

Status ticks with RSR PE set.

uint16_t SimGateway::GatewayDiag::uartParity;


variable uartRestarts

FAULT self-clears (UART restarted).

uint16_t SimGateway::GatewayDiag::uartRestarts;


variable uartRxOverflow

Status ticks on which the software RX queue had overflowed.

uint16_t SimGateway::GatewayDiag::uartRxOverflow;


variable usbReattaches

Recovery-ladder detach/attach cycles.

uint16_t SimGateway::GatewayDiag::usbReattaches;


variable watchdogResets

Hardware watchdog resets. Survives a warm reboot.

uint8_t SimGateway::GatewayDiag::watchdogResets;



The documentation for this class was generated from the following file Firmware/Libraries/SimGateway/SimGateway.h