PikeAero::CEventAnalogConversion Class Reference

#include <ceventanalogconversion.h>

Inheritance diagram for PikeAero::CEventAnalogConversion:

Inheritance graph
[legend]
Collaboration diagram for PikeAero::CEventAnalogConversion:

Collaboration graph
[legend]

Public Member Functions

 CEventAnalogConversion (CEventAnalogConversion *other)
 CEventAnalogConversion (CObject *sender=NULL)
virtual void copy (CEventAnalogConversion *other)
void setValue (CMachine::bit16 index, CMachine::bit16 value)
CMachine::ubit16 value (CMachine::bit16 index)
virtual ~CEventAnalogConversion ()

Private Member Functions

CMachine::ubit16 mValues[16] __attribute__ ((aligned))

Detailed Description

Impliments the analog conversion event.
Author:
Michael Sharkey <mike@pikeaero.com>

Definition at line 31 of file ceventanalogconversion.h.


Constructor & Destructor Documentation

PikeAero::CEventAnalogConversion::CEventAnalogConversion ( CObject sender = NULL  ) 

Definition at line 26 of file ceventanalogconversion.cpp.

References PikeAero::CEvent::AnalogToDigital, and PikeAero::CEvent::setType().

00027  : inherited(sender)
00028 {
00029     setType(AnalogToDigital);
00030 }

Here is the call graph for this function:

PikeAero::CEventAnalogConversion::CEventAnalogConversion ( CEventAnalogConversion other  )  [inline]

Definition at line 35 of file ceventanalogconversion.h.

References copy().

00035 {copy(other);}

Here is the call graph for this function:

PikeAero::CEventAnalogConversion::~CEventAnalogConversion (  )  [virtual]

Definition at line 32 of file ceventanalogconversion.cpp.

00033 {
00034 }


Member Function Documentation

CMachine::ubit16 mValues [16] PikeAero::CEventAnalogConversion::__attribute__ ( (aligned)   )  [private]

void PikeAero::CEventAnalogConversion::copy ( CEventAnalogConversion other  )  [virtual]

Definition at line 36 of file ceventanalogconversion.cpp.

References setValue(), and value().

Referenced by CEventAnalogConversion().

00037 {
00038     inherited::copy( other );
00039     for(int i=0; i < 16; i++ )
00040     {
00041         setValue( i, other->value(i) );
00042     }
00043 }

Here is the call graph for this function:

Here is the caller graph for this function:

void PikeAero::CEventAnalogConversion::setValue ( CMachine::bit16  index,
CMachine::bit16  value 
) [inline]

Definition at line 40 of file ceventanalogconversion.h.

Referenced by copy().

00040 {mValues[index&0x000F]=value;}

Here is the caller graph for this function:

CMachine::ubit16 PikeAero::CEventAnalogConversion::value ( CMachine::bit16  index  )  [inline]

Definition at line 39 of file ceventanalogconversion.h.

Referenced by copy().

00039 {return (mValues[index&0x000F]&0x07FF);}

Here is the caller graph for this function:


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

Generated on Sun Oct 25 14:00:01 2009 for stingray3 by  doxygen 1.5.8