DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
RegisterList Struct Reference

#include "PacketRegister.h"

Public Member Functions

 RegisterList (int)
 
void loadPacket (int, byte *, int, int, int=0) volatile
 
int readCVraw (int cv, int callBack, int callBackSub) volatile
 
int buildBaseAcknowlegde (int inMonitorPin) volatile
 
int checkAcknowlegde (int inMonitorPin, int inBase) volatile
 
byte setAckThreshold (byte inNewValue)
 
void setThrottle (int nReg, int cab, int tSpeed, int tDirection) volatile
 
void setFunction (int nReg, int cab, int fByte, int eByte) volatile
 
void setAccessory (int aAdd, int aNum, int activate) volatile
 
void writeTextPacket (int nReg, byte *b, int nBytes) volatile
 
int readCV (int cv, int callBack, int callBackSub) volatile
 
int readCVmain (int cv, int callBack, int callBackSub) volatile
 
void writeCVByte (int cv, int bValue, int callBack, int callBackSub) volatile
 
void writeCVBit (int cv, int bNum, int bValue, int callBack, int callBackSub) volatile
 
void writeCVByteMain (int cab, int cv, int bvalue) volatile
 
void writeCVBitMain (int cab, int cv, int bNum, int bValue) volatile
 

Public Attributes

int maxNumRegs
 
Registerreg
 
Register ** regMap
 
RegistercurrentReg
 
RegistermaxLoadedReg
 
RegisternextReg
 
PackettempPacket
 
byte currentBit
 
byte nRepeat
 
int * speedTable
 

Static Public Attributes

static byte idlePacket [] ={0xFF,0x00,0}
 
static byte resetPacket [] ={0x00,0x00,0}
 
static byte bitMask [] ={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01}
 

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 36 of file PacketRegister.h.


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