LibDriver PCA9685  1.0.0
PCA9685 full-featured driver
pca9685_handle_s Struct Reference

pca9685 handle structure definition More...

#include <driver_pca9685.h>

Data Fields

uint8_t iic_addr
 
uint8_t(* iic_init )(void)
 
uint8_t(* iic_deinit )(void)
 
uint8_t(* iic_read )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
 
uint8_t(* iic_write )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
 
uint8_t(* oe_gpio_init )(void)
 
uint8_t(* oe_gpio_deinit )(void)
 
uint8_t(* oe_gpio_write )(uint8_t value)
 
void(* delay_ms )(uint32_t ms)
 
void(* debug_print )(const char *const fmt,...)
 
uint8_t inited
 

Detailed Description

pca9685 handle structure definition

Definition at line 201 of file driver_pca9685.h.

Field Documentation

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 212 of file driver_pca9685.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 211 of file driver_pca9685.h.

◆ iic_addr

uint8_t iic_addr

iic device address

Definition at line 203 of file driver_pca9685.h.

◆ iic_deinit

uint8_t(* iic_deinit) (void)

point to an iic_deinit function address

Definition at line 205 of file driver_pca9685.h.

◆ iic_init

uint8_t(* iic_init) (void)

point to an iic_init function address

Definition at line 204 of file driver_pca9685.h.

◆ iic_read

uint8_t(* iic_read) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)

point to an iic_read function address

Definition at line 206 of file driver_pca9685.h.

◆ iic_write

uint8_t(* iic_write) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)

point to an iic_write function address

Definition at line 207 of file driver_pca9685.h.

◆ inited

uint8_t inited

inited flag

Definition at line 213 of file driver_pca9685.h.

◆ oe_gpio_deinit

uint8_t(* oe_gpio_deinit) (void)

point to an oe_gpio_deinit function address

Definition at line 209 of file driver_pca9685.h.

◆ oe_gpio_init

uint8_t(* oe_gpio_init) (void)

point to an oe_gpio_init function address

Definition at line 208 of file driver_pca9685.h.

◆ oe_gpio_write

uint8_t(* oe_gpio_write) (uint8_t value)

point to an oe_gpio_write function address

Definition at line 210 of file driver_pca9685.h.


The documentation for this struct was generated from the following file: