Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 Tue Jul 12 2022 21:38:10 by
1.7.2