Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
pca9685_i2c.h File Reference
#include "std.h"
+ Include dependency graph for pca9685_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCA9865_SRV0   PCA9685_LED0_OFF_L_REG_ADDR
 
#define PCA9865_SRV1   PCA9685_LED1_OFF_L_REG_ADDR
 
#define PCA9865_SRV2   PCA9685_LED2_OFF_L_REG_ADDR
 
#define PCA9865_SRV3   PCA9685_LED3_OFF_L_REG_ADDR
 
#define PCA9865_SRV4   PCA9685_LED4_OFF_L_REG_ADDR
 
#define PCA9865_SRV5   PCA9685_LED5_OFF_L_REG_ADDR
 
#define PCA9865_SRV6   PCA9685_LED6_OFF_L_REG_ADDR
 
#define PCA9865_SRV7   PCA9685_LED7_OFF_L_REG_ADDR
 
#define PCA9865_SRV8   PCA9685_LED8_OFF_L_REG_ADDR
 
#define PCA9865_SRV9   PCA9685_LED9_OFF_L_REG_ADDR
 
#define PCA9865_SRV10   PCA9685_LED10_OFF_L_REG_ADDR
 
#define PCA9865_SRV11   PCA9685_LED11_OFF_L_REG_ADDR
 
#define PCA9865_SRV12   PCA9685_LED12_OFF_L_REG_ADDR
 
#define PCA9865_SRV13   PCA9685_LED13_OFF_L_REG_ADDR
 
#define PCA9865_SRV14   PCA9685_LED14_OFF_L_REG_ADDR
 
#define PCA9865_SRV15   PCA9685_LED15_OFF_L_REG_ADDR
 

Functions

void pca9685_i2c_init (void)
 
void pca9685_i2c_periodic (void)
 
void pca9685_i2c_event (void)
 
bool pca9865_set_servo (uint8_t srv_nb, uint16_t srv_val)
 

Macro Definition Documentation

◆ PCA9865_SRV0

#define PCA9865_SRV0   PCA9685_LED0_OFF_L_REG_ADDR

Definition at line 34 of file pca9685_i2c.h.

◆ PCA9865_SRV1

#define PCA9865_SRV1   PCA9685_LED1_OFF_L_REG_ADDR

Definition at line 35 of file pca9685_i2c.h.

◆ PCA9865_SRV10

#define PCA9865_SRV10   PCA9685_LED10_OFF_L_REG_ADDR

Definition at line 44 of file pca9685_i2c.h.

◆ PCA9865_SRV11

#define PCA9865_SRV11   PCA9685_LED11_OFF_L_REG_ADDR

Definition at line 45 of file pca9685_i2c.h.

◆ PCA9865_SRV12

#define PCA9865_SRV12   PCA9685_LED12_OFF_L_REG_ADDR

Definition at line 46 of file pca9685_i2c.h.

◆ PCA9865_SRV13

#define PCA9865_SRV13   PCA9685_LED13_OFF_L_REG_ADDR

Definition at line 47 of file pca9685_i2c.h.

◆ PCA9865_SRV14

#define PCA9865_SRV14   PCA9685_LED14_OFF_L_REG_ADDR

Definition at line 48 of file pca9685_i2c.h.

◆ PCA9865_SRV15

#define PCA9865_SRV15   PCA9685_LED15_OFF_L_REG_ADDR

Definition at line 49 of file pca9685_i2c.h.

◆ PCA9865_SRV2

#define PCA9865_SRV2   PCA9685_LED2_OFF_L_REG_ADDR

Definition at line 36 of file pca9685_i2c.h.

◆ PCA9865_SRV3

#define PCA9865_SRV3   PCA9685_LED3_OFF_L_REG_ADDR

Definition at line 37 of file pca9685_i2c.h.

◆ PCA9865_SRV4

#define PCA9865_SRV4   PCA9685_LED4_OFF_L_REG_ADDR

Definition at line 38 of file pca9685_i2c.h.

◆ PCA9865_SRV5

#define PCA9865_SRV5   PCA9685_LED5_OFF_L_REG_ADDR

Definition at line 39 of file pca9685_i2c.h.

◆ PCA9865_SRV6

#define PCA9865_SRV6   PCA9685_LED6_OFF_L_REG_ADDR

Definition at line 40 of file pca9685_i2c.h.

◆ PCA9865_SRV7

#define PCA9865_SRV7   PCA9685_LED7_OFF_L_REG_ADDR

Definition at line 41 of file pca9685_i2c.h.

◆ PCA9865_SRV8

#define PCA9865_SRV8   PCA9685_LED8_OFF_L_REG_ADDR

Definition at line 42 of file pca9685_i2c.h.

◆ PCA9865_SRV9

#define PCA9865_SRV9   PCA9685_LED9_OFF_L_REG_ADDR

Definition at line 43 of file pca9685_i2c.h.

Function Documentation

◆ pca9685_i2c_event()

◆ pca9685_i2c_init()

◆ pca9685_i2c_periodic()

◆ pca9865_set_servo()

bool pca9865_set_servo ( uint8_t  srv_nb,
uint16_t  srv_val 
)

Definition at line 262 of file pca9685_i2c.c.

References FALSE, pca9865_reg_nb, PCA9865_SRV_RESOLUTION, and pca9865_write_servo_vals.

Referenced by pca9685_i2c_init().

+ Here is the caller graph for this function: