All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pa_sms.h
Go to the documentation of this file.
1 
44 #ifndef LEGATO_PASMS_INCLUDE_GUARD
45 #define LEGATO_PASMS_INCLUDE_GUARD
46 
47 
48 #include "legato.h"
49 #include "interfaces.h"
50 
51 //--------------------------------------------------------------------------------------------------
52 // Symbol and Enum definitions.
53 //--------------------------------------------------------------------------------------------------
54 
55 
56 //--------------------------------------------------------------------------------------------------
62 //--------------------------------------------------------------------------------------------------
63 typedef enum
64 {
69 }
71 
72 
73 //--------------------------------------------------------------------------------------------------
74 // APIs.
75 //--------------------------------------------------------------------------------------------------
76 
77 //--------------------------------------------------------------------------------------------------
82 //--------------------------------------------------------------------------------------------------
83 typedef struct {
88  uint8_t data[LE_SMS_TEXT_MAX_LEN];
89  uint32_t dataLen;
90 }
92 
93 //--------------------------------------------------------------------------------------------------
98 //--------------------------------------------------------------------------------------------------
99 typedef struct {
103  uint8_t data[LE_SMS_TEXT_MAX_LEN];
104  uint32_t dataLen;
105 }
107 
108 //--------------------------------------------------------------------------------------------------
113 //--------------------------------------------------------------------------------------------------
114 typedef struct {
116  uint8_t data[LE_SMS_PDU_MAX_LEN];
117  uint32_t dataLen;
118 }
120 
121 //--------------------------------------------------------------------------------------------------
126 //--------------------------------------------------------------------------------------------------
127 typedef struct {
129  union {
131  pa_sms_SmsSubmit_t smsSubmit;
132  pa_sms_Pdu_t pdu;
133  };
134 }
136 
137 //--------------------------------------------------------------------------------------------------
143 //--------------------------------------------------------------------------------------------------
144 typedef void (*pa_sms_NewMsgHdlrFunc_t)
145 (
146  uint32_t* msgRef
147 );
148 
149 
150 //--------------------------------------------------------------------------------------------------
157 //--------------------------------------------------------------------------------------------------
159 (
160  pa_sms_NewMsgHdlrFunc_t msgHandler
161 );
163 
164 //--------------------------------------------------------------------------------------------------
171 //--------------------------------------------------------------------------------------------------
173 (
174  void
175 );
176 
177 //--------------------------------------------------------------------------------------------------
185 //--------------------------------------------------------------------------------------------------
186 int32_t pa_sms_SendPduMsg
187 (
188  uint32_t length,
189  const uint8_t* dataPtr
190 );
191 
192 //--------------------------------------------------------------------------------------------------
201 //--------------------------------------------------------------------------------------------------
203 (
204  uint32_t index,
205  pa_sms_Pdu_t* msgPtr
206 );
207 
208 //--------------------------------------------------------------------------------------------------
218 //--------------------------------------------------------------------------------------------------
220 (
221  le_sms_Status_t status,
222  uint32_t* numPtr,
223  uint32_t* idxPtr
224 );
226 
227 //--------------------------------------------------------------------------------------------------
236 //--------------------------------------------------------------------------------------------------
238 (
239  uint32_t index
240 );
241 
242 //--------------------------------------------------------------------------------------------------
250 //--------------------------------------------------------------------------------------------------
252 (
253  void
254 );
255 
256 //--------------------------------------------------------------------------------------------------
264 //--------------------------------------------------------------------------------------------------
266 (
267  uint32_t index,
268  le_sms_Status_t status
269 );
270 
271 //--------------------------------------------------------------------------------------------------
279 //--------------------------------------------------------------------------------------------------
281 (
282  char* smscPtr,
283  size_t len
284 );
285 
286 //--------------------------------------------------------------------------------------------------
294 //--------------------------------------------------------------------------------------------------
296 (
297  const char* smscPtr
298 );
299 
300 
301 
302 #endif // LEGATO_PASMS_INCLUDE_GUARD
pa_sms_MsgType_t
Definition: pa_sms.h:63
le_result_t pa_sms_DelMsgFromMem(uint32_t index)
le_result_t
Definition: le_basics.h:34
Definition: pa_sms.h:114
SMS-SUBMIT (in the direction Mobile station to Service Center).
Definition: pa_sms.h:66
le_sms_Format_t format
mandatory, SMS user data format
Definition: pa_sms.h:87
le_result_t pa_sms_GetSmsc(char *smscPtr, size_t len)
le_result_t pa_sms_ClearNewMsgHandler(void)
Definition: pa_sms.h:83
SMS-STATUS-REPORT.
Definition: pa_sms.h:67
PDU message.
Definition: pa_sms.h:68
le_sms_Format_t
Definition: le_sms_interface.h:352
uint32_t dataLen
mandatory, number of characters
Definition: pa_sms.h:117
le_sms_Status_t
Definition: le_sms_interface.h:375
le_sms_Status_t status
mandatory, status of msg in memory
Definition: pa_sms.h:84
le_sms_Status_t status
mandatory, status of msg in memory
Definition: pa_sms.h:100
pa_sms_MsgType_t type
Message Type.
Definition: pa_sms.h:128
Definition: pa_sms.h:99
#define LE_MDMDEFS_PHONE_NUM_MAX_LEN
Definition: le_mdmDefs_interface.h:31
uint32_t dataLen
mandatory, SMS user data length
Definition: pa_sms.h:89
le_sms_Format_t format
mandatory, SMS user data format
Definition: pa_sms.h:102
#define LE_SMS_TIMESTAMP_MAX_LEN
Definition: le_sms_interface.h:307
SMS-DELIVER (in the direction Service Center to Mobile station).
Definition: pa_sms.h:65
int32_t pa_sms_SendPduMsg(uint32_t length, const uint8_t *dataPtr)
#define LE_SMS_PDU_MAX_LEN
Definition: le_sms_interface.h:343
le_result_t pa_sms_SetNewMsgHandler(pa_sms_NewMsgHdlrFunc_t msgHandler)
le_sms_Status_t status
mandatory, status of msg in memory
Definition: pa_sms.h:115
le_result_t pa_sms_SetSmsc(const char *smscPtr)
le_result_t pa_sms_ChangeMessageStatus(uint32_t index, le_sms_Status_t status)
pa_sms_SmsDeliver_t smsDeliver
< Associated data and informations
Definition: pa_sms.h:130
#define LE_SMS_TEXT_MAX_LEN
Definition: le_sms_interface.h:316
le_result_t pa_sms_DelAllMsg(void)
le_result_t pa_sms_RdPDUMsgFromMem(uint32_t index, pa_sms_Pdu_t *msgPtr)
Definition: pa_sms.h:127
void(* pa_sms_NewMsgHdlrFunc_t)(uint32_t *msgRef)
Definition: pa_sms.h:145
le_result_t pa_sms_ListMsgFromMem(le_sms_Status_t status, uint32_t *numPtr, uint32_t *idxPtr)
uint32_t dataLen
mandatory, SMS user data length
Definition: pa_sms.h:104