LTPS C++ API
|
Class for ADC (Tibbit #13) More...
#include <adc.h>
Public Member Functions | |
void | getVoltage (const char *socket, unsigned int channel, bool prev, AdcData &adc) |
Get voltage value for channel. More... | |
Class for ADC (Tibbit #13)
void Adc::getVoltage | ( | const char * | socket, |
unsigned int | channel, | ||
bool | prev, | ||
AdcData & | adc | ||
) |
Get voltage value for channel.
socket | I2C bus name (eg: s1, s15) |
channel | ADC channel (1...4) |
prev | Get previous voltage conversion for true |
adc | AdcData data struct |