98 _sw.sendPacket(tx, rx);
100 return _sw.sendPacket(tx1, rx);
112 int16_t
begin(uint8_t
pin, uint16_t averageSamples, uint16_t filterConstant)
116 return _sw.sendPacket(tx);
133 return _sw.sendPacket(tx);
150 _sw.sendPacket(tx, rx);
152 return(rx[5] + rx[6] * 256);
169 _sw.sendPacket(tx, rx);
171 return(rx[3] + rx[4] * 256);
193 _sw.sendPacket(tx, rx);
195 return(rx[5] + rx[6] * 256);
216 _sw.sendPacket(tx, rx);
218 return(rx[3] + rx[4] * 256);
#define SW_LE16(_a)
Convert a uint16_t to two bytes in little endian format for array initialization.
@ PIN_MODE_RESISTANCEINPUT
(24)
ResistanceInputPublicDataOutput
@ ResistanceInputPublicDataOutput_Minimum
The Minimum Resistance reading is displayed as public data (default)
@ ResistanceInputPublicDataOutput_Maximum
The Maximum Resistance reading is displayed as public data (default)
@ ResistanceInputPublicDataOutput_Filtered
The Filtered Resistance reading is displayed as public data (default)
@ ResistanceInputPublicDataOutput_Averaged
The Averaged Resistance reading is displayed as public data (default)
@ ResistanceInputPublicDataOutput_Raw
The raw Resistance reading is displayed as public data (default)
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
SerialWombatAbstractProcessedInput(SerialWombatChip &sw)
Constructor for the SerialWombatAbstractScaledOutput Class.
SerialWombatPin(SerialWombatChip &serialWombatChip)
Instantiates a Serial Wombat Pin.
SerialWombatResistanceInput(SerialWombatChip &serialWombatChip)
Constructor for the SerialWombatResistanceInput class.
uint16_t readFilteredOhms()
Retreive a filtered Resistance measurement.
int16_t begin(uint8_t pin, uint16_t averageSamples, uint16_t filterConstant, ResistanceInputPublicDataOutput output)
Initialize a resistance input on a given pin.
int16_t begin(uint8_t pin, uint16_t averageSamples, uint16_t filterConstant)
Initialize a resistance input on a given pin.
uint8_t swPinModeNumber()
Used for ineheritance.
int16_t begin(uint8_t pin)
Initialize a resistance input on a given pin.
uint16_t readAveragedOhms()
Retreive an averaged Resistance measurement.
uint16_t readMinimumOhms(bool resetAfterRead)
Retreive the maximum single sample Resistance value in Ohms.
uint16_t readMaximumOhms(bool resetAfterRead)
Retreive the maximum single sample Resistance value in Ohms.
uint8_t pin()
Used for inheritance.