|
RSeries astromech firmware
|
|
Go to the documentation of this file.
44 (*tail())->fNext =
this;
48 static void process(
int addr,
char cmd,
int arg = 0,
int value = 0)
50 for (
JawaEvent* jawa = *head(); jawa != NULL; jawa = jawa->fNext)
51 if (addr == 0 || addr == jawa->fJawaAddress)
52 jawa->jawaCommand(cmd, arg, value);
55 static void process(
int addr,
char cmd,
const char* arg)
57 for (
JawaEvent* jawa = *head(); jawa != NULL; jawa = jawa->fNext)
58 if (addr == 0 || addr == jawa->fJawaAddress)
59 jawa->jawaCommand(cmd, arg);
@ kJawaFrontHolo
Definition: JawaEvent.h:14
int fJawaAddress
Definition: JawaEvent.h:90
@ kJawaOther
Definition: JawaEvent.h:17
JawaID
Definition: JawaEvent.h:6
virtual void jawaCommand(char cmd, const char *arg)
Subclasses should override this method to handle commands.
Definition: JawaEvent.h:75
static void process(int addr, char cmd, const char *arg)
Definition: JawaEvent.h:55
@ kJawaRearPSI
Definition: JawaEvent.h:13
@ kJawaFrontPSI
Definition: JawaEvent.h:12
@ kJawaRFLD
Definition: JawaEvent.h:11
static void process(int addr, char cmd, int arg=0, int value=0)
Definition: JawaEvent.h:48
Base class for all devices implementing JAWA lite support.
Definition: JawaEvent.h:31
void setJawaAddress(int addr)
Specify the JAWA address of this device.
Definition: JawaEvent.h:84
@ kJawaTFLD
Definition: JawaEvent.h:9
@ kJawaTopHolo
Definition: JawaEvent.h:16
@ kJawaRadarEye
Definition: JawaEvent.h:18
virtual void jawaCommand(char cmd, int arg, int value)
Subclasses should override this method to handle commands specifying a value.
Definition: JawaEvent.h:65
@ kJawaRearHolo
Definition: JawaEvent.h:15
JawaEvent()
Default Constructor.
Definition: JawaEvent.h:38
@ kJawaAll
Definition: JawaEvent.h:8
#define UNUSED_ARG(arg)
Definition: ReelTwo.h:25
@ kJawaBFLD
Definition: JawaEvent.h:10
@ kJawaCBI
Definition: JawaEvent.h:20
@ kJawaMagicPanel
Definition: JawaEvent.h:19
@ kJawaDataPort
Definition: JawaEvent.h:21