LibDriver SCD4X
Loading...
Searching...
No Matches
scd4x extern driver function

scd4x extern driver modules More...

Collaboration diagram for scd4x extern driver function:

Functions

uint8_t scd4x_set_reg (scd4x_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t scd4x_get_reg (scd4x_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len, uint16_t delay_ms)
 get the chip register

Detailed Description

scd4x extern driver modules

Function Documentation

◆ scd4x_get_reg()

uint8_t scd4x_get_reg ( scd4x_handle_t * handle,
uint16_t reg,
uint8_t * buf,
uint16_t len,
uint16_t delay_ms )

get the chip register

Parameters
[in]*handlepointer to an scd4x handle structure
[in]regiic register address
[out]*bufpointer to a data buffer
[in]lendata buffer length
[in]delay_msdelay time in ms
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1872 of file driver_scd4x.c.

◆ scd4x_set_reg()

uint8_t scd4x_set_reg ( scd4x_handle_t * handle,
uint16_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an scd4x 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 1844 of file driver_scd4x.c.