NXShield
v1.07
NXShield Library Reference by OpenElectrons.com
|
NXShield Analog Sensor class. More...
#include <NXShieldAGS.h>
Public Member Functions | |
NXShieldAGS () | |
NXShieldAGS (NXShield *shield, SH_BankPort bp) | |
bool | setType (uint8_t type) |
int | readRaw () |
bool | init (NXShield *shield, SH_BankPort bp) |
Public Attributes | |
NXShield * | mp_shield |
SH_BankPort | m_bp |
NXShield Analog Sensor class.
NXShieldAGS::NXShieldAGS | ( | ) |
null constructor for the NXShieldAGS class; need to init later
NXShieldAGS::NXShieldAGS | ( | NXShield * | shield, |
SH_BankPort | bp | ||
) |
class constructor with pointed to NXShield and the bankport as a parameter; init is not needed
bool NXShieldAGS::init | ( | NXShield * | shield, |
SH_BankPort | bp | ||
) |
initialize the analog device with a pointed to the NXShield and the bank port it is connected to
int NXShieldAGS::readRaw | ( | ) |
read the raw analog value from the device and return as an integer
bool NXShieldAGS::setType | ( | uint8_t | type | ) |
set the type of the device on this port of the NXShield
SH_BankPort NXShieldAGS::m_bp |
bank port the analog device is connected to