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 mul = 1
displayed value per position (5 for the ARC-51 50 kHz drum)
uint8_t nDigits
digits this address encodes (1 for APN153, 2 for ARC-51 groups)
int16_t offset = 0
added after mul (22 for the ARC-51 10 MHz group, 29 for ALT_ADJ)
uint8_t place
least-significant digit column this source writes (0 = rightmost)
uint16_t steps = 0
positions across the range; 0 ⇒ 10^nDigits (a plain drum digit)

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 mul

displayed value per position (5 for the ARC-51 50 kHz drum)

uint8_t OpenSkyhawk::DrumSource::mul;


variable nDigits

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

uint8_t OpenSkyhawk::DrumSource::nDigits;


variable offset

added after mul (22 for the ARC-51 10 MHz group, 29 for ALT_ADJ)

int16_t OpenSkyhawk::DrumSource::offset;


variable place

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

uint8_t OpenSkyhawk::DrumSource::place;


variable steps

positions across the range; 0 ⇒ 10^nDigits (a plain drum digit)

uint16_t OpenSkyhawk::DrumSource::steps;



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