LibDriver STTS22H
Loading...
Searching...
No Matches
stts22h extend driver function

stts22h extend driver modules More...

Collaboration diagram for stts22h extend driver function:

Functions

uint8_t stts22h_set_reg (stts22h_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t stts22h_get_reg (stts22h_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

stts22h extend driver modules

Function Documentation

◆ stts22h_get_reg()

uint8_t stts22h_get_reg ( stts22h_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a stts22h handle structure
[in]regiic register address
[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 1224 of file driver_stts22h.c.

◆ stts22h_set_reg()

uint8_t stts22h_set_reg ( stts22h_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a stts22h handle structure
[in]regiic register address
[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 1197 of file driver_stts22h.c.