#include "legato.h"
#include "interfaces.h"
Go to the source code of this file.
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.
- Parameters
-
msgRef | The message reference in message storage. |
Message Type Indicator. It is used for the message service configuration.
Enumerator |
---|
PA_SMS_SMS_DELIVER |
SMS-DELIVER (in the direction Service Center to Mobile station).
|
PA_SMS_SMS_SUBMIT |
SMS-SUBMIT (in the direction Mobile station to Service Center).
|
PA_SMS_SMS_STATUS_REPORT |
SMS-STATUS-REPORT.
|
PA_SMS_PDU |
PDU message.
|
This function changes the message status.
- Returns
- LE_NOT_POSSIBLE The function failed.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[in] | index | Index of the message to be deleted. |
[in] | status | The status of message in memory. |
This function must be called to unregister the handler for a new message reception handling.
- Returns
- LE_NOT_POSSIBLE The function failed to unregister the handler.
-
LE_OK The function succeeded.
This function deletes all Messages from preferred message storage.
- Returns
- LE_NOT_POSSIBLE The function failed to delete all Messages from preferred message storage.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
This function deletes one specific Message from preferred message storage.
- Returns
- LE_NOT_POSSIBLE The function failed to delete one specific Message from preferred message storage.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[in] | index | Index of the message to be deleted. |
le_result_t pa_sms_GetSmsc |
( |
char * |
smscPtr, |
|
|
size_t |
len |
|
) |
| |
This function must be called to get the SMS center.
- Returns
- LE_NOT_POSSIBLE The function failed.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[out] | smscPtr | The Short message service center string. |
[in] | len | The length of SMSC string. |
This function gets the indexes of messages stored in the preferred memory for a specific status.
- Returns
- LE_NOT_POSSIBLE The function failed to get the indexes of messages stored in the preferred memory.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[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. |
This function gets the message from the preferred message storage.
- Returns
- LE_NOT_POSSIBLE The function failed to get the message from the preferred message storage.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[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.
- Returns
- LE_NOT_POSSIBLE The function failed to send a message in PDU mode.
-
LE_TIMEOUT No response was received from the Modem.
-
a positive value The function succeeded. The value represents the message reference.
- Parameters
-
[in] | length | The length of the TP data unit in bytes. |
[in] | dataPtr | The message. |
This function must be called to register a handler for a new message reception handling.
- Returns
- LE_NOT_POSSIBLE The function failed to register a new handler.
-
LE_OK The function succeeded.
- Parameters
-
[in] | msgHandler | The handler function to handle a new message reception. |
This function must be called to set the SMS center.
- Returns
- LE_NOT_POSSIBLE The function failed.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[in] | smscPtr | The Short message service center. |