LibDriver AHT30  1.0.0
AHT30 full-featured driver
aht30 extend driver function

aht30 extend driver modules More...

Functions

uint8_t aht30_set_reg (aht30_handle_t *handle, uint8_t *buf, uint16_t len)
 set the chip register More...
 
uint8_t aht30_get_reg (aht30_handle_t *handle, uint8_t *buf, uint16_t len)
 get the chip register More...
 

Detailed Description

aht30 extend driver modules

Function Documentation

◆ aht30_get_reg()

uint8_t aht30_get_reg ( aht30_handle_t handle,
uint8_t *  buf,
uint16_t  len 
)

get the chip register

Parameters
[in]*handlepointer to an aht30 handle structure
[out]*bufpointer to a data buffer
[in]lenlength of data buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 587 of file driver_aht30.c.

◆ aht30_set_reg()

uint8_t aht30_set_reg ( aht30_handle_t handle,
uint8_t *  buf,
uint16_t  len 
)

set the chip register

Parameters
[in]*handlepointer to an aht30 handle structure
[in]*bufpointer to a data buffer
[in]lenlength of data buffer
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 554 of file driver_aht30.c.