80 lines
2.6 KiB
C
80 lines
2.6 KiB
C
/**
|
|
******************************************************************************
|
|
* @file console.h
|
|
* @author AMG Energy Solution Team
|
|
* @version V1.0.0
|
|
* @date 07-Feb-2022
|
|
* @brief This file provides all the headers of the debug console functions.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
|
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
|
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
|
*
|
|
* <h2><center>© COPYRIGHT 2022 AMG</center></h2>
|
|
******************************************************************************
|
|
*/
|
|
|
|
/** @addtogroup mBMS2
|
|
* @{
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef _CONSOLE_H_
|
|
#define _CONSOLE_H_
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "hc32_ddl.h"
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
#define OP_MODE 0
|
|
#define SET_MODE 1
|
|
#define DIAG_MODE 2
|
|
#define OS_STATUS_MODE 9
|
|
#define INVENTORY_MODE 10
|
|
|
|
#define SF1_MODE 21
|
|
#define CHG_CTRL_CFG_MODE 23
|
|
#define SBS_MODE 24
|
|
#define SYSD_MODE 25
|
|
|
|
#define CFG_MODE 31
|
|
#define PWR_MODE 32
|
|
#define GAS_MODE 33
|
|
#define CAL_MODE 34
|
|
|
|
#define CC_MODE 41
|
|
#define AFE_MODE 42
|
|
|
|
#define TEST_MODE 100
|
|
#define GUI_MODE -1
|
|
|
|
#define RX_PRINT 0
|
|
#define TX_PRINT 1
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
extern int8_t screenmode;
|
|
extern uint8_t position;
|
|
|
|
extern uint32_t BakOSCtxSwCtr; /* Counter of number of context switches */
|
|
extern uint32_t BakLocalTime; /* this variable is used to create a time reference incremented by 10ms */
|
|
|
|
void AppTaskDebug(void);
|
|
uint16_t debug_recv_data(uint8_t *data);
|
|
void ViewScreen(void);
|
|
void DisplayScreen(uint8_t p);
|
|
|
|
void Console_Initial(void);
|
|
void Console(uint8_t *one);
|
|
|
|
#endif
|
|
|
|
/*******************(C)COPYRIGHT 2022 AMG ********************END OF FILE******/
|