Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
pca9685_i2c.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2020 Chris Efstathiou hendrixgr@gmail.com
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
29 #ifndef PCA9685_I2C_H
30 #define PCA9685_I2C_H
31 
32 #include "std.h"
33 
34 #define PCA9865_SRV0 PCA9685_LED0_OFF_L_REG_ADDR
35 #define PCA9865_SRV1 PCA9685_LED1_OFF_L_REG_ADDR
36 #define PCA9865_SRV2 PCA9685_LED2_OFF_L_REG_ADDR
37 #define PCA9865_SRV3 PCA9685_LED3_OFF_L_REG_ADDR
38 #define PCA9865_SRV4 PCA9685_LED4_OFF_L_REG_ADDR
39 #define PCA9865_SRV5 PCA9685_LED5_OFF_L_REG_ADDR
40 #define PCA9865_SRV6 PCA9685_LED6_OFF_L_REG_ADDR
41 #define PCA9865_SRV7 PCA9685_LED7_OFF_L_REG_ADDR
42 #define PCA9865_SRV8 PCA9685_LED8_OFF_L_REG_ADDR
43 #define PCA9865_SRV9 PCA9685_LED9_OFF_L_REG_ADDR
44 #define PCA9865_SRV10 PCA9685_LED10_OFF_L_REG_ADDR
45 #define PCA9865_SRV11 PCA9685_LED11_OFF_L_REG_ADDR
46 #define PCA9865_SRV12 PCA9685_LED12_OFF_L_REG_ADDR
47 #define PCA9865_SRV13 PCA9685_LED13_OFF_L_REG_ADDR
48 #define PCA9865_SRV14 PCA9685_LED14_OFF_L_REG_ADDR
49 #define PCA9865_SRV15 PCA9685_LED15_OFF_L_REG_ADDR
50 
51 extern void pca9685_i2c_init(void);
52 extern void pca9685_i2c_periodic(void);
53 extern void pca9685_i2c_event(void);
54 
55 bool pca9865_set_servo(uint8_t srv_nb, uint16_t srv_val);
56 
57 #endif
void pca9685_i2c_periodic(void)
Definition: pca9685_i2c.c:380
void pca9685_i2c_init(void)
Definition: pca9685_i2c.c:279
void pca9685_i2c_event(void)
Definition: pca9685_i2c.c:421
bool pca9865_set_servo(uint8_t srv_nb, uint16_t srv_val)
Definition: pca9685_i2c.c:262
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
Definition: vl53l1_types.h:88
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98