BlinkingBackLED Class Reference

#include <BlinkingBackLED.h>

List of all members.

Public Member Functions

 BlinkingBackLED ()
virtual ~BlinkingBackLED ()
virtual OStatus DoInit (const OSystemEvent &event)
virtual OStatus DoStart (const OSystemEvent &event)
virtual OStatus DoStop (const OSystemEvent &event)
virtual OStatus DoDestroy (const OSystemEvent &event)
void Ready (const OReadyEvent &event)

Public Attributes

OSubject * subject [numOfSubject]
OObserver * observer [numOfObserver]

Private Member Functions

void OpenPrimitives ()
void NewCommandVectorData ()
LED3Result White0to255_Color0 ()
LED3Result White255_Color0to255 ()
LED3Result White255to0_Color255 ()
LED3Result White0_Color255to0 ()
LED3Result White0_Color0 ()
void SetWhiteLED3Value (RCRegion *rgn, int level, int slope)
void SetColorLED3Value (RCRegion *rgn, int level, int slope)
void SetWhiteLED3Value (RCRegion *rgn, sword intensity)
void SetColorLED3Value (RCRegion *rgn, sword intensity)
RCRegion * FindFreeRegion ()

Private Attributes

BlinkingBackLEDState blinkingLEDState
OPrimitiveID ledID [NUM_LEDS]
RCRegion * region [NUM_COMMAND_VECTOR]

Static Private Attributes

const size_t NUM_LEDS = 6
const size_t NUM_COMMAND_VECTOR = 2
const int MAX_LEVEL = 15
const int POSITIVE_SLOPE = 1
const int NEGATIVE_SLOPE = -1


Constructor & Destructor Documentation

BlinkingBackLED::BlinkingBackLED  ) 
 

Definition at line 17 of file BlinkingBackLED.cc.

References BBLS_IDLE, ledID, and region.

virtual BlinkingBackLED::~BlinkingBackLED  )  [inline, virtual]
 

Definition at line 47 of file BlinkingBackLED.h.


Member Function Documentation

OStatus BlinkingBackLED::DoDestroy const OSystemEvent &  event  )  [virtual]
 

Definition at line 72 of file BlinkingBackLED.cc.

OStatus BlinkingBackLED::DoInit const OSystemEvent &  event  )  [virtual]
 

Definition at line 24 of file BlinkingBackLED.cc.

References NewCommandVectorData(), and OpenPrimitives().

OStatus BlinkingBackLED::DoStart const OSystemEvent &  event  )  [virtual]
 

Definition at line 41 of file BlinkingBackLED.cc.

References blinkingLEDState, subject, and White0to255_Color0().

OStatus BlinkingBackLED::DoStop const OSystemEvent &  event  )  [virtual]
 

Definition at line 59 of file BlinkingBackLED.cc.

References blinkingLEDState.

RCRegion * BlinkingBackLED::FindFreeRegion  )  [private]
 

Definition at line 363 of file BlinkingBackLED.cc.

References region.

Referenced by White0_Color0(), White0_Color255to0(), White0to255_Color0(), White255_Color0to255(), and White255to0_Color255().

void BlinkingBackLED::NewCommandVectorData  )  [private]
 

Definition at line 151 of file BlinkingBackLED.cc.

References ledID, NUM_LEDS, and region.

Referenced by DoInit().

void BlinkingBackLED::OpenPrimitives  )  [private]
 

Definition at line 138 of file BlinkingBackLED.cc.

References ledID.

Referenced by DoInit().

void BlinkingBackLED::Ready const OReadyEvent &  event  ) 
 

Definition at line 79 of file BlinkingBackLED.cc.

References blinkingLEDState, LED3Result, White0_Color0(), White0_Color255to0(), White0to255_Color0(), White255_Color0to255(), and White255to0_Color255().

void BlinkingBackLED::SetColorLED3Value RCRegion *  rgn,
sword  intensity
[private]
 

Definition at line 347 of file BlinkingBackLED.cc.

References NUM_LEDS.

void BlinkingBackLED::SetColorLED3Value RCRegion *  rgn,
int  level,
int  slope
[private]
 

Definition at line 311 of file BlinkingBackLED.cc.

References NUM_LEDS.

Referenced by White0_Color0(), White0_Color255to0(), White0to255_Color0(), White255_Color0to255(), and White255to0_Color255().

void BlinkingBackLED::SetWhiteLED3Value RCRegion *  rgn,
sword  intensity
[private]
 

Definition at line 331 of file BlinkingBackLED.cc.

References NUM_LEDS.

void BlinkingBackLED::SetWhiteLED3Value RCRegion *  rgn,
int  level,
int  slope
[private]
 

Definition at line 291 of file BlinkingBackLED.cc.

References NUM_LEDS.

Referenced by White0_Color0(), White0_Color255to0(), White0to255_Color0(), White255_Color0to255(), and White255to0_Color255().

LED3Result BlinkingBackLED::White0_Color0  )  [private]
 

Definition at line 271 of file BlinkingBackLED.cc.

References FindFreeRegion(), SetColorLED3Value(), SetWhiteLED3Value(), and subject.

Referenced by Ready().

LED3Result BlinkingBackLED::White0_Color255to0  )  [private]
 

Definition at line 251 of file BlinkingBackLED.cc.

References FindFreeRegion(), NEGATIVE_SLOPE, SetColorLED3Value(), SetWhiteLED3Value(), and subject.

Referenced by Ready().

LED3Result BlinkingBackLED::White0to255_Color0  )  [private]
 

Definition at line 182 of file BlinkingBackLED.cc.

References FindFreeRegion(), POSITIVE_SLOPE, SetColorLED3Value(), SetWhiteLED3Value(), and subject.

Referenced by DoStart(), and Ready().

LED3Result BlinkingBackLED::White255_Color0to255  )  [private]
 

Definition at line 211 of file BlinkingBackLED.cc.

References FindFreeRegion(), POSITIVE_SLOPE, SetColorLED3Value(), SetWhiteLED3Value(), and subject.

Referenced by Ready().

LED3Result BlinkingBackLED::White255to0_Color255  )  [private]
 

Definition at line 231 of file BlinkingBackLED.cc.

References FindFreeRegion(), NEGATIVE_SLOPE, SetColorLED3Value(), SetWhiteLED3Value(), and subject.

Referenced by Ready().


Member Data Documentation

BlinkingBackLEDState BlinkingBackLED::blinkingLEDState [private]
 

Definition at line 80 of file BlinkingBackLED.h.

Referenced by DoStart(), DoStop(), and Ready().

OPrimitiveID BlinkingBackLED::ledID[NUM_LEDS] [private]
 

Definition at line 81 of file BlinkingBackLED.h.

Referenced by BlinkingBackLED(), NewCommandVectorData(), and OpenPrimitives().

const int BlinkingBackLED::MAX_LEVEL = 15 [static, private]
 

Definition at line 76 of file BlinkingBackLED.h.

const int BlinkingBackLED::NEGATIVE_SLOPE = -1 [static, private]
 

Definition at line 78 of file BlinkingBackLED.h.

Referenced by White0_Color255to0(), and White255to0_Color255().

const size_t BlinkingBackLED::NUM_COMMAND_VECTOR = 2 [static, private]
 

Definition at line 75 of file BlinkingBackLED.h.

const size_t BlinkingBackLED::NUM_LEDS = 6 [static, private]
 

Definition at line 74 of file BlinkingBackLED.h.

Referenced by NewCommandVectorData(), SetColorLED3Value(), and SetWhiteLED3Value().

OObserver* BlinkingBackLED::observer[numOfObserver]
 

Definition at line 50 of file BlinkingBackLED.h.

const int BlinkingBackLED::POSITIVE_SLOPE = 1 [static, private]
 

Definition at line 77 of file BlinkingBackLED.h.

Referenced by White0to255_Color0(), and White255_Color0to255().

RCRegion* BlinkingBackLED::region[NUM_COMMAND_VECTOR] [private]
 

Definition at line 82 of file BlinkingBackLED.h.

Referenced by BlinkingBackLED(), FindFreeRegion(), and NewCommandVectorData().

OSubject* BlinkingBackLED::subject[numOfSubject]
 

Definition at line 49 of file BlinkingBackLED.h.

Referenced by DoStart(), White0_Color0(), White0_Color255to0(), White0to255_Color0(), White255_Color0to255(), and White255to0_Color255().


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 23:04:33 2007 for openSDK by  doxygen 1.3.9.1