dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_bmx055.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 
28 #ifndef PIOS_BMX055_H
29 #define PIOS_BMX055_H
30 
31 #include "pios.h"
32 
33 enum pios_bmx055_orientation { // clockwise rotation from board forward
42 };
43 
45 // const struct pios_exti_cfg *exti_cfg; /* Pointer to the EXTI configuration */
46 
49 };
50 
51 typedef struct pios_bmx055_dev * pios_bmx055_dev_t;
52 
58  uint32_t slave_gyro, uint32_t slave_accel,
59  const struct pios_bmx055_cfg *cfg);
60 
61 #if 0
62 
66 bool PIOS_BMX055_IRQHandler(void);
67 #endif
68 
69 #endif /* PIOS_BMX055_H */
70 
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_BMX055_SPI_Init(pios_bmx055_dev_t *dev, pios_spi_t spi_id, uint32_t slave_gyro, uint32_t slave_accel, const struct pios_bmx055_cfg *cfg)
Initialize the BMX-xxxx 6/9-axis sensor on SPI.
enum pios_bmx055_orientation orientation
Definition: pios_bmx055.h:47
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
pios_bmx055_orientation
Definition: pios_bmx055.h:33
bool skip_startup_irq_check
Definition: pios_bmx055.h:48
struct pios_bmx055_dev * pios_bmx055_dev_t
Definition: pios_bmx055.h:51