LibDriver SHT85
Loading...
Searching...
No Matches
sht85 extend driver function

sht85 extend driver modules More...

Collaboration diagram for sht85 extend driver function:

Functions

uint8_t sht85_set_reg (sht85_handle_t *handle, uint16_t command)
 set the chip register
uint8_t sht85_get_reg (sht85_handle_t *handle, uint16_t command, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

sht85 extend driver modules

Function Documentation

◆ sht85_get_reg()

uint8_t sht85_get_reg ( sht85_handle_t * handle,
uint16_t command,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a sht85 handle structure
[in]commandchip command
[out]*bufpointer to data buffer
[in]lendata length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 905 of file driver_sht85.c.

◆ sht85_set_reg()

uint8_t sht85_set_reg ( sht85_handle_t * handle,
uint16_t command )

set the chip register

Parameters
[in]*handlepointer to a sht85 handle structure
[in]commandchip command
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 878 of file driver_sht85.c.