/**************************************************************************** Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED. This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT be copied by any method or incorporated into another program without the express written consent of Aerospace C.Power. This Information or any portion thereof remains the property of Aerospace C.Power. The Information contained herein is believed to be accurate and Aerospace C.Power assumes no responsibility or liability for its use in any way and conveys no license or title under any patent or copyright and makes no representation or warranty that this Information is free from patent or copyright infringement. ****************************************************************************/ #ifndef OEM_TOOL_HW_H #define OEM_TOOL_HW_H #ifdef __cplusplus extern "C" { #endif typedef enum _dev_type { UART0 = 0, UART1 = 1, UART2 = 2, UART3 = 3, SPI0 = 4, SPI1 = 5, LED = 6, TX_E = 7, RX_E = 8, GLNA = 9, ZC = 10, IIC = 11, DEV_TYPE_MAX = 0xff, }dev_type; typedef enum _dev_io { TX = 0, RX = 1, CS = 2, CLK = 3, MOSI = 4, MISO = 5, PWR = 6, RS485 = 7, PHASE_A = 8, PHASE_B = 9, PHASE_C = 10, SDA = 11, SCL = 12, DEV_IO_MAX = 0xff, }dev_io; typedef enum _uart_type { METER = 0, LOG = 1, CLI = 2, R485 = 3, IR = 4, EXT = 5, TSFM = 6, UART_MAX = 0xff, }uart_type; typedef enum _pin_io{ IO_TYPE_NONE = 0, IO_TYPE_IN = 1, IO_TYPE_OUT = 2, IO_TYPE_IO = 3 } pin_type_t; void load_database_hw (const char *filename); void save_database_hw(const char *filename); void oem_bin_file_parse_hw(const char *filename); #ifdef __cplusplus } #endif #endif //OEM_TOOL_HW_H