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 "le_sms.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 {
85  char oa[LE_TEL_NMBR_MAX_LEN];
88  uint8_t data[LE_SMS_TEXT_MAX_LEN];
89  uint32_t dataLen;
90 }
92 
93 //--------------------------------------------------------------------------------------------------
98 //--------------------------------------------------------------------------------------------------
99 typedef struct {
101  char da[LE_TEL_NMBR_MAX_LEN];
102  uint8_t data[LE_SMS_TEXT_MAX_LEN];
103  uint32_t dataLen;
104 }
106 
107 //--------------------------------------------------------------------------------------------------
112 //--------------------------------------------------------------------------------------------------
113 typedef struct {
115  uint8_t data[LE_SMS_PDU_MAX_LEN];
116  uint32_t dataLen;
117 }
119 
120 //--------------------------------------------------------------------------------------------------
125 //--------------------------------------------------------------------------------------------------
126 typedef struct {
128  union {
130  pa_sms_SmsSubmit_t smsSubmit;
131  pa_sms_Pdu_t pdu;
132  };
133 }
135 
136 //--------------------------------------------------------------------------------------------------
142 //--------------------------------------------------------------------------------------------------
143 typedef void (*pa_sms_NewMsgHdlrFunc_t)
144 (
145  uint32_t* msgRef
146 );
147 
148 
149 //--------------------------------------------------------------------------------------------------
156 //--------------------------------------------------------------------------------------------------
158 (
159  pa_sms_NewMsgHdlrFunc_t msgHandler
160 );
162 
163 //--------------------------------------------------------------------------------------------------
170 //--------------------------------------------------------------------------------------------------
172 (
173  void
174 );
175 
176 //--------------------------------------------------------------------------------------------------
184 //--------------------------------------------------------------------------------------------------
185 int32_t pa_sms_SendPduMsg
186 (
187  uint32_t length,
188  const uint8_t* dataPtr
189 );
190 
191 //--------------------------------------------------------------------------------------------------
200 //--------------------------------------------------------------------------------------------------
202 (
203  uint32_t index,
204  pa_sms_Pdu_t* msgPtr
205 );
206 
207 //--------------------------------------------------------------------------------------------------
217 //--------------------------------------------------------------------------------------------------
219 (
220  le_sms_Status_t status,
221  uint32_t* numPtr,
222  uint32_t* idxPtr
223 );
225 
226 //--------------------------------------------------------------------------------------------------
235 //--------------------------------------------------------------------------------------------------
237 (
238  uint32_t index
239 );
240 
241 //--------------------------------------------------------------------------------------------------
249 //--------------------------------------------------------------------------------------------------
251 (
252  void
253 );
254 
255 //--------------------------------------------------------------------------------------------------
263 //--------------------------------------------------------------------------------------------------
265 (
266  uint32_t index,
267  le_sms_Status_t status
268 );
269 
270 #endif // LEGATO_PASMS_INCLUDE_GUARD
le_sms_Status_t
Definition: le_sms.h:72
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:113
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_ClearNewMsgHandler(void)
Definition: pa_sms.h:83
le_sms_Format_t
Definition: le_sms.h:57
SMS-STATUS-REPORT.
Definition: pa_sms.h:67
PDU message.
Definition: pa_sms.h:68
uint32_t dataLen
mandatory, number of characters
Definition: pa_sms.h:116
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:127
Definition: pa_sms.h:99
uint32_t dataLen
mandatory, SMS user data length
Definition: pa_sms.h:89
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)
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:114
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:129
#define LE_SMS_TEXT_MAX_LEN
Definition: le_sms.h:33
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:126
void(* pa_sms_NewMsgHdlrFunc_t)(uint32_t *msgRef)
Definition: pa_sms.h:144
#define LE_SMS_TIMESTAMP_MAX_LEN
Definition: le_sms.h:25
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:103
#define LE_SMS_PDU_MAX_LEN
Definition: le_sms.h:49