2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file settings.h
|
|
|
|
* @brief This file is about configuring engine via the human-readable protocol
|
|
|
|
*
|
|
|
|
* @date Dec 30, 2012
|
2017-01-03 03:05:22 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2017-11-06 19:44:32 -08:00
|
|
|
#ifndef SETTINGS_H_
|
|
|
|
#define SETTINGS_H_
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
2017-05-07 17:40:10 -07:00
|
|
|
void initSettings(void);
|
2015-07-10 06:01:56 -07:00
|
|
|
void printSpiState(Logging *logger, board_configuration_s *boardConfiguration);
|
2017-03-19 15:39:48 -07:00
|
|
|
void printConfiguration(const engine_configuration_s *engineConfiguration);
|
2019-01-05 20:33:04 -08:00
|
|
|
void scheduleStopEngine(void);
|
2017-07-25 18:59:20 -07:00
|
|
|
void setCallFromPitStop(int durationMs);
|
2019-04-29 22:21:09 -07:00
|
|
|
void printTPSInfo(void);
|
2015-07-10 06:01:56 -07:00
|
|
|
void setEngineType(int value);
|
2018-04-01 20:28:42 -07:00
|
|
|
/**
|
|
|
|
* See also getEngine_type_e()
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
const char* getConfigurationName(engine_type_e engineType);
|
|
|
|
|
2017-11-06 19:44:32 -08:00
|
|
|
#endif /* SETTINGS_H_ */
|