Function pointer types of the cellular_common library.
More...
Function pointer types of the cellular_common library.
◆ CellularAtParseTokenHandler_t
typedef void(* CellularAtParseTokenHandler_t) (CellularContext_t *pContext, char *pInputStr) |
URC handler function.
- Returns
- Void.
◆ CellularATCommandDataPrefixCallback_t
typedef CellularPktStatus_t(* CellularATCommandDataPrefixCallback_t) (void *pCallbackContext, char *pLine, uint32_t lineLength, char **pDataStart, uint32_t *pDataLength) |
Callback used to inform pktio the data start and the length of the data.
- Parameters
-
[in] | pCallbackContext | The pCallbackContext in _Cellular_TimeoutAtcmdDataRecvRequestWithCallback. |
[in] | pLine | The input line form cellular modem. |
[in] | lineLength | The length of the input line from cellular modem. |
[out] | pDataStart | Is the start of of data in pLine. |
[out] | pDataLength | Is the data length. |
- Returns
- CELLULAR_PKT_STATUS_OK if the operation is successful. CELLULAR_PKT_STATUS_SIZE_MISMATCH if more data is required. Otherwise an error code indicating the cause of the error.
◆ CellularATCommandDataSendPrefixCallback_t
typedef CellularPktStatus_t(* CellularATCommandDataSendPrefixCallback_t) (void *pCallbackContext, char *pLine, uint32_t *pBytesRead) |
Callback used to fix the stream before the send data.
- Parameters
-
[in] | pCallbackContext | The pCallbackContext in CellularATCommandDataSendPrefixCallback_t. |
[in,out] | pLine | The input line form cellular modem. |
[in,out] | pBytesRead | The length of the input line from cellular modem. |
- Returns
- CELLULAR_PKT_STATUS_OK if the operation is successful, otherwise an error code indicating the cause of the error.
◆ CellularUndefinedRespCallback_t
typedef CellularPktStatus_t(* CellularUndefinedRespCallback_t) (void *pCallbackContext, const char *pLine) |
Undefined response callback function.
- Parameters
-
[in] | pCallbackContext | The pCallbackContext parameter in _Cellular_RegisterUndefinedRespCallback. |
[in] | pLine | The input line form cellular modem. |
- Returns
- CELLULAR_PKT_STATUS_OK if the operation is successful, otherwise an error code indicating the cause of the error.