59 unsigned char sckAlternateFunction = 5);
120 miosix::GpioPin sckPin;
122 unsigned char sckAlternateFunction;
bool selfTest() override
Check if the sensor is working.
float getScale()
Returns the current scale.
static SPIBusConfig getDefaultSPIConfig()
void setScale(float scale)
Simply changes the scale.
void updateOffset(float offset)
Updates the offset by adding it to the current offset.
HX711Data sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
void computeScale(float value, float sample)
Calculates the scale value such that the load cell's output matches the given value.
void setOffset(float offset)
Sets the offset to the given value.
bool init() override
Initialize the sensor.
float getOffset()
Return the current offset.
Interface for low level access of a SPI bus as a master.
Base sensor class with has to be extended by any sensor driver.
Driver for the VN100S IMU.
SPI Bus configuration for a specific slave.