dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_rcvr.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 #ifndef PIOS_RCVR_H
31 #define PIOS_RCVR_H
32 
34  void (*init)(uintptr_t id);
35  int32_t (*read)(uintptr_t id, uint8_t channel);
36 };
37 
38 /* Public Functions */
39 int32_t PIOS_RCVR_Read(uintptr_t rcvr_id, uint8_t channel);
40 bool PIOS_RCVR_WaitActivity(uint32_t timeout_ms);
41 void PIOS_RCVR_Active();
43 uintptr_t PIOS_RCVR_GetLowerDevice(uintptr_t rcvr_id);
44 
53 };
54 
55 #endif /* PIOS_RCVR_H */
56 
int32_t(* read)(uintptr_t id, uint8_t channel)
Definition: pios_rcvr.h:35
uint8_t id
void PIOS_RCVR_ActiveFromISR()
PIOS_RCVR_errors
Definition: pios_rcvr.h:46
void(* init)(uintptr_t id)
Definition: pios_rcvr.h:34
uintptr_t PIOS_RCVR_GetLowerDevice(uintptr_t rcvr_id)
int32_t PIOS_RCVR_Read(uintptr_t rcvr_id, uint8_t channel)
void PIOS_RCVR_Active()
bool PIOS_RCVR_WaitActivity(uint32_t timeout_ms)