app.h
Go to the documentation of this file.
1 /*
2  Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * app.h
20  *
21  * Created on: 18 apr 2014
22  * Author: benjamin
23  */
24 
25 #ifndef APP_H_
26 #define APP_H_
27 
28 #include "conf_general.h"
29 
30 // Functions
31 void app_init(app_configuration *conf);
34 
35 // Standard apps
36 void app_ppm_start(void);
37 void app_ppm_configure(ppm_config *conf);
38 void app_adc_start(bool use_rx_tx);
39 void app_adc_configure(adc_config *conf);
40 float app_adc_get_decoded_level(void);
41 float app_adc_get_voltage(void);
42 void app_uartcomm_start(void);
43 void app_uartcomm_configure(uint32_t baudrate);
44 void app_nunchuk_start(void);
48 
49 // Custom apps
50 void app_gurgalof_init(void);
51 void app_sten_init(void);
52 
53 #endif /* APP_H_ */
void app_ppm_start(void)
Definition: app_ppm.c:75
void app_sten_init(void)
Definition: datatypes.h:209
void app_gurgalof_init(void)
Definition: datatypes.h:234
Definition: datatypes.h:246
void app_set_configuration(app_configuration *conf)
Definition: app.c:96
void app_uartcomm_configure(uint32_t baudrate)
Definition: app_uartcomm.c:156
Definition: datatypes.h:181
void app_nunchuk_update_output(chuck_data *data)
Definition: app_nunchuk.c:71
void app_nunchuk_configure(chuk_config *conf)
Definition: app_nunchuk.c:58
float app_adc_get_voltage(void)
Definition: app_adc.c:68
void app_adc_configure(adc_config *conf)
Definition: app_adc.c:54
float app_nunchuk_get_decoded_chuk(void)
Definition: app_nunchuk.c:67
void app_nunchuk_start(void)
Definition: app_nunchuk.c:62
void app_ppm_configure(ppm_config *conf)
Definition: app_ppm.c:62
void app_uartcomm_start(void)
Definition: app_uartcomm.c:140
const app_configuration * app_get_configuration(void)
Definition: app.c:85
float app_adc_get_decoded_level(void)
Definition: app_adc.c:64
void app_adc_start(bool use_rx_tx)
Definition: app_adc.c:59
Definition: datatypes.h:346
void app_init(app_configuration *conf)
Definition: app.c:33