FreeRTOS:FreeRTOS 蜂窝网库 v1.2.0
FreeRTOS 蜂窝网库
cellular_common_portable.h 文件引用
#include <stdint.h>
#include "cellular_common.h"

转到此文件的源代码。

函数

CellularError_t Cellular_ModuleInit (const CellularContext_t *pContext, void **ppModuleContext)
 蜂窝模块初始化函数。 更多……
 
CellularError_t Cellular_ModuleCleanUp (const CellularContext_t *pContext)
 蜂窝模块清理函数。 更多……
 
CellularError_t Cellular_ModuleEnableUE (CellularContext_t *pContext)
 蜂窝模块用户设备设置函数。 更多……
 
CellularError_t Cellular_ModuleEnableUrc (CellularContext_t *pContext)
 蜂窝模块 URC 启用函数。 更多……
 

函数文档

◆ Cellular_ModuleInit()

CellularError_t Cellular_ModuleInit ( const CellularContext_t pContext,
void **  ppModuleContext 
)

蜂窝模块初始化函数。

在 Cellular_CommonInit 中调用此函数以设置蜂窝模块上下文。

参数
[in,out]pContext在 Cellular_Init 中创建的 FreeRTOS 蜂窝网库上下文。
[in]ppModuleContext可使用 _Cellular_GetModuleContext 获取蜂窝模块上下文。
返回
如运算成功,则返回 CELLULAR_SUCCESS,否则返回指示错误原因的错误代码。

◆ Cellular_ModuleCleanUp()

CellularError_t Cellular_ModuleCleanUp ( const CellularContext_t pContext)

蜂窝模块清理函数。

此函数用于清理模块上下文。

参数
[in,out]pContext在 Cellular_Init 中创建的 FreeRTOS 蜂窝网库上下文。
返回
如运算成功,则返回 CELLULAR_SUCCESS,否则返回指示错误原因的错误代码。

◆ Cellular_ModuleEnableUE()

CellularError_t Cellular_ModuleEnableUE ( CellularContext_t pContext)

蜂窝模块用户设备设置函数。

此函数用于设置蜂窝模块的用户设备。

参数
[in,out]pContext在 Cellular_Init 中创建的 FreeRTOS 蜂窝网库上下文。
返回
如运算成功,则返回 CELLULAR_SUCCESS,否则返回指示错误原因的错误代码。

◆ Cellular_ModuleEnableUrc()

CellularError_t Cellular_ModuleEnableUrc ( CellularContext_t pContext)

蜂窝模块 URC 启用函数。

此函数用于启用蜂窝模块的非请求结果码。

参数
[in,out]pContext在 Cellular_Init 中创建的 FreeRTOS 蜂窝网库上下文。
返回
如运算成功,则返回 CELLULAR_SUCCESS,否则返回指示错误原因的错误代码。