LibDriver APDS9960
Loading...
Searching...
No Matches
apds9960 extern driver function

apds9960 extern driver modules More...

Collaboration diagram for apds9960 extern driver function:

Functions

uint8_t apds9960_set_reg (apds9960_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t apds9960_get_reg (apds9960_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

apds9960 extern driver modules

Function Documentation

◆ apds9960_get_reg()

uint8_t apds9960_get_reg ( apds9960_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an apds9960 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 4773 of file driver_apds9960.c.

◆ apds9960_set_reg()

uint8_t apds9960_set_reg ( apds9960_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an apds9960 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 4739 of file driver_apds9960.c.