Skip to content

Struct OpenSkyhawk::DrumSource

ClassList > OpenSkyhawk > DrumSource

One DCS-BIOS digit source feeding a DrumReadout .More...

  • #include <DrumDisplay.h>

Public Attributes

Type Name
uint16_t address
DCS-BIOS output address (A_4E_C_* from A4EC_OutputIds.h )
uint16_t mask
field mask (A_4E_C_*_AM); 0xFFFF for whole-word sources
uint8_t nDigits
digits this address encodes (1 for APN153, 2 for ARC-51 groups)
uint8_t place
least-significant digit column this source writes (0 = rightmost)

Detailed Description

Note:

Populate address / mask from the A_4E_C_* and A_4E_C_*_AM constants in A4EC_OutputIds.h. The masked value (0..mask) is scaled to nDigits decimal digits: digits = round((value & mask) / mask * (10^nDigits − 1)); each of those nDigits digits is spliced into the readout's combined number starting at place (0 = least-significant column).

Public Attributes Documentation

variable address

DCS-BIOS output address (A_4E_C_* from A4EC_OutputIds.h )

uint16_t OpenSkyhawk::DrumSource::address;

variable mask

field mask (A_4E_C_*_AM); 0xFFFF for whole-word sources

uint16_t OpenSkyhawk::DrumSource::mask;

variable nDigits

digits this address encodes (1 for APN153, 2 for ARC-51 groups)

uint8_t OpenSkyhawk::DrumSource::nDigits;

variable place

least-significant digit column this source writes (0 = rightmost)

uint8_t OpenSkyhawk::DrumSource::place;


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