Humidity and Temperature Sensor - Sensirion SHT1x driver
Dependents: mDot_TTN_DHT11_Boston16_CAM
Fork of SHTx by
I2C Class Reference
Class: I2C Humidity and Temperature Sensor - SHT15 I2C Bit-bang master driver. More...
#include <i2c.hpp>
Public Member Functions | |
I2C (PinName sda, PinName scl) | |
Constructor: SHTx::I2C Create an I2C Master interface, connected to the specified pins. | |
void | setFrequency (uint32_t hz) |
Function: setFrequency Set the frequency of the SHTx::I2C interface. | |
void | start (void) |
Function: start Issue start condition on the SHTx::I2C bus. | |
void | stop (void) |
Function: stop Issue stop condition on the SHTx::I2C bus. | |
bool | wait (void) |
Function: wait Wait for SHT15 to complete measurement. | |
void | reset (void) |
Function: reset If communication with the device is lost the command will reset the serial interface. | |
bool | write (uint8_t data) |
Function: write Write single byte out on the SHTx::I2C bus. | |
uint8_t | read (bool ack) |
Function: write Read single byte form the I2C bus. |
Detailed Description
Class: I2C Humidity and Temperature Sensor - SHT15 I2C Bit-bang master driver.
Definition at line 38 of file i2c.hpp.
Constructor & Destructor Documentation
I2C | ( | PinName | sda, |
PinName | scl | ||
) |
Member Function Documentation
uint8_t read | ( | bool | ack ) |
void reset | ( | void | ) |
void setFrequency | ( | uint32_t | hz ) |
void start | ( | void | ) |
void stop | ( | void | ) |
bool wait | ( | void | ) |
Generated on Thu Jul 14 2022 18:59:09 by 1.7.2