8#ifndef USEREXTENSIONS_SRC_ADS111X_H_
9#define USEREXTENSIONS_SRC_ADS111X_H_
17#include "target_constants.h"
30 uint16_t
readReg(
const uint8_t reg);
42 void setThresh(uint16_t loTh,uint16_t hiTh);
86 std::vector<int32_t>*
getAxes();
void setAxes(uint8_t axes, bool differential)
void i2cTxCompleted(I2CPort *port)
static bool isCreatable()
ADS111X_AnalogSource_commands
std::string getHelpstring()
static ClassIdentifier info
std::vector< int32_t > rawbuf
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies)
void i2cRxCompleted(I2CPort *port)
void i2cError(I2CPort *port)
virtual const ClassIdentifier getInfo()
const ClassType getClassType() override
returns the used classchooser selection id of this instance
ADS111X_AnalogSource_state
std::vector< int32_t > * getAxes()
volatile ADS111X_AnalogSource_state state
struct ADS111X::@675 registers
void startI2CTransfer(I2CPort *port)
void setGain(uint16_t gain)
void endI2CTransfer(I2CPort *port)
void writeReg(const uint8_t reg, uint16_t data)
void writeRegIT(const uint8_t reg, uint16_t data)
void setThresh(uint16_t loTh, uint16_t hiTh)
ADS111X(I2CPort &port, uint8_t address=0x48)
void startConversion(uint8_t channel, bool differential=false)
uint16_t readReg(const uint8_t reg)
void readRegIT(const uint8_t reg, uint16_t *data)
void setDatarate(uint16_t rate)