LibDriver SEN5X
Loading...
Searching...
No Matches
sen5x extern driver function

sen5x extern driver modules More...

Collaboration diagram for sen5x extern driver function:

Functions

uint8_t sen5x_set_reg (sen5x_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t sen5x_get_reg (sen5x_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

sen5x extern driver modules

Function Documentation

◆ sen5x_get_reg()

uint8_t sen5x_get_reg ( sen5x_handle_t * handle,
uint16_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a sen5x 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 2423 of file driver_sen5x.c.

◆ sen5x_set_reg()

uint8_t sen5x_set_reg ( sen5x_handle_t * handle,
uint16_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a sen5x 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 2396 of file driver_sen5x.c.