#include "legato.h"
#include "le_mdm_defs.h"
#include "ecall_interface.h"
Go to the source code of this file.
Legato Modem eCall Platform Adapter API include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
A handler that is called whenever a eCall event is received by the modem.
Enumeration used to specify the mode of transmission.
| Enumerator |
|---|
| PA_ECALL_TX_MODE_PULL |
Pull mode (modem/host waits for MSD request from PSAP to send MSD).
|
| PA_ECALL_TX_MODE_PUSH |
Push mode (modem/host sends MSD to PSAP right after eCall is connected).
|
This function must be called to register a handler for eCall event notifications.
- Returns
- A handler reference, which is only needed for later removal of the handler.
- Note
- Doesn't return on failure, so there's no need to check the return value for errors.
- Parameters
-
| [in] | handlerFuncPtr | The event handler function. |
This function must be called to end a eCall.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
| le_result_t pa_ecall_LoadMsd |
( |
uint8_t * |
msdPtr, |
|
|
size_t |
msdSize |
|
) |
| |
This function must be called to load the Minimum Set of Data for the eCall.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
- Parameters
-
| [in] | msdPtr | Encoded Msd |
| [in] | msdSize | msd buffer size |
This function must be called to unregister the handler for eCalls handling.
- Note
- Doesn't return on failure, so there's no need to check the return value for errors.
| le_result_t pa_ecall_SetMaxRedialAttempts |
( |
uint32_t |
redialAttemptsCount | ) |
|
This function must be called to set the maximum redial attempt when an ecall failed.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
- Parameters
-
| [in] | redialAttemptsCount | Number of redial attempt |
This function must be called to set push/pull transmission mode.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
| le_result_t pa_ecall_SetPsapNumber |
( |
char |
psap[LE_TEL_NMBR_MAX_LEN] | ) |
|
This function must be called to set the Public Safely Answering Point number.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
- Parameters
-
| [in] | psap | Public Safely Answering Point number |
This function must be called to start an automatic eCall.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
This function must be called to start a manual eCall.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
This function must be called to start an eCall test.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.