Files
banban/ql-kernel/threadx/common/include/quec_msg_process.h
T

110 lines
3.8 KiB
C

/*================================================================
Copyright (c) 2018 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
Quectel Wireless Solution Proprietary and Confidential.
=================================================================*/
/**
******************************************************************************
* @file quec_msg_process.h
* @author Chaim.Qian
* @version V1.0.0
* @date 25-Oct-2018
* @brief This file contains the common definitions, macros and functions to
* be shared throughout the project.
******************************************************************************
*
* The MIT License
* Copyright (c) 2014 QUECTEL Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
* to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************************
*/
/*=================================================================
EDIT HISTORY FOR MODULE
This section contains comments describing changes made to the module.
Notice that changes are listed in reverse chronological order.
WHEN WHO WHAT, WHERE, WHY
------------ ------- -------------------------------------------------------------------------------
10/25/2018 Chaim Init version
=================================================================*/
#include "quec_cust_feature.h"
#include "quec_common.h"
#include "teldef.h"
#include "quec_rtos.h"
#ifndef __QUEC_THREAD_MSG_H_
#define __QUEC_THREAD_MSG_H_
//chaim 2018.10.24 msg process log enable
#define QUEC_MSG_PROCESS_LOG_ENABLE
//msg magic num to avoid unknow source
#define QUEC_MSG_MAGIC_NUM 0x5a6a7a8a
#define QUEC_MSG_LEN_NONE 0
typedef enum
{
QUEC_NONE_MSG=-1,
QUEC_ORIGIN_ASR_DATA_MSG=0,
#ifdef QUEC_USB_QWIFISCAN_SUPPORT
QUEC_WIFISCAN_MSG, //Brent 20200628
QUEC_WIFISCAN_TRAFFIC_STATICS_MSG,
#endif
#ifdef QUEC_BLACK_CELL_SUPPORT
QUEC_GWL_BLACKCELL_PROCESS_MSG,
QUEC_ELECTRIC_FENCE_EVENT_MSG,
QUEC_ELECTRIC_FENCE_PREVENT_MSG,
QUEC_ELECTRIC_FENCE_BLACKLWIP_MSG,
#endif
#ifdef QUEC_QSCLKEX_ENABLE
QUEC_QSCLKEX_CLEAR_PUNISHTIME,
#endif
#ifdef QUEC_IMS_XML_SUPPORT
QUEC_IMSXML_UPDATE_JUDGE_MSG,
#endif
#ifdef QUEC_AUTOAPN_ADJUST_SUPPORT
QUEC_AUTO_APN_EVENT_MSG,
#endif
MSG_IND_MAX
}quec_msg_control_type_e;
extern QuecOSStatus quec_send_msg_to_handle_task(quec_msg_control_type_e msg_type,char *pdata,uint32 len);
extern QuecOSStatus quec_msg_handle_task_init(void);
typedef struct
{
quec_msg_control_type_e type;
uint8 data_len;
uint8 *pdata; //msg_handle task process actual data
}quec_msg_process_s;
QuecOSStatus quec_msg_queue_check(quec_queue_t queue,uint32 creat_num);
#ifdef QUEC_BLACK_CELL_SUPPORT
void quec_gwl_blackcell_msg_handle(quec_msg_process_s *pGWLCell);
#endif
#endif