bldc/applications/app.h

53 lines
1.5 KiB
C
Raw Normal View History

2014-04-13 22:10:01 -07:00
/*
Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* app.h
2014-04-13 22:10:01 -07:00
*
* Created on: 18 apr 2014
2014-04-13 22:10:01 -07:00
* Author: benjamin
*/
#ifndef APP_H_
#define APP_H_
2014-04-13 22:10:01 -07:00
2014-04-14 14:02:45 -07:00
#include "conf_general.h"
2014-04-13 22:10:01 -07:00
// Functions
void app_init(app_configuration *conf);
const app_configuration* app_get_configuration(void);
void app_set_configuration(app_configuration *conf);
// Standard apps
void app_ppm_start(void);
void app_ppm_configure(ppm_config *conf);
void app_adc_start(bool use_rx_tx);
void app_adc_configure(adc_config *conf);
float app_adc_get_decoded_level(void);
float app_adc_get_voltage(void);
void app_uartcomm_start(void);
2014-09-20 04:41:18 -07:00
void app_uartcomm_configure(uint32_t baudrate);
void app_nunchuk_start(void);
void app_nunchuk_configure(chuk_config *conf);
float app_nunchuk_get_decoded_chuk(void);
2015-04-11 01:07:36 -07:00
void app_nunchuk_update_output(chuck_data *data);
2014-04-13 22:10:01 -07:00
// Custom apps
void app_sten_init(void);
#endif /* APP_H_ */