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
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-01-26 10:58:47 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2021-04-21 11:28:48 -07:00
|
|
|
#include "engine_configuration_generated_structures.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2017-05-07 17:40:10 -07:00
|
|
|
void initSettings(void);
|
2021-04-21 11:28:48 -07:00
|
|
|
void printSpiState(const engine_configuration_s *engineConfiguration);
|
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);
|
2021-11-16 01:15:29 -08:00
|
|
|
void setEngineType(int value);
|
2021-08-21 21:00:20 -07:00
|
|
|
void readPin(const char *pinName);
|