feat: KT mBMS 펌웨어 3종(HW1/2/3) 및 통합 빌드 환경 초기 커밋 (V4.0.0.1)
This commit is contained in:
87
APP_R3221/App/Source/io.h
Normal file
87
APP_R3221/App/Source/io.h
Normal file
@@ -0,0 +1,87 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file io.h
|
||||
* @author AMG Energy Solution Team
|
||||
* @version V1.0.0
|
||||
* @date 07-Feb-2022
|
||||
* @brief This file provides all the headers of I/O 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 _IO_H_
|
||||
#define _IO_H_
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "hc32_ddl.h"
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported Defines ----------------------------------------------------------*/
|
||||
/*********************** Digital Input Define *********************************/
|
||||
#define DI_DISCHA_RELAY 0
|
||||
#define DI_CHARGE_RELAY 1
|
||||
#define DI_PRE_CHG_RELAY 2
|
||||
#define DI_AFE_ALERT 3
|
||||
|
||||
#define RON 1
|
||||
#define ROFF 0
|
||||
|
||||
#define PUSH 1
|
||||
#define PULL 0
|
||||
|
||||
#define High 1 /* USED INVENTORY */
|
||||
#define Low 0 /* USED INVENTORY */
|
||||
#define false 0
|
||||
#define true 1
|
||||
#define cNormalOpen 0
|
||||
#define cNormalClose 1
|
||||
#define cNORMAL 0
|
||||
#define cINITVALUE 0xff
|
||||
#define cOCCUR 1
|
||||
#define cUNKNOWN 2
|
||||
#define cDISABLE 3
|
||||
#define cCANCEL 0
|
||||
|
||||
#define DO_DSG_RELAY_ID '0'
|
||||
#define DO_CHG_RELAY_ID '1'
|
||||
#define DO_PRE_CHG_RELAY_ID '2'
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
|
||||
uint8_t GetDevAddrIO(void);
|
||||
|
||||
void App_TaskIO(void);
|
||||
|
||||
void DecIOTaskTick(uint32_t tick);
|
||||
uint8_t DIDState(uint16_t i);
|
||||
|
||||
void Alarm_Buzzer_Update(void);
|
||||
void SOC_LED_Buf_Clear(void);
|
||||
|
||||
void SetRemoteReset(void);
|
||||
|
||||
#ifdef CONSOLE_DEBUG
|
||||
void ODisplayDigitalIO(uint8_t p);
|
||||
void DDisplayRelayStatus(uint8_t p);
|
||||
#endif /* CONSOLE_DEBUG */
|
||||
|
||||
#endif
|
||||
|
||||
/*******************(C)COPYRIGHT 2022 AMG ********************END OF FILE******/
|
||||
Reference in New Issue
Block a user