FreeRTOS: FreeRTOS Cellular Library v1.2.0
FreeRTOS Cellular Library
Cellular Function pointer types

Function pointer types of the cellular library. More...

Typedefs

typedef CellularPktStatus_t(* CellularATCommandResponseReceivedCallback_t) (CellularHandle_t cellularHandle, const CellularATCommandResponse_t *pAtResp, void *pData, uint16_t dataLen)
 Callback used to inform about the response of an AT command sent using Cellular_ATCommandRaw API. More...
 
typedef void(* CellularUrcNetworkRegistrationCallback_t) (CellularUrcEvent_t urcEvent, const CellularServiceStatus_t *pServiceStatus, void *pCallbackContext)
 Callback used to inform about a Network Registration URC event. More...
 
typedef void(* CellularUrcPdnEventCallback_t) (CellularUrcEvent_t urcEvent, uint8_t contextId, void *pCallbackContext)
 Callback used to inform about PDN URC events. More...
 
typedef void(* CellularUrcSignalStrengthChangedCallback_t) (CellularUrcEvent_t urcEvent, const CellularSignalInfo_t *pSignalInfo, void *pCallbackContext)
 Callback used to inform about signal strength changed URC event. More...
 
typedef void(* CellularUrcGenericCallback_t) (const char *pRawData, void *pCallbackContext)
 Generic callback used to inform all other URC events. More...
 
typedef void(* CellularModemEventCallback_t) (CellularModemEvent_t modemEvent, void *pCallbackContext)
 Callback used to inform about modem events. More...
 
typedef void(* CellularSocketOpenCallback_t) (CellularUrcEvent_t urcEvent, CellularSocketHandle_t socketHandle, void *pCallbackContext)
 Callback used to inform about the status of socket open. More...
 
typedef void(* CellularSocketDataReadyCallback_t) (CellularSocketHandle_t socketHandle, void *pCallbackContext)
 Callback used to inform that data is ready for reading on a socket. More...
 
typedef void(* CellularSocketClosedCallback_t) (CellularSocketHandle_t socketHandle, void *pCallbackContext)
 Callback used to inform that remote end closed the connection for a connected socket. More...
 

Detailed Description

Function pointer types of the cellular library.

Typedef Documentation

◆ CellularATCommandResponseReceivedCallback_t

typedef CellularPktStatus_t(* CellularATCommandResponseReceivedCallback_t) (CellularHandle_t cellularHandle, const CellularATCommandResponse_t *pAtResp, void *pData, uint16_t dataLen)

Callback used to inform about the response of an AT command sent using Cellular_ATCommandRaw API.

Parameters
[in]cellularHandleThe opaque cellular context pointer created by Cellular_Init.
[in]pAtRespThe response received for the AT command.
[in]pDatais pATCommandPayload pointer in Cellular_ATCommandRaw parameters.
[in]dataLenis the string length of pATCommandPayloadin in Cellular_ATCommandRaw parameters.
Returns
CELLULAR_PKT_STATUS_OK if the operation is successful, otherwise an error code indicating the cause of the error.

◆ CellularUrcNetworkRegistrationCallback_t

typedef void(* CellularUrcNetworkRegistrationCallback_t) (CellularUrcEvent_t urcEvent, const CellularServiceStatus_t *pServiceStatus, void *pCallbackContext)

Callback used to inform about a Network Registration URC event.

Parameters
[in]urcEventURC Event that happened.
[in]pServiceStatusThe status of the network service.
[in]pCallbackContextpCallbackContext parameter in Cellular_RegisterUrcNetworkRegistrationEventCallback function.

◆ CellularUrcPdnEventCallback_t

typedef void(* CellularUrcPdnEventCallback_t) (CellularUrcEvent_t urcEvent, uint8_t contextId, void *pCallbackContext)

Callback used to inform about PDN URC events.

Parameters
[in]urcEventURC Event that happened.
[in]contextIdContext ID of the PDN context
[in]pCallbackContextpCallbackContext parameter in Cellular_RegisterUrcPdnEventCallback function.

◆ CellularUrcSignalStrengthChangedCallback_t

typedef void(* CellularUrcSignalStrengthChangedCallback_t) (CellularUrcEvent_t urcEvent, const CellularSignalInfo_t *pSignalInfo, void *pCallbackContext)

Callback used to inform about signal strength changed URC event.

Parameters
[in]urcEventURC Event that happened.
[in]pSignalInfoThe new signal information.
[in]pCallbackContextpCallbackContext parameter in Cellular_RegisterUrcSignalStrengthChangedCallback function.

◆ CellularUrcGenericCallback_t

typedef void(* CellularUrcGenericCallback_t) (const char *pRawData, void *pCallbackContext)

Generic callback used to inform all other URC events.

Parameters
[in]pRawDataRaw data received in the URC event.
[in]pCallbackContextpCallbackContext parameter in Cellular_RegisterUrcGenericCallback function.

◆ CellularModemEventCallback_t

typedef void(* CellularModemEventCallback_t) (CellularModemEvent_t modemEvent, void *pCallbackContext)

Callback used to inform about modem events.

Parameters
[in]modemEventThe modem event.
[in]pCallbackContextpCallbackContext parameter in Cellular_RegisterModemEventCallback function.

◆ CellularSocketOpenCallback_t

typedef void(* CellularSocketOpenCallback_t) (CellularUrcEvent_t urcEvent, CellularSocketHandle_t socketHandle, void *pCallbackContext)

Callback used to inform about the status of socket open.

Parameters
[in]urcEventURC Event that happened.
[in]socketHandleSocket handle for which data is ready.
[in]pCallbackContextpCallbackContext parameter in Cellular_SocketRegisterSocketOpenCallback function.

◆ CellularSocketDataReadyCallback_t

typedef void(* CellularSocketDataReadyCallback_t) (CellularSocketHandle_t socketHandle, void *pCallbackContext)

Callback used to inform that data is ready for reading on a socket.

Parameters
[in]socketHandleSocket handle for which data is ready.
[in]pCallbackContextpCallbackContext parameter in Cellular_SocketRegisterDataReadyCallback function.

◆ CellularSocketClosedCallback_t

typedef void(* CellularSocketClosedCallback_t) (CellularSocketHandle_t socketHandle, void *pCallbackContext)

Callback used to inform that remote end closed the connection for a connected socket.

Parameters
[in]socketHandleSocket handle for which remote end closed the connection.
[in]pCallbackContextpCallbackContext parameter in Cellular_SocketRegisterClosedCallback function.