LibDriver HDC2080
Loading...
Searching...
No Matches
hdc2080 extern driver function

hdc2080 extern driver modules More...

Collaboration diagram for hdc2080 extern driver function:

Functions

uint8_t hdc2080_set_reg (hdc2080_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set chip register
uint8_t hdc2080_get_reg (hdc2080_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get chip register

Detailed Description

hdc2080 extern driver modules

Function Documentation

◆ hdc2080_get_reg()

uint8_t hdc2080_get_reg ( hdc2080_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get chip register

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

Definition at line 2290 of file driver_hdc2080.c.

◆ hdc2080_set_reg()

uint8_t hdc2080_set_reg ( hdc2080_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set chip register

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

Definition at line 2256 of file driver_hdc2080.c.