Description: This library facilitates communication with, and configuration of, the HDC2080 Temperature and Humidity Sensor. It makes extensive use of the Wire.H library, and should be useable with both Arduino and Energia.
More...
|
| float | readTemp (void) |
| | Reads the temperature data from the HDC2080 sensor.
|
| |
| uint8_t | readTempOffsetAdjust (void) |
| | Reads the temperature offset adjustment value.
|
| |
| uint8_t | setTempOffsetAdjust (uint8_t value) |
| | Sets the temperature offset adjustment value.
|
| |
| float | readHumidity (void) |
| | Reads the relative humidity from the HDC2080 sensor.
|
| |
| uint8_t | readHumidityOffsetAdjust (void) |
| | Reads the humidity offset adjustment value from the sensor.
|
| |
| uint8_t | setHumidityOffsetAdjust (uint8_t value) |
| | Sets the humidity offset adjustment value.
|
| |
| void | enableHeater (void) |
| | Enables the internal heating element of the HDC2080.
|
| |
| void | disableHeater (void) |
| | Disables the internal heating element of the HDC2080.
|
| |
| uint8_t | readReg (uint8_t reg, uint8_t *data, uint8_t count) |
| | Reads a specified number of bytes from a sensor register over I2C.
|
| |
| uint8_t | writeReg (uint8_t reg, uint8_t *data, uint8_t count) |
| | Writes a specified number of bytes to a sensor register over I2C.
|
| |
| void | setLowTemp (float temp) |
| | Sets the low temperature threshold for the interrupt pin.
|
| |
| void | setHighTemp (float temp) |
| | Sets the high temperature threshold for the interrupt pin.
|
| |
| void | setHighHumidity (float humid) |
| | Sets the high humidity threshold for the interrupt pin.
|
| |
| void | setLowHumidity (float humid) |
| | Sets the low humidity threshold for the interrupt pin.
|
| |
| float | readLowHumidityThreshold (void) |
| | Reads the low humidity threshold currently set in the sensor.
|
| |
| float | readHighHumidityThreshold (void) |
| | Reads the high humidity threshold currently set in the sensor.
|
| |
| float | readLowTempThreshold (void) |
| | Reads the low temperature threshold currently set in the sensor.
|
| |
| float | readHighTempThreshold (void) |
| | Reads the high temperature threshold currently set in the sensor.
|
| |
| void | setTempRes (int resolution) |
| | Sets the temperature measurement resolution.
|
| |
| void | setHumidRes (int resolution) |
| | Sets the humidity measurement resolution.
|
| |
| void | setMeasurementMode (int mode) |
| | Configures whether the sensor measures Temp, Humidity, or both.
|
| |
| void | triggerMeasurement (void) |
| | Manually triggers a single measurement cycle.
|
| |
| void | reset (void) |
| | Performs a software reset on the HDC2080.
|
| |
| void | enableInterrupt (void) |
| | Enables the physical interrupt/DRDY pin.
|
| |
| void | disableInterrupt (void) |
| | Disables the physical interrupt/DRDY pin (sets to High-Z).
|
| |
| void | setRate (int rate) |
| | Sets the automatic measurement frequency.
|
| |
| void | setInterruptPolarity (int polarity) |
| | Configures the electrical behavior of the INT pin when active.
|
| |
| void | setInterruptMode (int mode) |
| | Sets the interrupt pin to either level-sensitive or comparator mode.
|
| |
| uint8_t | readInterruptStatus (void) |
| | Reads the interrupt status register.
|
| |
| void | clearMaxTemp (void) |
| | Resets the Maximum Temperature peak-hold register to 0.
|
| |
| void | clearMaxHumidity (void) |
| | Resets the Maximum Humidity peak-hold register to 0.
|
| |
| float | readMaxTemp (void) |
| | Reads the highest temperature recorded since the last clear.
|
| |
| float | readMaxHumidity (void) |
| | Reads the maximum humidity recorded since the last clear.
|
| |
| void | enableThresholdInterrupt (void) |
| | Enables the high/low temperature and humidity threshold interrupts.
|
| |
| void | disableThresholdInterrupt (void) |
| | Disables the high/low temperature and humidity threshold interrupts.
|
| |
| void | enableDRDYInterrupt (void) |
| | Enables the Data Ready (DRDY) interrupt.
|
| |
| void | disableDRDYInterrupt (void) |
| | Disables the Data Ready (DRDY) interrupt.
|
| |
| int | initHDC2080 (void) |
| | Initializes the HDC2080 sensor with default parameters.
|
| |
Description: This library facilitates communication with, and configuration of, the HDC2080 Temperature and Humidity Sensor. It makes extensive use of the Wire.H library, and should be useable with both Arduino and Energia.
- Note
- code is release AS-IS into the public domain, no guarantee or warranty is given.
- Author
- HDC2010.cpp originally created by: Brandon Fisher, August 1st 2017
Definition in file HDC2080.c.