/**************************************************************************** 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 _IOT_SG_EXT_STA_H_ #define _IOT_SG_EXT_STA_H_ #include "iot_sg_msg.h" #ifdef __cplusplus extern "C" { #endif #if IOT_SG_EXT_SDK_ENABLE /** * @brief iot_sg_ext_sta_command_process() - extend sgapp excute command handle. * @param p_msg: pointer of message, p_msg will not be freed. */ void iot_sg_ext_sta_command_process(iot_sg_msg_t *p_msg); /** * @brief iot_sg_ext_sta_msdu_process() - extend sgapp excute msdu handle. * @param p_msg: pointer of message, p_msg will not be freed. */ void iot_sg_ext_sta_msdu_process(iot_sg_msg_t *p_msg); /** * @brief iot_sg_ext_sta_command_cancel() - cancel sgapp command handle. * @param p_msg: pointer of message, p_msg will not be freed. */ void iot_sg_ext_sta_command_cancel(iot_sg_msg_t *p_msg); /** * @brief iot_sg_ext_sta_msdu_cancel() - cancel sgapp msdu handle. * @param p_msg: pointer of message, p_msg will not be freed. */ void iot_sg_ext_sta_msdu_cancel(iot_sg_msg_t *p_msg); /** * @brief: iot_sg_ext_sta_mr_resp() - meter reading data response. * @param proto_type: proto type, see GW_APP_DATA_TYPE_XXX. * @param sn: sequence number. * @param pkt: meter reading data. * @retval: result, see ERR_XXX. */ uint32_t iot_sg_ext_sta_mr_resp(uint8_t proto_type, uint8_t sn, iot_pkt_t *pkt); #else /* IOT_SG_EXT_SDK_ENABLE */ #define iot_sg_ext_sta_command_process(p_msg) #define iot_sg_ext_sta_msdu_process(p_msg) #define iot_sg_ext_sta_command_cancel(p_msg) #define iot_sg_ext_sta_msdu_cancel(p_msg) #define iot_sg_ext_sta_mr_resp(proto_type, sn, pkt) (ERR_INVAL) #endif /* IOT_SG_EXT_SDK_ENABLE */ #ifdef __cplusplus } #endif #endif /* _IOT_SG_EXT_STA_H_ */