This module provides configuration and utils for the serialization of PRIME PLME.
static int _serial_if_plme_pack_plme_callback |
( |
uint8_t * |
puc_plme_command, |
|
|
int |
l_len |
|
) |
| |
|
static |
static int _serial_if_plme_unpack_get_req |
( |
void |
| ) |
|
|
static |
This function extracts the PLME SAP Get.Request.
- Note
- This function extracts the PLME SAP Get.Request from the received packet and stores the data in the circular buffer if possible.
- Return values
-
0 | primitive stored |
-1 | primitive could not be stored |
References prime_PLME_GET_request(), and puc_rx.
Referenced by serial_if_plme_api_parser().
static int _serial_if_plme_unpack_set_req |
( |
void |
| ) |
|
|
static |
static int _serial_if_plme_unpack_testmode_req |
( |
void |
| ) |
|
|
static |
This function extracts the PLME SAP Testmode.Request.
- Note
- This function extracts the PLME SAP Testmode.Request from the received packet and stores the data in the circular buffer if possible.
- Return values
-
0 | primitive stored |
-1 | primitive could not be stored |
References prime_PLME_TESTMODE_request(), and puc_rx.
Referenced by serial_if_plme_api_parser().
uint8_t serial_if_plme_api_parser |
( |
uint8_t * |
puc_rx_msg, |
|
|
uint16_t |
us_len |
|
) |
| |
Received message.
- Note
- Process Dialogue with peer
- Proces Profiles
- Wait for received message
- Process incoming message
- Send response if necessary
- Parameters
-
puc_rx_msg | Pointer to the data attached to the connection request |
us_len | Data length of the data attached to the request |
- Return values
-
1 | primitive stored |
0 | primitive could not be stored |
References _serial_if_plme_unpack_get_req(), _serial_if_plme_unpack_set_req(), _serial_if_plme_unpack_testmode_req(), CMD_PRIME_PROTOCOL, PRIME_PLME_GET_REQUEST, PRIME_PLME_RESET_REQUEST, prime_PLME_RESET_request(), PRIME_PLME_RESUME_REQUEST, prime_PLME_RESUME_request(), PRIME_PLME_SET_REQUEST, PRIME_PLME_SLEEP_REQUEST, prime_PLME_SLEEP_request(), PRIME_PLME_TESTMODE_REQUEST, and UNUSED.
Referenced by _process_msg().
int8_t serial_if_plme_process |
( |
void |
| ) |
|