LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
FnByte Class Reference

#include <FnByte.h>

Public Member Functions

 FnByte ()
 
uint8_t get (uint8_t cab, uint8_t fn, SoundFnToggle fnToggle, Track track)
 Updates Fn byte for use with DCC commands. More...
 

Private Types

typedef CabFnByteStruct CabFnByteQueueEntry_type
 
typedef std::vector< CabFnByteQueueEntry_typeCabFnByteQueue_type
 

Detailed Description

Class for managing FN byte used for sounds

Definition at line 44 of file FnByte.h.

Member Typedef Documentation

◆ CabFnByteQueue_type

Type of vector of FnByteStruct

Definition at line 95 of file FnByte.h.

◆ CabFnByteQueueEntry_type

typedef CabFnByteStruct FnByte::CabFnByteQueueEntry_type
private

Type of FnByteStruct

Definition at line 94 of file FnByte.h.

Constructor & Destructor Documentation

◆ FnByte()

FnByte::FnByte ( )
inline

FnByte Constructor

Definition at line 101 of file FnByte.h.

Member Function Documentation

◆ get()

uint8_t FnByte::get ( uint8_t  cab,
uint8_t  fn,
SoundFnToggle  fnToggle,
Track  track 
)
inline

Updates Fn byte for use with DCC commands.

Parameters
cabDCC Cab number associated with the Fn
fnCab's FN number
fnToggleindicates whether to toggle the sound related FN value on or off
trackindicates for whoch track the command is for; main, prog, both
Returns
Cab's FN byte, updated with the specific FN's bit set to on or off

Definition at line 113 of file FnByte.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: