Paparazzi UAS  v5.15_devel-164-g81d4ceb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vms_ecu_demo.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Michal Podhradsky
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  */
22 
29 #ifndef DRIVERS_TEST_H
30 #define DRIVERS_TEST_H
31 
32 #include "std.h"
33 #include "mcu_periph/adc.h"
34 
35 #if !USE_CHIBIOS_RTOS
36 #error Only Chibios is supported
37 #endif
38 
39 // Definitions of pins
40 
41 extern bool ams_status;
42 extern bool pwr_ready;
43 extern bool pwr_stdby;
44 extern bool rtds;
45 
46 void vms_ecu_demo_init(void);
47 void vms_ecu_demo_periodic(void);
48 void vms_ecu_demo_downlink(void);
52 extern uint16_t dac_1;
53 extern uint16_t dac_2;
54 
55 #endif /* DRIVERS_TEST */
unsigned short uint16_t
Definition: types.h:16
bool pwr_ready
Definition: vms_ecu_demo.c:98
void vms_ecu_demo_init(void)
Definition: vms_ecu_demo.c:190
uint16_t dac_2
Definition: vms_ecu_demo.c:77
void vms_ecu_demo_periodic(void)
Definition: vms_ecu_demo.c:248
arch independent ADC (Analog to Digital Converter) API
void vms_ecu_demo_downlink(void)
Definition: vms_ecu_demo.c:315
void vms_ecu_demo_UpdateDac2(uint16_t val)
Definition: vms_ecu_demo.c:332
uint16_t val[TCOUPLE_NB]
bool ams_status
Definition: vms_ecu_demo.c:97
uint16_t dac_1
Definition: vms_ecu_demo.c:76
bool pwr_stdby
Definition: vms_ecu_demo.c:99
void vms_ecu_demo_UpdateDac1(uint16_t val)
Reset sweep number.
Definition: vms_ecu_demo.c:326
bool rtds
Definition: vms_ecu_demo.c:100