Files
CuboBmsFirmware/firmware/Core/Inc/modTerminal.h
2023-03-29 20:05:42 +03:00

51 lines
1.5 KiB
C

/*
Copyright 2016 Benjamin Vedder benjamin@vedder.se
Copyright 2017 - 2018 Danny Bokma danny@diebie.nl
Copyright 2019 - 2020 Kevin Dionne kevin.dionne@ennoid.me
This file is part of the VESC/DieBieMS/ENNOID-BMS firmware.
The VESC/DieBieMS/ENNOID-BMS firmware 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.
The VESC/DieBieMS/ENNOID-BMS firmware 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/>.
*/
#ifndef TERMINAL_H_
#define TERMINAL_H_
#include "mainDataTypes.h"
#include "modCommands.h"
#include "generalDefines.h"
#include "modStateOfCharge.h"
#include "modPowerElectronics.h"
#include "modOperationalState.h"
#include "modConfig.h"
#include "GSM.h"
#include <string.h>
#include <stdio.h>
#include <math.h>
// Settings
#define FAULT_VEC_LEN 25
#define CALLBACK_LEN 25
// Functions
void modTerminalProcessString(char *str);
void modTerminalRegisterCommandCallBack(
const char* command,
const char *help,
const char *arg_names,
void(*cbf)(int argc, const char **argv));
#endif /* TERMINAL_H_ */