LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
RegisterList Struct Reference

#include <PacketRegister.h>

Public Member Functions

void startSound (char *) volatile
 
void stopSound (char *) volatile
 
void setSound (int cab, uint8_t fn, SoundFnToggle, SoundDelay, SoundDuration, Track) volatile
 processes sound command by issuing fn command(s) immediately and/or queuing for parsing later More...
 

Detailed Description

Define a series of registers that can be sequentially accessed over a loop to generate a repeating series of DCC Packets.

Definition at line 39 of file PacketRegister.h.

Member Function Documentation

◆ setSound()

void RegisterList::setSound ( int  cab,
uint8_t  fn,
SoundFnToggle  fnToggle,
SoundDelay  soundDelay,
SoundDuration  sDuration,
Track  track 
) volatile

processes sound command by issuing fn command(s) immediately and/or queuing for parsing later

Parameters
cabis the cab's number
fnis the fn number
fnToggleindicates whether the sound is being turned on or off
soundDelayis the delay in secs before playing the sound
sDurationis the number of secs to play the sound
trackindicates the track (BOTH, MAIN, or PROG) for the command

Definition at line 451 of file PacketRegister.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startSound()

void RegisterList::startSound ( char *  s) volatile

handles text command to start a sound sequence

Parameters
stext command string

[Adding a sound sequence]

[Adding a sound sequence]

Definition at line 351 of file PacketRegister.cpp.

Here is the call graph for this function:

◆ stopSound()

void RegisterList::stopSound ( char *  s) volatile

handles text command to stop a sound sequence

Parameters
stext command string

Definition at line 278 of file PacketRegister.cpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following files: