LibDriver PCA9685  1.0.0
PCA9685 full-featured driver
pca9685 extend driver function

pca9685 extend driver modules More...

Functions

uint8_t pca9685_set_reg (pca9685_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register More...
 
uint8_t pca9685_get_reg (pca9685_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register More...
 

Detailed Description

pca9685 extend driver modules

Function Documentation

◆ pca9685_get_reg()

uint8_t pca9685_get_reg ( pca9685_handle_t handle,
uint8_t  reg,
uint8_t *  buf,
uint16_t  len 
)

get the chip register

Parameters
[in]*handlepointer to a pca9685 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 2027 of file driver_pca9685.c.

◆ pca9685_set_reg()

uint8_t pca9685_set_reg ( pca9685_handle_t handle,
uint8_t  reg,
uint8_t *  buf,
uint16_t  len 
)

set the chip register

Parameters
[in]*handlepointer to a pca9685 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 1993 of file driver_pca9685.c.