LibDriver DHT20
Loading...
Searching...
No Matches
dht20 extend driver function

dht20 extend driver modules More...

Collaboration diagram for dht20 extend driver function:

Functions

uint8_t dht20_set_reg (dht20_handle_t *handle, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t dht20_get_reg (dht20_handle_t *handle, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

dht20 extend driver modules

Function Documentation

◆ dht20_get_reg()

uint8_t dht20_get_reg ( dht20_handle_t * handle,
uint8_t * buf,
uint16_t len )

get the chip register

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

Definition at line 585 of file driver_dht20.c.

◆ dht20_set_reg()

uint8_t dht20_set_reg ( dht20_handle_t * handle,
uint8_t * buf,
uint16_t len )

set the chip register

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

Definition at line 552 of file driver_dht20.c.