CQEAnalog allows you to read the analog voltage channels. More...
#include <qeanalog.h>
Public Member Functions | |
| SINGLETON (CQEAnalog) | |
| This internal macro handles instantiation of this class. | |
| unsigned short | GetADRaw (unsigned int channel) |
| Read the raw analog-to-digital channel value. | |
| unsigned short | GetADVoltage (unsigned int channel) |
| Read the analog-to-digital channel voltage. | |
| virtual int | GetProperty (int property, long *value) |
| Get the property value. | |
| virtual int | SetProperty (int property, long value) |
| Set the property value. | |
CQEAnalog allows you to read the analog voltage channels.
For now this class is input-only (read-only). To instantiate this class:
// by pointer CQEAnalog *panalog = CQEAnalog::GetPtr(); // or by reference CQEAnalog &analog = CQEAnalog::GetRef();
And when done with this class, call Release(), for each call to GetPtr() or GetRef():
| unsigned short CQEAnalog::GetADRaw | ( | unsigned int | channel | ) |
Read the raw analog-to-digital channel value.
It is recommended that you call GetADVoltage() instead. The channels are typically low bandwidth -- no greater than 1 kHz.
| channel | the analog channel number (0 through 24 for VEXPro ARM9) |
| unsigned short CQEAnalog::GetADVoltage | ( | unsigned int | channel | ) |
Read the analog-to-digital channel voltage.
The channels are typically low bandwidth -- no greater than 1 kHz.
| channel | the analog channel number (0 through 24 for VEXPro ARM9) |
| int CQEAnalog::GetProperty | ( | int | property, | |
| long * | value | |||
| ) | [virtual] |
Get the property value.
| property | the numerical identifier of the property | |
| value | the value of the property is written into this long pointer |
Implements IProperty.
| int CQEAnalog::SetProperty | ( | int | property, | |
| long | value | |||
| ) | [virtual] |
Set the property value.
| property | the numerical identifier of the property | |
| value | the value of the property |
Implements IProperty.
| CQEAnalog::SINGLETON | ( | CQEAnalog | ) |
This internal macro handles instantiation of this class.
1.7.1