/**************************************************************************** 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 _APP_DLT645_DI_DEF_H_ #define _APP_DLT645_DI_DEF_H_ #ifdef __cplusplus extern "C" { #endif /* --------------------------- dlt645 common DI --------------------------- */ /* DI: read device software version */ #define PROTO_645_2007_EXT_READ_SW_VER (0x04800001u) /* DI: read device hardware version */ #define PROTO_645_2007_EXT_READ_HW_VER (0x04800002u) /* DI: reset cco */ #define PROTO_645_2007_EXT_RESET_CCO (0x08000004u) /* ------------------------ dlt645 DI for solar only ----------------------- */ /* DI: write sunsolar module activite report config */ #define PROTO_645_2007_EXT_READ_STACFG_DI (0x04001514u) /* DI: write sunsolar module activite report config */ #define PROTO_645_2007_EXT_SET_STACFG_DI (0x04001515u) /* DI: read sunsolar module SN */ #define PROTO_645_2007_EXT_READ_SUNSOLAR_SN (0x04001516u) /* DI: write sunsolar module SN */ #define PROTO_645_2007_EXT_SET_SUNSOLAR_SN (0x04001517u) /* DI: reset sunsolar module */ #define PROTO_645_2007_EXT_RESET_SUNSOLAR (0x04001518u) /* DI: assert sunsolar module */ #define PROTO_645_2007_EXT_RESET_ASSERT (0x04001519u) /* DI: read solar sta report ttl count */ #define PROTO_645_2007_EXT_READ_TTL (0x04001520u) /* DI: set solar sta report ttl count */ #define PROTO_645_2007_EXT_SET_TTL (0x04001521u) /* DI: set solar voltage calibrate data */ #define PROTO_645_2007_EXT_SET_VOL_CAL_DATA (0x04001522u) /* DI: read solar voltage calibrate data */ #define PROTO_645_2007_EXT_READ_VOL_CAL_DATA (0x04001523u) /* DI: set solar adc sample period */ #define PROTO_645_2007_EXT_SET_CAL_PERIOD (0x04001524u) /* DI: set solar RSD open/close */ #define PROTO_645_2007_EXT_SET_RSD (0x04001525u) /* DI: read solar RSD state */ #define PROTO_645_2007_EXT_READ_RSD_STATE (0x04001526u) /* DI: read solar RSD setting record */ #define PROTO_645_2007_EXT_READ_RSD_RCD (0x04001527u) /* DI: set solar current calibrate data */ #define PROTO_645_2007_EXT_SET_CUR_CAL_DATA (0x04001534u) /* DI: read solar current calibrate data */ #define PROTO_645_2007_EXT_READ_CUR_CAL_DATA (0x04001535u) /* DI: get crc of calibration partition without iv data*/ #define PROTO_645_2007_EXT_GET_CALIBRATION_CRC (0x04001536u) /* DI: heartbeat from CCTT */ #define PROTO_645_2007_EXT_CCTT_HEARTBEAT (0x04001537u) /* DI: set heartbeat enable or disable */ #define PROTO_645_2007_EXT_SET_HEARTBEAT (0x04001538u) /* DI: read hearbeat status */ #define PROTO_645_2007_EXT_READ_HEARTBEAT (0x04001539u) /* DI: read sunsolar module datas, voltage ... */ #define PROTO_645_2007_EXT_READ_SUNSOLAR_DATA (0xFFB00001u) /* DI: read solar sta freeze data */ #define PROTO_645_2007_EXT_READ_FREEZE_DATA (0xFFB0000Du) /* todo: add */ /* ------------------------- dlt645 DI for iot only ------------------------ */ /* todo: add */ #ifdef __cplusplus } #endif #endif /* _APP_DLT645_DI_DEF_H_ */