LibDriver HTU31D
Loading...
Searching...
No Matches
htu31d extend driver function

htu31d extend driver modules More...

Collaboration diagram for htu31d extend driver function:

Functions

uint8_t htu31d_set_reg (htu31d_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t htu31d_get_reg (htu31d_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

htu31d extend driver modules

Function Documentation

◆ htu31d_get_reg()

uint8_t htu31d_get_reg ( htu31d_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an htu31d handle structure
[in]regregister address
[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 878 of file driver_htu31d.c.

◆ htu31d_set_reg()

uint8_t htu31d_set_reg ( htu31d_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an htu31d handle structure
[in]regregister address
[in]*bufpointer to a data buffer
[in]lendata length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 851 of file driver_htu31d.c.