LibDriver SHTC3
Loading...
Searching...
No Matches
shtc3 extend driver function

shtc3 extend driver modules More...

Collaboration diagram for shtc3 extend driver function:

Functions

uint8_t shtc3_set_reg (shtc3_handle_t *handle, uint16_t command)
 set the chip register
uint8_t shtc3_get_reg (shtc3_handle_t *handle, uint16_t command, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

shtc3 extend driver modules

Function Documentation

◆ shtc3_get_reg()

uint8_t shtc3_get_reg ( shtc3_handle_t * handle,
uint16_t command,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a shtc3 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 600 of file driver_shtc3.c.

◆ shtc3_set_reg()

uint8_t shtc3_set_reg ( shtc3_handle_t * handle,
uint16_t command )

set the chip register

Parameters
[in]*handlepointer to a shtc3 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 573 of file driver_shtc3.c.