LibDriver STS21
Loading...
Searching...
No Matches
sts21 extend driver function

sts21 extend driver modules More...

Collaboration diagram for sts21 extend driver function:

Functions

uint8_t sts21_set_reg (sts21_handle_t *handle, uint8_t reg, uint8_t *data, uint16_t len)
 set the chip register
uint8_t sts21_get_reg (sts21_handle_t *handle, uint8_t reg, uint8_t *data, uint16_t len)
 get the chip register
uint8_t sts21_get_reg16 (sts21_handle_t *handle, uint16_t reg, uint8_t *data, uint16_t len)
 get the chip register16
uint8_t sts21_set_cmd (sts21_handle_t *handle, uint8_t *data, uint16_t len)
 set command
uint8_t sts21_get_cmd (sts21_handle_t *handle, uint8_t *data, uint16_t len)
 get command

Detailed Description

sts21 extend driver modules

Function Documentation

◆ sts21_get_cmd()

uint8_t sts21_get_cmd ( sts21_handle_t * handle,
uint8_t * data,
uint16_t len )

get command

Parameters
[in]*handlepointer to a sts21 handle structure
[out]*datapointer to a 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 1068 of file driver_sts21.c.

◆ sts21_get_reg()

uint8_t sts21_get_reg ( sts21_handle_t * handle,
uint8_t reg,
uint8_t * data,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a sts21 handle structure
[in]regiic register address
[out]*datapointer to a 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 989 of file driver_sts21.c.

◆ sts21_get_reg16()

uint8_t sts21_get_reg16 ( sts21_handle_t * handle,
uint16_t reg,
uint8_t * data,
uint16_t len )

get the chip register16

Parameters
[in]*handlepointer to a sts21 handle structure
[in]regiic register address
[out]*datapointer to a 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 1016 of file driver_sts21.c.

◆ sts21_set_cmd()

uint8_t sts21_set_cmd ( sts21_handle_t * handle,
uint8_t * data,
uint16_t len )

set command

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

Definition at line 1042 of file driver_sts21.c.

◆ sts21_set_reg()

uint8_t sts21_set_reg ( sts21_handle_t * handle,
uint8_t reg,
uint8_t * data,
uint16_t len )

set the chip register

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

Definition at line 962 of file driver_sts21.c.