-
Notifications
You must be signed in to change notification settings - Fork 20
Documentation
- SHT31D_CC::REPEATABILITY_HIGH
- SHT31D_CC::REPEATABILITY_MEDIUM
- SHT31D_CC::REPEATABILITY_LOW
- SHT31D_CC::MODE_CLOCK_STRETCH
- SHT31D_CC::MODE_POLLING
- SHT31D_CC::FREQUENCY_HZ5
- SHT31D_CC::FREQUENCY_1HZ
- SHT31D_CC::FREQUENCY_2HZ
- SHT31D_CC::FREQUENCY_4HZ
- SHT31D_CC::FREQUENCY_10HZ
- 000 - NO ERROR (enum SHT31D_CC::SHT31D_ErrorCode)
- -101 - CRC ERROR
- -102 - TIMEOUT ERROR
- -501 - PARAM WRONG MODE
- -502 - PARAM WRONG REPEATABILITY
- -503 - PARAM WRONG FREQUENCY
- -504 - PARAM WRONG ALERT
- -010 - I2C DATA TOO LOG
- -020 - I2C RECEIVED NACK ON ADDRESS
- -030 - I2C RECEIVED NACK ON DATA
- -040 - I2C UNKNOWN ERROR
Container to hold sensor results with data members:
- t - Temperature in ℃ (float)
- rh- Relative Humidity in % (float)
- error - Error Code (SHT31D_ErrorCode)
Container to hold SHT register status
- WriteDataChecksumStatus - (uint8_t)
- CommandStatus - (uint8_t)
- Reserved0 - (uint8_t)
- SystemResetDetected - (uint8_t)
- Reserved1 - (uint8_t)
- T_TrackingAlert - (uint8_t)
- RH_TrackingAlert - (uint8_t)
- Reserved2 - (uint8_t)
- HeaterStatus - (uint8_t)
- Reserved3 - (uint8_t)
- AlertPending - (uint8_t)
- address - 0x44 (default) or 0x45 on most breakout boards this can be switched from 0x44 to 0x45 by jumping the ADR pin to VDD/VIN, on the ClosedCube board there is a jumper you can solder.
- SHT31D_ErrorCode - See above
Clear all the status register bits
- SHT31D_ErrorCode - See above
Enable the onboard heater for plausibility checking.
SHT31D_ErrorCode - See above
Disable the onboard heater.
SHT31D_ErrorCode - See above
This forces the system into a well-defined state without removing the power supply. When the system is in idle state, the soft reset command can be sent to the SHT3xDIS. This triggers the sensor to reset its system controller and reloads calibration data from the memory.
SHT31D_ErrorCode - See above
This will reset all of the devices on the I2C bus see softReset() for specifics relating to this sensor.
SHT31D_ErrorCode - See above
Activate accelerated response time protocol to improve response time of the humidity sensor from 8 to 4 seconds
SHT31D_ErrorCode - See above
uint32_t - Serial number for the sensor.
- repeatability - SHT31D_Repeatability
- SHT31D_CC::REPEATABILITY_HIGH
- SHT31D_CC::REPEATABILITY_MEDIUM
- SHT31D_CC::REPEATABILITY_LOW
- mode - SHT31D_Mode
- SHT31D_CC::MODE_CLOCK_STRETCH
- SHT31D_CC::MODE_POLLING
- timeout - uint8_t
- Use 50
SHT31D_31::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Called internally from readTempAndHumidity() but also can be called separately
- repeatability - SHT31D_Repeatability
- SHT31D_CC::REPEATABILITY_HIGH
- SHT31D_CC::REPEATABILITY_MEDIUM
- SHT31D_CC::REPEATABILITY_LOW
SHT31D_31::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Called internally from readTempAndHumidity() but also can be called separately
- repeatability - SHT31D_Repeatability
- SHT31D_CC::REPEATABILITY_HIGH
- SHT31D_CC::REPEATABILITY_MEDIUM
- SHT31D_CC::REPEATABILITY_LOW
- timeout - uint8_t
SHT31D_31::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Start periodic data acquisition mode
- repeatability - SHT31D_Repeatability
- SHT31D_CC::REPEATABILITY_HIGH
- SHT31D_CC::REPEATABILITY_MEDIUM
- SHT31D_CC::REPEATABILITY_LOW
- frequency - SHT31D_Frequency
- SHT31D_CC::FREQUENCY_HZ5
- SHT31D_CC::FREQUENCY_1HZ
- SHT31D_CC::FREQUENCY_2HZ
- SHT31D_CC::FREQUENCY_4HZ
- SHT31D_CC::FREQUENCY_10HZ
SHT31D_CC::SHT31D_ErrorCode - An error code, see above.
Fetch peridic data aquisition mode results
SHT31D_CC::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Stop periodic data acquisition mode
SHT31D_CC::SHT31D_ErrorCode - An error code, see above.
Write the alert register values for maximum
- temperatureSet -float
- Temperature value to start alert
- temperatureClear - float
- Temperature value to stop alert
- humiditySet - flaot
- Humidity value to start alert
- humidityClear - float
- Humidity value to stop alert
SHT31D_CC::SHT31D_ErrorCode - An error code, see above.
Read the high alert start value.
SHT31D_CC::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Read the high alert clear value.
SHT31D_CC::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Write the alert register values for minimum
- temperatureClear - float
- Temperature value to stop alert
- temperatureSet -float
- Temperature value to start alert
- humidityClear - float
- Humidity value to stop alert
- humiditySet - flaot
- Humidity value to start alert
SHT31D_CC::SHT31D_ErrorCode - An error code, see above.
Read the low alert start value.
SHT31D_CC::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.
Read the high alert clear value.
SHT31D_CC::SHT31D - A container with temperature (in degrees C), humidity (%) and an error code.