HTS221
Arduino library for the HTS221 humidity and temperature sensor
Loading...
Searching...
No Matches
Imported Function Prototypes
Collaboration diagram for Imported Function Prototypes:

Functions

uint8_t HTS221_IO_Write (void *handle, uint8_t WriteAddr, uint8_t *pBuffer, uint16_t nBytesToWrite)
 Write bytes to the HTS221 over its configured I2C interface.
 
uint8_t HTS221_IO_Read (void *handle, uint8_t ReadAddr, uint8_t *pBuffer, uint16_t nBytesToRead)
 Read bytes from the HTS221 over its configured I2C interface.
 

Detailed Description

Function Documentation

◆ HTS221_IO_Read()

uint8_t HTS221_IO_Read ( void *  handle,
uint8_t  ReadAddr,
uint8_t *  pBuffer,
uint16_t  nBytesToRead 
)
extern

Read bytes from the HTS221 over its configured I2C interface.

Parameters
handleHTS221Sensor instance used as the driver handle
ReadAddrregister address to read
pBufferbuffer receiving the bytes
nBytesToReadnumber of bytes to read
Return values
Low-levelread status returned by the instance.

◆ HTS221_IO_Write()

uint8_t HTS221_IO_Write ( void *  handle,
uint8_t  WriteAddr,
uint8_t *  pBuffer,
uint16_t  nBytesToWrite 
)
extern

Write bytes to the HTS221 over its configured I2C interface.

Parameters
handleHTS221Sensor instance used as the driver handle
WriteAddrregister address to write
pBufferbuffer containing bytes to write
nBytesToWritenumber of bytes to write
Return values
Low-levelwrite status returned by the instance.