VOS_VOID MTC_SndI1GasRrcTdsLteRfCtrlInd(PS_BOOL_ENUM_UINT8 enUplinkCloseFlag) { MTC_RRC_TDS_LTE_RF_CONTROL_IND_STRU *pstMsg = VOS_NULL_PTR; /* 申请消息 */ pstMsg = (MTC_RRC_TDS_LTE_RF_CONTROL_IND_STRU *)MTC_ALLOC_MSG_WITH_HDR( sizeof(MTC_RRC_TDS_LTE_RF_CONTROL_IND_STRU)); if (VOS_NULL_PTR == pstMsg) { MTC_ERROR_LOG("MTC_SndI1GasRrcTdsLteRfCtrlInd: Alloc msg fail."); return; } /* 清空消息内容 */ PS_MEM_SET(MTC_GET_MSG_ENTITY(pstMsg), 0x00, MTC_GET_MSG_LENGTH(pstMsg)); /* 填写消息头 */ MTC_CFG_I1_GAS_MSG_HDR(pstMsg, ID_MTC_RRC_TDS_LTE_RF_CONTROL_IND); /* 填写消息内容 */ pstMsg->enUplinkCloseFlag = enUplinkCloseFlag; /* 发送消息 */ MTC_SEND_MSG(pstMsg); return; }
VOS_VOID MTC_SndImsaModem1InfoInd(VOS_VOID) { MTC_IMSA_MODEM1_INFO_IND_STRU *pstModem1Info = VOS_NULL_PTR; /* IMSA没有Start则不需要发消息 */ if (MTC_MODEM_POWER_ON != MTC_GetModemImsaState(MODEM_ID_0)) { return; } /* 申请消息包 */ pstModem1Info = (MTC_IMSA_MODEM1_INFO_IND_STRU *)MTC_ALLOC_MSG_WITH_HDR(sizeof(MTC_IMSA_MODEM1_INFO_IND_STRU)); if (VOS_NULL_PTR == pstModem1Info) { MTC_ERROR_LOG("MTC_SndImsaModem1InfoInd: Alloc Msg Fail!"); return; } /* 清空消息内容 */ PS_MEM_SET(MTC_GET_MSG_ENTITY(pstModem1Info), 0x00, MTC_GET_MSG_LENGTH(pstModem1Info)); /* 填充消息头 */ MTC_CFG_IMSA_MSG_HDR(pstModem1Info, ID_MTC_IMSA_MODEM1_INFO_IND); /* 填写Modem1的信息 */ pstModem1Info->enPowerState = MTC_GetModemPowerState(MODEM_ID_1); /* 发送消息 */ MTC_SEND_MSG(pstModem1Info); return; }