Expand description
The C ABI for the sensor drivers.
These functions wrap [pamoja_sensors] for callers that reach the SDK through
the flat C boundary: the decode half of eleven common parts, turning the
register bytes a bus driver read into the physical reading the datasheet says
they mean, and the inverse builders that produce those bytes again.
A reading is a handful of scalars, so it crosses by value as a #[repr(C)]
struct rather than as a handle. The exceptions are the BME280 and BMP280
calibrations, which are read once at start-up and then reused for every
measurement, so each is a handle the caller keeps.
Enumerated settings cross as the code the datasheet prints, because that is
what a caller holding a register value already has in front of them, and
booleans cross as a uint8_t that is 1 for the state its name describes.
A part that carries its own checksum, an undefined register code, or an
identification register reports a mismatch as PamojaStatus::Codec, so a
caller re-reads rather than trusting the value.
Structs§
- Pamoja
Ads1115 Config - An ADS1115 configuration register, field by field.
- Pamoja
Bme280 Calibration - An opaque handle to a BME280’s factory calibration.
- Pamoja
Bme280 Measurement - A compensated BME280 reading.
- Pamoja
Bmp280 Calibration - An opaque handle to a BMP280’s factory calibration.
- Pamoja
Bmp280 Coefficients - A BMP280’s per-chip trimming coefficients, as they sit in its registers.
- Pamoja
Bmp280 Config - A BMP280
configregister, field by field. - Pamoja
Bmp280 Ctrl Meas - A BMP280
ctrl_measregister, field by field. - Pamoja
Bmp280 Measurement - The uncompensated codes a BMP280 burst read carries.
- Pamoja
Bmp280 Reading - A compensated BMP280 reading.
- Pamoja
Ds18b20 Reading - A decoded DS18B20 scratchpad.
- Pamoja
Hdc1080 Config - An HDC1080 configuration register, field by field.
- Pamoja
Hdc1080 Measurement - A decoded HDC1080 temperature and humidity pair.
- Pamoja
Ina226 Config - An INA226 configuration register, field by field.
- Pamoja
Ina226 DieId - A decoded INA226 die-ID register.
- Pamoja
Ina226 Mask Enable - An INA226 Mask/Enable register, field by field.
- Pamoja
Opt3001 Config - An OPT3001 configuration register, field by field.
- Pamoja
Scd4x Measurement - A decoded SCD4x measurement frame.
- Pamoja
Sht3x Measurement - A decoded SHT3x temperature and humidity pair.
- Pamoja
Sht3x Status - A decoded SHT3x status register.
- Pamoja
Tmp117 Config - A TMP117 configuration register, field by field.
Enums§
- Pamoja
Ina226 Alert Function - The limit comparison an INA226 alert pin responds to.
Constants§
- PAMOJA_
BME280_ CALIBRATION_ HUMIDITY_ LEN - The number of calibration bytes a BME280 reports for humidity.
- PAMOJA_
BME280_ CALIBRATION_ TEMP_ PRESS_ LEN - The number of calibration bytes a BME280 reports for temperature and pressure.
- PAMOJA_
BME280_ MEASUREMENT_ LEN - The number of measurement bytes a BME280 burst read returns.
- PAMOJA_
BMP280_ CALIBRATION_ LEN - The number of calibration bytes a BMP280 reports.
- PAMOJA_
BMP280_ CHIP_ ID - The value a BMP280’s chip-ID register reads, which confirms the part.
- PAMOJA_
BMP280_ DATA_ LEN - The number of measurement bytes a BMP280 burst read returns.
- PAMOJA_
BMP280_ I2C_ ADDRESS_ PRIMARY - The address a BMP280 answers on with its SDO pin low.
- PAMOJA_
BMP280_ I2C_ ADDRESS_ SECONDARY - The address it answers on with SDO high.
- PAMOJA_
BMP280_ REGISTER_ CALIBRATION - The first of the 24 BMP280 calibration registers.
- PAMOJA_
BMP280_ REGISTER_ CHIP_ ID - The BMP280 chip-ID register.
- PAMOJA_
BMP280_ REGISTER_ CONFIG - The BMP280
configregister. - PAMOJA_
BMP280_ REGISTER_ CTRL_ MEAS - The BMP280
ctrl_measregister. - PAMOJA_
BMP280_ REGISTER_ DATA - The first of the six BMP280 data registers.
- PAMOJA_
BMP280_ REGISTER_ RESET - The BMP280 reset register.
- PAMOJA_
BMP280_ REGISTER_ STATUS - The BMP280 status register.
- PAMOJA_
BMP280_ RESET_ WORD - The byte written to the reset register to restart a BMP280.
- PAMOJA_
BMP280_ SKIPPED_ OUTPUT - The raw code a BMP280 reports when oversampling is off and nothing was measured.
- PAMOJA_
DS18 B20_ SCRATCHPAD_ LEN - The number of bytes in a DS18B20 scratchpad, the ninth being its CRC.
- PAMOJA_
HDC1080_ CONFIGURATION_ RESET - The value its configuration register reads after a reset.
- PAMOJA_
HDC1080_ DEVICE_ ID - The value its device-ID register reads, which confirms the part.
- PAMOJA_
HDC1080_ I2C_ ADDRESS - The single address an HDC1080 answers on.
- PAMOJA_
HDC1080_ MANUFACTURER_ ID - The value its manufacturer-ID register reads: TI.
- PAMOJA_
HDC1080_ MEASUREMENT_ LEN - The number of bytes an HDC1080 sequential read returns.
- PAMOJA_
HDC1080_ REGISTER_ CONFIGURATION - The HDC1080 configuration register.
- PAMOJA_
HDC1080_ REGISTER_ DEVICE_ ID - The HDC1080 device-ID register.
- PAMOJA_
HDC1080_ REGISTER_ HUMIDITY - The HDC1080 humidity register.
- PAMOJA_
HDC1080_ REGISTER_ MANUFACTURER_ ID - The HDC1080 manufacturer-ID register.
- PAMOJA_
HDC1080_ REGISTER_ SERIAL_ ID_ HIGH - The high word of the HDC1080 serial ID.
- PAMOJA_
HDC1080_ REGISTER_ SERIAL_ ID_ LOW - The low word of the HDC1080 serial ID.
- PAMOJA_
HDC1080_ REGISTER_ SERIAL_ ID_ MID - The middle word of the HDC1080 serial ID.
- PAMOJA_
HDC1080_ REGISTER_ TEMPERATURE - The HDC1080 temperature register.
- PAMOJA_
HDC1080_ SERIAL_ ID_ REGISTERS - The number of serial-ID registers an HDC1080 carries.
- PAMOJA_
INA226_ BASE_ ADDRESS - The address an INA226 answers on with both address pins tied to GND.
- PAMOJA_
INA226_ BUS_ LSB_ MICROVOLTS - The bus-voltage resolution, in microvolts per count.
- PAMOJA_
INA226_ CONFIG_ RESET - The value its configuration register reads after a reset.
- PAMOJA_
INA226_ DEVICE_ ID - The device identifier its die-ID register carries.
- PAMOJA_
INA226_ MANUFACTURER_ ID - The value its manufacturer-ID register reads: TI.
- PAMOJA_
INA226_ POWER_ LSB_ RATIO - How many times the power resolution is the current resolution.
- PAMOJA_
INA226_ REGISTER_ ALERT_ LIMIT - The INA226 alert-limit register.
- PAMOJA_
INA226_ REGISTER_ BUS_ VOLTAGE - The INA226 bus-voltage register.
- PAMOJA_
INA226_ REGISTER_ CALIBRATION - The INA226 calibration register.
- PAMOJA_
INA226_ REGISTER_ CONFIGURATION - The INA226 configuration register.
- PAMOJA_
INA226_ REGISTER_ CURRENT - The INA226 current register.
- PAMOJA_
INA226_ REGISTER_ DIE_ ID - The INA226 die-ID register.
- PAMOJA_
INA226_ REGISTER_ MANUFACTURER_ ID - The INA226 manufacturer-ID register.
- PAMOJA_
INA226_ REGISTER_ MASK_ ENABLE - The INA226 Mask/Enable register.
- PAMOJA_
INA226_ REGISTER_ POWER - The INA226 power register.
- PAMOJA_
INA226_ REGISTER_ SHUNT_ VOLTAGE - The INA226 shunt-voltage register.
- PAMOJA_
INA226_ SHUNT_ LSB_ NANOVOLTS - The shunt-voltage resolution, in nanovolts per count.
- PAMOJA_
OPT3001_ CONFIGURATION_ RESET - The value its configuration register reads after a reset.
- PAMOJA_
OPT3001_ DEVICE_ ID - The value its device-ID register reads, which confirms the part.
- PAMOJA_
OPT3001_ HIGH_ LIMIT_ RESET - The value its high-limit register reads after a reset.
- PAMOJA_
OPT3001_ I2C_ ADDRESS_ GND - The address an OPT3001 answers on with its ADDR pin tied to GND.
- PAMOJA_
OPT3001_ I2C_ ADDRESS_ SCL - The address it answers on with ADDR tied to SCL.
- PAMOJA_
OPT3001_ I2C_ ADDRESS_ SDA - The address it answers on with ADDR tied to SDA.
- PAMOJA_
OPT3001_ I2C_ ADDRESS_ VDD - The address it answers on with ADDR tied to VDD.
- PAMOJA_
OPT3001_ LOW_ LIMIT_ END_ OF_ CONVERSION - The low-limit value that turns the INT pin into an end-of-conversion signal.
- PAMOJA_
OPT3001_ LOW_ LIMIT_ RESET - The value its low-limit register reads after a reset.
- PAMOJA_
OPT3001_ MANUFACTURER_ ID - The value its manufacturer-ID register reads: TI.
- PAMOJA_
OPT3001_ RANGE_ AUTOMATIC - The range number that lets the part choose its own full scale.
- PAMOJA_
OPT3001_ RANGE_ MAX - The highest fixed range number the part defines.
- PAMOJA_
OPT3001_ REGISTER_ CONFIGURATION - The OPT3001 configuration register.
- PAMOJA_
OPT3001_ REGISTER_ DEVICE_ ID - The OPT3001 device-ID register.
- PAMOJA_
OPT3001_ REGISTER_ HIGH_ LIMIT - The OPT3001 high-limit register.
- PAMOJA_
OPT3001_ REGISTER_ LEN - The number of bytes in an OPT3001 register read.
- PAMOJA_
OPT3001_ REGISTER_ LOW_ LIMIT - The OPT3001 low-limit register.
- PAMOJA_
OPT3001_ REGISTER_ MANUFACTURER_ ID - The OPT3001 manufacturer-ID register.
- PAMOJA_
OPT3001_ REGISTER_ RESULT - The OPT3001 result register.
- PAMOJA_
SCD4X_ CO2_ MAX_ PPM - The highest carbon dioxide concentration an SCD4x reports, in parts per million.
- PAMOJA_
SCD4X_ COMMAND_ GET_ AUTOMATIC_ SELF_ CALIBRATION_ ENABLED - Reads whether automatic self-calibration is on.
- PAMOJA_
SCD4X_ COMMAND_ GET_ DATA_ READY_ STATUS - Reads whether a fresh result is waiting.
- PAMOJA_
SCD4X_ COMMAND_ GET_ SENSOR_ ALTITUDE - Reads the configured altitude back.
- PAMOJA_
SCD4X_ COMMAND_ GET_ SERIAL_ NUMBER - Reads the 48-bit serial number, three words with their CRCs.
- PAMOJA_
SCD4X_ COMMAND_ GET_ TEMPERATURE_ OFFSET - Reads the temperature offset back.
- PAMOJA_
SCD4X_ COMMAND_ LEN - The number of bytes in an SCD4x command frame.
- PAMOJA_
SCD4X_ COMMAND_ MEASURE_ SINGLE_ SHOT - Takes one measurement on demand, an SCD41 command.
- PAMOJA_
SCD4X_ COMMAND_ MEASURE_ SINGLE_ SHOT_ RHT_ ONLY - Takes one humidity and temperature measurement without the photoacoustic cell.
- PAMOJA_
SCD4X_ COMMAND_ PERFORM_ FACTORY_ RESET - Restores the factory settings, discarding the stored calibration.
- PAMOJA_
SCD4X_ COMMAND_ PERFORM_ FORCED_ RECALIBRATION - Recalibrates against a known concentration and returns the correction applied.
- PAMOJA_
SCD4X_ COMMAND_ PERFORM_ SELF_ TEST - Runs the on-board self test, which takes ten seconds.
- PAMOJA_
SCD4X_ COMMAND_ PERSIST_ SETTINGS - Stores the current settings in non-volatile memory.
- PAMOJA_
SCD4X_ COMMAND_ POWER_ DOWN - Puts an SCD41 into its lowest-power state.
- PAMOJA_
SCD4X_ COMMAND_ READ_ MEASUREMENT - Reads the latest carbon dioxide, temperature, and humidity words.
- PAMOJA_
SCD4X_ COMMAND_ REINIT - Reloads the stored settings without a power cycle.
- PAMOJA_
SCD4X_ COMMAND_ SET_ AMBIENT_ PRESSURE - Writes the ambient pressure, which may be sent during a measurement.
- PAMOJA_
SCD4X_ COMMAND_ SET_ AUTOMATIC_ SELF_ CALIBRATION_ ENABLED - Turns automatic self-calibration on or off.
- PAMOJA_
SCD4X_ COMMAND_ SET_ SENSOR_ ALTITUDE - Writes the altitude the part compensates its pressure for, in metres.
- PAMOJA_
SCD4X_ COMMAND_ SET_ TEMPERATURE_ OFFSET - Writes the temperature offset the part subtracts from its own reading.
- PAMOJA_
SCD4X_ COMMAND_ START_ LOW_ POWER_ PERIODIC_ MEASUREMENT - Starts low-power periodic measurements, one result every thirty seconds.
- PAMOJA_
SCD4X_ COMMAND_ START_ PERIODIC_ MEASUREMENT - Starts periodic measurements at one result every five seconds.
- PAMOJA_
SCD4X_ COMMAND_ STOP_ PERIODIC_ MEASUREMENT - Stops periodic measurements so other commands are accepted again.
- PAMOJA_
SCD4X_ COMMAND_ WAKE_ UP - Brings an SCD41 back out of power-down.
- PAMOJA_
SCD4X_ DEFAULT_ TEMPERATURE_ OFFSET_ MILLI_ CELSIUS - The temperature offset an SCD4x holds after a factory reset.
- PAMOJA_
SCD4X_ FORCED_ RECALIBRATION_ FAILED - The word a forced recalibration returns when it did not take.
- PAMOJA_
SCD4X_ I2C_ ADDRESS - The single address an SCD4x answers on.
- PAMOJA_
SCD4X_ LOW_ POWER_ PERIODIC_ MEASUREMENT_ INTERVAL_ MS - How often it produces a result in low-power periodic mode, in milliseconds.
- PAMOJA_
SCD4X_ MEASUREMENT_ LEN - The number of bytes in an SCD4x measurement frame, three words with their CRCs.
- PAMOJA_
SCD4X_ PERIODIC_ MEASUREMENT_ INTERVAL_ MS - How often an SCD4x in periodic mode produces a result, in milliseconds.
- PAMOJA_
SCD4X_ POWER_ UP_ TIME_ MS - How long an SCD4x takes to become responsive after power-up, in milliseconds.
- PAMOJA_
SCD4X_ WORD_ LEN - The number of bytes in an SCD4x word frame: the word then its CRC.
- PAMOJA_
SCD4X_ WRITE_ LEN - The number of bytes in an SCD4x write frame: a command, a word, and its CRC.
- PAMOJA_
SHT3X_ COMMAND_ BREAK - Leaves periodic mode so another command can be accepted.
- PAMOJA_
SHT3X_ COMMAND_ CLEAR_ STATUS - Clears the latched flags in the status register.
- PAMOJA_
SHT3X_ COMMAND_ FETCH_ DATA - Fetches the last result of a periodic measurement.
- PAMOJA_
SHT3X_ COMMAND_ GENERAL_ CALL_ RESET - The general-call reset, addressed to 0x00.
- PAMOJA_
SHT3X_ COMMAND_ HEATER_ DISABLE - Turns the on-die heater off.
- PAMOJA_
SHT3X_ COMMAND_ HEATER_ ENABLE - Turns the on-die heater on.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ ART - Accelerated response time: four measurements a second with a faster filter.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ FOUR_ MPS_ HIGH - Four measurements a second at high repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ FOUR_ MPS_ LOW - Four measurements a second at low repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ FOUR_ MPS_ MEDIUM - Four measurements a second at medium repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ HALF_ MPS_ HIGH - A measurement every two seconds at high repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ HALF_ MPS_ LOW - A measurement every two seconds at low repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ HALF_ MPS_ MEDIUM - A measurement every two seconds at medium repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ ONE_ MPS_ HIGH - One measurement a second at high repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ ONE_ MPS_ LOW - One measurement a second at low repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ ONE_ MPS_ MEDIUM - One measurement a second at medium repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TEN_ MPS_ HIGH - Ten measurements a second at high repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TEN_ MPS_ LOW - Ten measurements a second at low repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TEN_ MPS_ MEDIUM - Ten measurements a second at medium repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TWO_ MPS_ HIGH - Two measurements a second at high repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TWO_ MPS_ LOW - Two measurements a second at low repeatability.
- PAMOJA_
SHT3X_ COMMAND_ PERIODIC_ TWO_ MPS_ MEDIUM - Two measurements a second at medium repeatability.
- PAMOJA_
SHT3X_ COMMAND_ READ_ STATUS - Reads the status register.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ HIGH - One high-repeatability measurement, released and fetched later.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ HIGH_ STRETCH - One high-repeatability measurement, holding the bus until it is ready.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ LOW - One low-repeatability measurement, released and fetched later.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ LOW_ STRETCH - One low-repeatability measurement, holding the bus.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ MEDIUM - One medium-repeatability measurement, released and fetched later.
- PAMOJA_
SHT3X_ COMMAND_ SINGLE_ SHOT_ MEDIUM_ STRETCH - One medium-repeatability measurement, holding the bus.
- PAMOJA_
SHT3X_ COMMAND_ SOFT_ RESET - Restarts the part as if it had been power-cycled.
- PAMOJA_
SHT3X_ I2C_ ADDRESS_ A - The address an SHT3x answers on with its ADDR pin low.
- PAMOJA_
SHT3X_ I2C_ ADDRESS_ B - The address it answers on with ADDR high.
- PAMOJA_
SHT3X_ MEASUREMENT_ LEN - The number of bytes in an SHT3x measurement frame, each word followed by its CRC.
- PAMOJA_
SHT3X_ MIN_ COMMAND_ GAP_ MICROS - The gap an SHT3x needs between two commands, in microseconds.
- PAMOJA_
SHT3X_ STATUS_ DEFAULT - The status word an SHT3x reads after a reset.
- PAMOJA_
SHT3X_ WORD_ LEN - The number of bytes in an SHT3x word frame: the word then its CRC.
- PAMOJA_
TMP117_ ADDRESS_ ADD0_ GND - The address a TMP117 answers on with ADD0 tied to GND.
- PAMOJA_
TMP117_ ADDRESS_ ADD0_ SCL - The address it answers on with ADD0 tied to SCL.
- PAMOJA_
TMP117_ ADDRESS_ ADD0_ SDA - The address it answers on with ADD0 tied to SDA.
- PAMOJA_
TMP117_ ADDRESS_ ADD0_ VPLUS - The address it answers on with ADD0 tied to V+.
- PAMOJA_
TMP117_ CONFIG_ RESET - The value its configuration register reads after a reset.
- PAMOJA_
TMP117_ DEVICE_ ID - The value a TMP117’s device-ID register reads, which confirms the part.
- PAMOJA_
TMP117_ EEPROM_ UNLOCK - The word written to the EEPROM unlock register to allow a write.
- PAMOJA_
TMP117_ GENERAL_ CALL_ RESET - The byte a general-call reset sends to address 0x00.
- PAMOJA_
TMP117_ HIGH_ LIMIT_ RESET - The value its high-limit register reads after a reset.
- PAMOJA_
TMP117_ LOW_ LIMIT_ RESET - The value its low-limit register reads after a reset.
- PAMOJA_
TMP117_ REGISTER_ CONFIGURATION - The TMP117 configuration register.
- PAMOJA_
TMP117_ REGISTER_ DEVICE_ ID - The TMP117 device-ID register.
- PAMOJA_
TMP117_ REGISTER_ EEPRO M1 - The first TMP117 general-purpose EEPROM register.
- PAMOJA_
TMP117_ REGISTER_ EEPRO M2 - The second TMP117 general-purpose EEPROM register.
- PAMOJA_
TMP117_ REGISTER_ EEPRO M3 - The third TMP117 general-purpose EEPROM register.
- PAMOJA_
TMP117_ REGISTER_ EEPROM_ UL - The TMP117 EEPROM unlock register.
- PAMOJA_
TMP117_ REGISTER_ LEN - The number of bytes in a TMP117 register read.
- PAMOJA_
TMP117_ REGISTER_ TEMP_ OFFSET - The TMP117 temperature offset register.
- PAMOJA_
TMP117_ REGISTER_ TEMP_ RESULT - The TMP117 temperature result register.
- PAMOJA_
TMP117_ REGISTER_ THIGH_ LIMIT - The TMP117 high-limit register.
- PAMOJA_
TMP117_ REGISTER_ TLOW_ LIMIT - The TMP117 low-limit register.
- PAMOJA_
TMP117_ TEMP_ RESULT_ RESET - The value its result register reads before the first conversion completes.
Functions§
- pamoja_
ads1115_ config_ bits - Assembles the 16-bit ADS1115 configuration register value.
- pamoja_
ads1115_ ⚠config_ from_ bits - Parses a 16-bit ADS1115 configuration register value.
- pamoja_
ads1115_ full_ scale_ microvolts - Returns the full-scale range an ADS1115 gain code selects.
- pamoja_
ads1115_ samples_ per_ second - Returns the sample rate an ADS1115 data-rate code selects.
- pamoja_
ads1115_ to_ nanovolts - Converts a raw ADS1115 conversion result to nanovolts.
- pamoja_
ads1115_ to_ volts - Converts a raw ADS1115 conversion result to volts.
- pamoja_
bme280_ ⚠calibration_ free - Releases a BME280 calibration handle.
- pamoja_
bme280_ ⚠calibration_ new - Builds a BME280 calibration from the bytes read out of its registers.
- pamoja_
bme280_ ⚠compensate - Turns a BME280 burst read into a compensated reading.
- pamoja_
bmp280_ ⚠calibration_ coefficients - Reads out the trimming coefficients a BMP280 calibration carries.
- pamoja_
bmp280_ ⚠calibration_ free - Releases a BMP280 calibration handle.
- pamoja_
bmp280_ ⚠calibration_ new - Builds a BMP280 calibration from the 24 bytes read out of its registers.
- pamoja_
bmp280_ ⚠calibration_ to_ bytes - Rebuilds the 24 calibration bytes a device holding these coefficients returns.
- pamoja_
bmp280_ ⚠compensate - Turns a BMP280 burst read into a compensated reading.
- pamoja_
bmp280_ config_ bits - Assembles a BMP280
configregister value. - pamoja_
bmp280_ ⚠config_ from_ bits - Parses a BMP280
configregister value. - pamoja_
bmp280_ ctrl_ meas_ bits - Assembles a BMP280
ctrl_measregister value. - pamoja_
bmp280_ ⚠ctrl_ meas_ from_ bits - Parses a BMP280
ctrl_measregister value. - pamoja_
bmp280_ image_ updating - Reports whether a BMP280 status byte says the calibration image is loading.
- pamoja_
bmp280_ ⚠measurement_ bytes - Builds the six data bytes a BMP280 holding these codes would return.
- pamoja_
bmp280_ measuring - Reports whether a BMP280 status byte says a conversion is running.
- pamoja_
bmp280_ oversampling_ factor - Returns how many samples a BMP280 oversampling code averages.
- pamoja_
bmp280_ ⚠parse_ measurement - Unpacks the six data bytes a BMP280 burst read returns.
- pamoja_
bmp280_ standby_ micros - Returns the normal-mode standby period a BMP280 code selects.
- pamoja_
ds18b20_ ⚠build_ scratchpad - Builds the nine bytes a DS18B20 in the given state puts on the bus, CRC last.
- pamoja_
ds18b20_ celsius - Converts a raw DS18B20 temperature register to degrees Celsius.
- pamoja_
ds18b20_ ⚠config_ byte - Returns the configuration byte that selects a DS18B20 resolution.
- pamoja_
ds18b20_ ⚠crc8 - Computes the Maxim CRC-8 a 1-Wire device checks its own bytes with.
- pamoja_
ds18b20_ ⚠max_ conversion_ micros - Returns how long a DS18B20 conversion may take at a resolution.
- pamoja_
ds18b20_ micro_ celsius - Converts a raw DS18B20 temperature register to micro-degrees Celsius.
- pamoja_
ds18b20_ ⚠parse_ scratchpad - Parses and CRC-checks a nine-byte DS18B20 scratchpad.
- pamoja_
ds18b20_ resolution_ bits - Returns the resolution a DS18B20 configuration byte selects.
- pamoja_
ds18b20_ ⚠step_ micro_ celsius - Returns the temperature step a DS18B20 resolution resolves.
- pamoja_
hdc1080_ celsius - Converts a raw HDC1080 temperature register to degrees Celsius.
- pamoja_
hdc1080_ ⚠config_ from_ register - Parses an HDC1080 configuration register value.
- pamoja_
hdc1080_ ⚠config_ to_ register - Assembles an HDC1080 configuration register value.
- pamoja_
hdc1080_ ⚠conversion_ time_ micros - Returns how long to wait after triggering an HDC1080 in a configuration.
- pamoja_
hdc1080_ ⚠humidity_ conversion_ micros - Returns how long an HDC1080 humidity conversion takes at a resolution.
- pamoja_
hdc1080_ humidity_ register - Builds the HDC1080 humidity register that decodes to a relative humidity.
- pamoja_
hdc1080_ ⚠measurement_ bytes - Builds the four bytes an HDC1080 sends for a pair of raw registers.
- pamoja_
hdc1080_ ⚠measurement_ from_ physical - Builds the HDC1080 measurement a sensor reporting these physical values would send.
- pamoja_
hdc1080_ milli_ celsius - Converts a raw HDC1080 temperature register to milli-degrees Celsius.
- pamoja_
hdc1080_ milli_ percent - Converts a raw HDC1080 humidity register to milli-percent.
- pamoja_
hdc1080_ ⚠parse_ measurement - Parses the four bytes an HDC1080 sequential read returns.
- pamoja_
hdc1080_ relative_ humidity - Converts a raw HDC1080 humidity register to a relative humidity percentage.
- pamoja_
hdc1080_ serial_ id - Joins the three HDC1080 serial-ID registers into the 40-bit serial number.
- pamoja_
hdc1080_ ⚠serial_ id_ registers - Splits a serial number back into the three HDC1080 serial-ID registers.
- pamoja_
hdc1080_ ⚠temperature_ conversion_ micros - Returns how long an HDC1080 temperature conversion takes at a resolution.
- pamoja_
hdc1080_ temperature_ register - Builds the HDC1080 temperature register that decodes to a temperature.
- pamoja_
ina219_ bus_ millivolts - Converts a raw INA219 bus-voltage register to millivolts.
- pamoja_
ina219_ bus_ register - Builds the INA219 bus-voltage register a monitor reports for a bus voltage.
- pamoja_
ina219_ calibration - Computes the INA219 calibration register for a shunt and current resolution.
- pamoja_
ina219_ conversion_ ready - Reports whether an INA219 bus-voltage register says a conversion is ready.
- pamoja_
ina219_ current_ microamps - Converts a raw INA219 current register to microamps.
- pamoja_
ina219_ current_ register - Builds the INA219 current register a monitor reports for a current.
- pamoja_
ina219_ math_ overflow - Reports whether an INA219 bus-voltage register flags a math overflow.
- pamoja_
ina219_ minimum_ current_ lsb_ microamps - Returns the smallest current resolution that still covers an expected maximum.
- pamoja_
ina219_ power_ microwatts - Converts a raw INA219 power register to microwatts.
- pamoja_
ina219_ power_ register - Builds the INA219 power register a monitor reports for a power.
- pamoja_
ina219_ shunt_ microvolts - Converts a raw INA219 shunt-voltage register to microvolts.
- pamoja_
ina219_ shunt_ register - Builds the INA219 shunt-voltage register a monitor reports for a shunt voltage.
- pamoja_
ina226_ ⚠active_ alert_ function - Returns the alert function an INA226 pin actually responds to.
- pamoja_
ina226_ ⚠address - Returns the I2C address an INA226’s A1 and A0 pin codes select.
- pamoja_
ina226_ averaging_ samples - Returns how many samples an INA226 averaging code folds into one result.
- pamoja_
ina226_ bus_ microvolts - Converts a raw INA226 bus-voltage register to microvolts.
- pamoja_
ina226_ bus_ register - Builds the INA226 bus-voltage register a monitor reports for a bus voltage.
- pamoja_
ina226_ bus_ volts - Converts a raw INA226 bus-voltage register to volts.
- pamoja_
ina226_ calibration - Computes the INA226 calibration register for a shunt and current resolution.
- pamoja_
ina226_ ⚠config_ from_ register - Parses an INA226 configuration register value.
- pamoja_
ina226_ config_ to_ register - Assembles an INA226 configuration register value.
- pamoja_
ina226_ conversion_ micros - Returns the conversion time an INA226 code selects.
- pamoja_
ina226_ current_ amps - Converts a raw INA226 current register to amps.
- pamoja_
ina226_ current_ microamps - Converts a raw INA226 current register to microamps.
- pamoja_
ina226_ current_ register - Builds the INA226 current register a monitor reports for a current.
- pamoja_
ina226_ current_ register_ from_ shunt - Computes the INA226 current register the chip derives from a shunt reading.
- pamoja_
ina226_ ⚠die_ id - Splits an INA226 die-ID register into its device and revision fields.
- pamoja_
ina226_ ⚠identify - Checks that a pair of identification registers belongs to an INA226.
- pamoja_
ina226_ is_ continuous - Reports whether an INA226 mode code keeps converting after the first result.
- pamoja_
ina226_ ⚠mask_ enable_ from_ register - Parses an INA226 Mask/Enable register value.
- pamoja_
ina226_ mask_ enable_ to_ register - Assembles an INA226 Mask/Enable register value.
- pamoja_
ina226_ measures_ bus - Reports whether an INA226 mode code converts the bus voltage.
- pamoja_
ina226_ measures_ shunt - Reports whether an INA226 mode code converts the shunt voltage.
- pamoja_
ina226_ minimum_ current_ lsb_ microamps - Returns the smallest current resolution that still covers an expected maximum.
- pamoja_
ina226_ power_ microwatts - Converts a raw INA226 power register to microwatts.
- pamoja_
ina226_ power_ register - Builds the INA226 power register a monitor reports for a power.
- pamoja_
ina226_ power_ register_ from_ current - Computes the INA226 power register the chip derives from a current reading.
- pamoja_
ina226_ power_ watts - Converts a raw INA226 power register to watts.
- pamoja_
ina226_ shunt_ millivolts - Converts a raw INA226 shunt-voltage register to millivolts.
- pamoja_
ina226_ shunt_ nanovolts - Converts a raw INA226 shunt-voltage register to nanovolts.
- pamoja_
ina226_ shunt_ register - Builds the INA226 shunt-voltage register a monitor reports for a shunt voltage.
- pamoja_
ina226_ update_ micros - Returns how often an INA226 in a configuration updates its results.
- pamoja_
opt3001_ config_ bits - Assembles the 16-bit OPT3001 configuration register value.
- pamoja_
opt3001_ ⚠config_ from_ bits - Parses a 16-bit OPT3001 configuration register value.
- pamoja_
opt3001_ conversion_ millis - Returns the conversion time an OPT3001 setting selects.
- pamoja_
opt3001_ fault_ count - Returns how many consecutive faults an OPT3001 fault-count code requires.
- pamoja_
opt3001_ ⚠full_ scale_ milli_ lux - Returns the full scale an OPT3001 range number covers.
- pamoja_
opt3001_ is_ automatic_ range - Reports whether an OPT3001 range number sets the full scale automatically.
- pamoja_
opt3001_ ⚠lsb_ milli_ lux - Returns the illuminance one count carries at an OPT3001 exponent.
- pamoja_
opt3001_ lux - Converts a raw OPT3001 result register to lux.
- pamoja_
opt3001_ milli_ lux - Converts a raw OPT3001 result register to milli-lux.
- pamoja_
opt3001_ raw_ from_ milli_ lux - Builds the OPT3001 result register that decodes to an illuminance.
- pamoja_
opt3001_ ⚠word_ from_ bytes - Reads the two bytes an OPT3001 sends for a register, most significant first.
- pamoja_
opt3001_ ⚠word_ to_ bytes - Builds the two bytes an OPT3001 sends for a register, most significant first.
- pamoja_
scd4x_ allowed_ during_ measurement - Reports whether an SCD4x accepts a command while it is measuring.
- pamoja_
scd4x_ ambient_ pressure_ pascals - Reads an SCD4x ambient-pressure word back as a pressure.
- pamoja_
scd4x_ ambient_ pressure_ word - Builds the SCD4x ambient-pressure word for a pressure.
- pamoja_
scd4x_ automatic_ self_ calibration_ enabled - Reports whether an SCD4x word says automatic self-calibration is on.
- pamoja_
scd4x_ automatic_ self_ calibration_ word - Builds the SCD4x word that turns automatic self-calibration on or off.
- pamoja_
scd4x_ celsius - Converts a raw SCD4x temperature word to degrees Celsius.
- pamoja_
scd4x_ ⚠command_ frame - Builds the two bytes that address an SCD4x command, most significant first.
- pamoja_
scd4x_ ⚠crc - Computes the CRC-8 an SCD4x appends to every data word.
- pamoja_
scd4x_ data_ ready - Reports whether an SCD4x data-ready word says a fresh result is waiting.
- pamoja_
scd4x_ ⚠forced_ recalibration_ correction_ ppm - Reads the correction a forced recalibration applied.
- pamoja_
scd4x_ forced_ recalibration_ word - Builds the word an SCD4x returns for a forced-recalibration outcome.
- pamoja_
scd4x_ humidity_ milli_ percent - Converts a raw SCD4x humidity word to milli-percent.
- pamoja_
scd4x_ humidity_ raw - Builds the SCD4x humidity word that decodes to a relative humidity.
- pamoja_
scd4x_ ⚠max_ duration_ ms - Returns how long an SCD4x command may take before its result can be read.
- pamoja_
scd4x_ ⚠measurement_ bytes - Builds the nine bytes an SCD4x sends for a set of raw words, each CRC included.
- pamoja_
scd4x_ ⚠measurement_ from_ physical - Builds the SCD4x measurement a sensor reporting these physical values would send.
- pamoja_
scd4x_ milli_ celsius - Converts a raw SCD4x temperature word to milli-degrees Celsius.
- pamoja_
scd4x_ ⚠parse_ measurement - Parses and CRC-checks a nine-byte SCD4x measurement frame.
- pamoja_
scd4x_ relative_ humidity_ percent - Converts a raw SCD4x humidity word to a relative humidity percentage.
- pamoja_
scd4x_ self_ test_ passed - Reports whether an SCD4x self-test word says the part is healthy.
- pamoja_
scd4x_ ⚠serial_ number - Reads the 48-bit serial number out of a nine-byte SCD4x frame.
- pamoja_
scd4x_ ⚠serial_ number_ frame - Builds the nine bytes an SCD4x sends for a serial number, each CRC included.
- pamoja_
scd4x_ temperature_ offset_ milli_ celsius - Reads an SCD4x temperature-offset word back as an offset.
- pamoja_
scd4x_ temperature_ offset_ word - Builds the SCD4x temperature-offset word for an offset.
- pamoja_
scd4x_ temperature_ raw - Builds the SCD4x temperature word that decodes to a temperature.
- pamoja_
scd4x_ ⚠word - Reads a CRC-checked three-byte SCD4x word frame.
- pamoja_
scd4x_ ⚠word_ frame - Builds the three bytes an SCD4x sends for a word: the word then its CRC.
- pamoja_
scd4x_ ⚠write_ frame - Builds the five bytes that write a word to an SCD4x: command, word, CRC.
- pamoja_
sht3x_ celsius - Converts a raw SHT3x temperature word to degrees Celsius.
- pamoja_
sht3x_ ⚠crc - Computes the CRC-8 an SHT3x appends to every data word.
- pamoja_
sht3x_ fahrenheit - Converts a raw SHT3x temperature word to degrees Fahrenheit.
- pamoja_
sht3x_ humidity_ raw_ from_ milli_ percent - Builds the SHT3x humidity word that decodes to a relative humidity.
- pamoja_
sht3x_ humidity_ raw_ from_ relative_ humidity - Builds the SHT3x humidity word that decodes to a relative humidity percentage.
- pamoja_
sht3x_ ⚠interval_ micros - Returns the gap between SHT3x periodic measurements at a rate.
- pamoja_
sht3x_ ⚠max_ measurement_ micros - Returns how long an SHT3x measurement may take at a repeatability.
- pamoja_
sht3x_ ⚠measurement_ bytes - Builds the six bytes an SHT3x sends for a pair of raw words.
- pamoja_
sht3x_ milli_ celsius - Converts a raw SHT3x temperature word to milli-degrees Celsius.
- pamoja_
sht3x_ milli_ fahrenheit - Converts a raw SHT3x temperature word to milli-degrees Fahrenheit.
- pamoja_
sht3x_ milli_ percent - Converts a raw SHT3x humidity word to milli-percent.
- pamoja_
sht3x_ ⚠parse_ measurement - Parses and CRC-checks a six-byte SHT3x measurement frame.
- pamoja_
sht3x_ ⚠parse_ status - Parses and CRC-checks a three-byte SHT3x status frame.
- pamoja_
sht3x_ ⚠periodic - Returns the SHT3x periodic-mode command for a repeatability and rate.
- pamoja_
sht3x_ relative_ humidity - Converts a raw SHT3x humidity word to a relative humidity percentage.
- pamoja_
sht3x_ ⚠single_ shot - Returns the SHT3x single-shot command for a repeatability and clock mode.
- pamoja_
sht3x_ ⚠status_ bytes - Builds the three bytes an SHT3x sends for a status word, CRC last.
- pamoja_
sht3x_ ⚠status_ from_ bits - Splits an SHT3x status word into its flags.
- pamoja_
sht3x_ temperature_ raw_ from_ celsius - Builds the SHT3x temperature word that decodes to a temperature in Celsius.
- pamoja_
sht3x_ temperature_ raw_ from_ milli_ celsius - Builds the SHT3x temperature word that decodes to a temperature.
- pamoja_
sht3x_ temperature_ raw_ from_ milli_ fahrenheit - Builds the SHT3x temperature word that decodes to a temperature in Fahrenheit.
- pamoja_
sht3x_ ⚠typical_ measurement_ micros - Returns how long an SHT3x measurement typically takes at a repeatability.
- pamoja_
sht3x_ ⚠word - Reads a CRC-checked three-byte SHT3x word frame.
- pamoja_
sht3x_ ⚠word_ bytes - Builds the three bytes an SHT3x sends for a word: the word then its CRC.
- pamoja_
tmp117_ averaging_ conversions - Returns how many conversions a TMP117 averaging code folds into one result.
- pamoja_
tmp117_ averaging_ micros - Returns how long a TMP117 averaging code takes to convert.
- pamoja_
tmp117_ celsius - Converts a raw TMP117 temperature register to degrees Celsius.
- pamoja_
tmp117_ config_ bits - Assembles the 16-bit TMP117 configuration register value.
- pamoja_
tmp117_ ⚠config_ from_ bits - Parses a 16-bit TMP117 configuration register value.
- pamoja_
tmp117_ cycle_ micros - Returns how often a TMP117 updates its result for a cycle and averaging code.
- pamoja_
tmp117_ cycle_ nominal_ micros - Returns the nominal cycle a TMP117 conversion-cycle code selects.
- pamoja_
tmp117_ data_ ready - Reports whether a TMP117 configuration register says a result is ready.
- pamoja_
tmp117_ device_ id - Reads the device identifier out of a TMP117 device-ID register.
- pamoja_
tmp117_ eeprom_ busy - Reports whether a TMP117 configuration register says an EEPROM write is running.
- pamoja_
tmp117_ eeprom_ unlock_ busy - Reports whether a TMP117 EEPROM unlock register says a write is running.
- pamoja_
tmp117_ high_ alert - Reports whether a TMP117 configuration register flags a high alert.
- pamoja_
tmp117_ low_ alert - Reports whether a TMP117 configuration register flags a low alert.
- pamoja_
tmp117_ micro_ celsius - Converts a raw TMP117 temperature register to micro-degrees Celsius.
- pamoja_
tmp117_ nano_ celsius - Converts a raw TMP117 temperature register to nano-degrees Celsius.
- pamoja_
tmp117_ raw_ from_ celsius - Builds the TMP117 temperature register that decodes to a temperature in Celsius.
- pamoja_
tmp117_ raw_ from_ micro_ celsius - Builds the TMP117 temperature register that decodes to a temperature.
- pamoja_
tmp117_ revision - Reads the die revision out of a TMP117 device-ID register.
- pamoja_
tmp117_ ⚠temperature_ bytes - Builds the two bytes a TMP117 sends for a temperature register.
- pamoja_
tmp117_ ⚠temperature_ from_ bytes - Reads the two bytes a TMP117 sends for a temperature register.