Go to the source code of this file.
Data Structures | |
| struct | pa_sms_SmsDeliver_t |
| struct | pa_sms_SmsSubmit_t |
| struct | pa_sms_Pdu_t |
| struct | pa_sms_Message_t |
Typedefs | |
| typedef void(* | pa_sms_NewMsgHdlrFunc_t )(uint32_t *msgRef) |
Enumerations | |
| enum | pa_sms_MsgType_t { PA_SMS_SMS_DELIVER = 0, PA_SMS_SMS_SUBMIT = 1, PA_SMS_SMS_STATUS_REPORT = 2, PA_SMS_PDU = 3 } |
Functions | |
| le_result_t | pa_sms_SetNewMsgHandler (pa_sms_NewMsgHdlrFunc_t msgHandler) |
| le_result_t | pa_sms_ClearNewMsgHandler (void) |
| int32_t | pa_sms_SendPduMsg (uint32_t length, const uint8_t *dataPtr) |
| le_result_t | pa_sms_RdPDUMsgFromMem (uint32_t index, pa_sms_Pdu_t *msgPtr) |
| le_result_t | pa_sms_ListMsgFromMem (le_sms_msg_Status_t status, uint32_t *numPtr, uint32_t *idxPtr) |
| le_result_t | pa_sms_DelMsgFromMem (uint32_t index) |
| le_result_t | pa_sms_DelAllMsg (void) |
| le_result_t | pa_sms_ChangeMessageStatus (uint32_t index, le_sms_msg_Status_t status) |
Legato Modem SMS Platform Adapter API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
| typedef void(* pa_sms_NewMsgHdlrFunc_t)(uint32_t *msgRef) |
Prototype for handler functions used to report that a new message has been received.
| msgRef | The message reference in message storage. |
| enum pa_sms_MsgType_t |
Message Type Indicator. It is used for the message service configuration.
| le_result_t pa_sms_ChangeMessageStatus | ( | uint32_t | index, |
| le_sms_msg_Status_t | status | ||
| ) |
This function changes the message status.
| [in] | index | Index of the message to be deleted. |
| [in] | status | The status of message in memory. |
| le_result_t pa_sms_ClearNewMsgHandler | ( | void | ) |
This function must be called to unregister the handler for a new message reception handling.
| le_result_t pa_sms_DelAllMsg | ( | void | ) |
This function deletes all Messages from preferred message storage.
| le_result_t pa_sms_DelMsgFromMem | ( | uint32_t | index | ) |
This function deletes one specific Message from preferred message storage.
| [in] | index | Index of the message to be deleted. |
| le_result_t pa_sms_ListMsgFromMem | ( | le_sms_msg_Status_t | status, |
| uint32_t * | numPtr, | ||
| uint32_t * | idxPtr | ||
| ) |
This function gets the indexes of messages stored in the preferred memory for a specific status.
| [in] | status | The status of message in memory. |
| [out] | numPtr | The number of indexes retrieved. |
| [out] | idxPtr | The pointer to an array of indexes. The array is filled with 'num' index values. |
| le_result_t pa_sms_RdPDUMsgFromMem | ( | uint32_t | index, |
| pa_sms_Pdu_t * | msgPtr | ||
| ) |
This function gets the message from the preferred message storage.
| [in] | index | The place of storage in memory. |
| [out] | msgPtr | The message. |
| int32_t pa_sms_SendPduMsg | ( | uint32_t | length, |
| const uint8_t * | dataPtr | ||
| ) |
This function sends a message in PDU mode.
| [in] | length | The length of the TP data unit in bytes. |
| [in] | dataPtr | The message. |
| le_result_t pa_sms_SetNewMsgHandler | ( | pa_sms_NewMsgHdlrFunc_t | msgHandler | ) |
This function must be called to register a handler for a new message reception handling.
| [in] | msgHandler | The handler function to handle a new message reception. |