LibDriver STS3X
Loading...
Searching...
No Matches
sts3x extend driver function

sts3x extend driver modules More...

Collaboration diagram for sts3x extend driver function:

Functions

uint8_t sts3x_set_reg (sts3x_handle_t *handle, uint16_t command)
 set the chip register
uint8_t sts3x_get_reg (sts3x_handle_t *handle, uint16_t command, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

sts3x extend driver modules

Function Documentation

◆ sts3x_get_reg()

uint8_t sts3x_get_reg ( sts3x_handle_t * handle,
uint16_t command,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an sts3x 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 867 of file driver_sts3x.c.

◆ sts3x_set_reg()

uint8_t sts3x_set_reg ( sts3x_handle_t * handle,
uint16_t command )

set the chip register

Parameters
[in]*handlepointer to an sts3x 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 840 of file driver_sts3x.c.