RSeries astromech firmware
JawaEvent Class Reference

#include <core/JawaEvent.h>

Detailed Description

Base class for all devices implementing JAWA lite support.

+ Inheritance diagram for JawaEvent:

Public Member Functions

 JawaEvent ()
 Default Constructor. More...
 
virtual void jawaCommand (char cmd, int arg, int value)
 Subclasses should override this method to handle commands specifying a value. More...
 
virtual void jawaCommand (char cmd, const char *arg)
 Subclasses should override this method to handle commands. More...
 
void setJawaAddress (int addr)
 Specify the JAWA address of this device. More...
 

Static Public Member Functions

static void process (int addr, char cmd, int arg=0, int value=0)
 
static void process (int addr, char cmd, const char *arg)
 

Protected Attributes

int fJawaAddress
 

Constructor & Destructor Documentation

◆ JawaEvent()

JawaEvent::JawaEvent ( )
inline

Default Constructor.

Registers the subclass to handle JAWA commands.

Member Function Documentation

◆ jawaCommand() [1/2]

virtual void JawaEvent::jawaCommand ( char  cmd,
const char *  arg 
)
inlinevirtual

Subclasses should override this method to handle commands.

Reimplemented in LogicEngineRenderer.

◆ jawaCommand() [2/2]

virtual void JawaEvent::jawaCommand ( char  cmd,
int  arg,
int  value 
)
inlinevirtual

Subclasses should override this method to handle commands specifying a value.

Reimplemented in LogicEngineRenderer, HoloLights< DATA_PIN, RGB_ORDER, NUM_LEDS >, HoloLights< 45, GRB, 12 >, and TeecesPSI.

◆ process() [1/2]

static void JawaEvent::process ( int  addr,
char  cmd,
const char *  arg 
)
inlinestatic

◆ process() [2/2]

static void JawaEvent::process ( int  addr,
char  cmd,
int  arg = 0,
int  value = 0 
)
inlinestatic

◆ setJawaAddress()

void JawaEvent::setJawaAddress ( int  addr)
inline

Specify the JAWA address of this device.

Member Data Documentation

◆ fJawaAddress

int JawaEvent::fJawaAddress
protected

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