dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_flyingpio.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef PIOS_FLYINGPIO_H
27 #define PIOS_FLYINGPIO_H
28 
29 #include "pios.h"
30 
31 typedef struct pios_flyingpio_dev * pios_flyingpio_dev_t;
32 
38  uint32_t slave_idx, uint8_t protocol);
39 
44 int32_t PIOS_FLYINGPIO_Receiver_Get(uintptr_t dev_int, uint8_t channel);
45 
47 extern const struct pios_adc_driver pios_flyingpio_adc_driver;
48 
49 #endif /* PIOS_FLYINGPIO_H */
50 
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_FLYINGPIO_Receiver_Get(uintptr_t dev_int, uint8_t channel)
Returns receiver data returned by flyingpio.
const struct pios_adc_driver pios_flyingpio_adc_driver
int32_t PIOS_FLYINGPIO_SPI_Init(pios_flyingpio_dev_t *dev, pios_spi_t spi_id, uint32_t slave_idx, uint8_t protocol)
Initialize the FlyingPIO programmed-IO expander.
struct pios_flyingpio_dev * pios_flyingpio_dev_t
const struct pios_rcvr_driver pios_flyingpio_rcvr_driver