432
This module provides configuration and utils for the serialization of the IEC 61334-4-32 Service Specific Convergence Sublayer in PRIME.
Packs a 432 message.
- Parameters
-
callCmd | Pointer to the callback command |
- Returns
- SSCS432_OK
Packs a 432 message
References dl432_LlcCallback_t::cmd, DATA_TYPE, dl432_LlcCallback_t::dstAddress, dl432_LlcCallback_t::dstLSAP, dl432_LlcCallback_t::length, dl432_LlcCallback_t::linkClass, LPDU_HEADER, puc_sscs432_tx_buff, SET_TYPE_432_PROTOCOL, dl432_LlcCallback_t::srcAddress, dl432_LlcCallback_t::srcLSAP, SSCS432_OK, and dl432_LlcCallback_t::status.
Referenced by serial_432_if_api_process().
Packs a 432 message.
- Parameters
-
ptrNotBase | Pointer to a notification |
- Returns
- SSCS432_OK
Packs a 432 message
References sscs432_NotBase_t::address, sscs432_NotBase_t::arq, sscs432_NotBase_t::cmd, CTRL_TYPE, LEN_432_SERIAL_NUMBER, sscs432_NotBase_t::lenSerialNumber, MAC_LENGTH, sscs432_NotBase_t::macAddress, puc_sscs432_tx_buff, sscs432_NotBase_t::serialNumber, SET_TYPE_432_PROTOCOL, and SSCS432_OK.
Referenced by serial_432_if_api_process().
Packs a 432 message.
- Parameters
-
ptrNotService | Pointer to a notification |
- Returns
- SSCS432_OK
Packs a 432 message
References sscs432_NotService_t::address, sscs432_NotService_t::arq, sscs432_NotService_t::baseAddress, sscs432_NotService_t::cmd, CTRL_TYPE, LEN_432_SERIAL_NUMBER, sscs432_NotService_t::lenSerialNumber, puc_sscs432_tx_buff, sscs432_NotService_t::serialNumber, SET_TYPE_432_PROTOCOL, and SSCS432_OK.
Referenced by serial_432_if_api_process().
static int _sscs432_Unpack_Cl432EstablishRequest |
( |
void |
| ) |
|
|
static |
This function extracts the 432 SAP Establish.Request.
- Parameters
-
- Returns
- 0 primitive stored
- -1 primitive could not be stored
This function extracts the 432 SAP Establish.Request from the received packet
References rxPtr, and sscs432_establish_request().
Referenced by serial_432_if_api_parser().
static int _sscs432_Unpack_Cl432ReleaseRequest |
( |
void |
| ) |
|
|
static |
This function extracts the 432 SAP Release.Request.
- Parameters
-
- Returns
- 0 primitive stored
- -1 primitive could not be stored
This function extracts the 432 SAP Release.Request from the received packet
References rxPtr, and sscs432_release_request().
Referenced by serial_432_if_api_parser().
static int _sscs432_Unpack_Dl432BroadcastRequest |
( |
void |
| ) |
|
|
static |
This function extracts the 432 SAP Broadcast.Request.
- Parameters
-
- Returns
- 0 primitive stored
- -1 primitive could not be stored
This function extracts the 432 SAP Broadcast.Request from the received packet
References dl432_dl_broadcast_request(), and rxPtr.
Referenced by serial_432_if_api_parser().
static int _sscs432_Unpack_Dl432DataRequest |
( |
void |
| ) |
|
|
static |
This function extracts the 432 SAP Data.Request.
- Parameters
-
- Returns
- 0 primitive stored
- -1 primitive could not be stored
This function extracts the 432 SAP Data.Request from the received packet
References dl432_dl_data_request(), and rxPtr.
Referenced by serial_432_if_api_parser().
static int _sscs432_Unpack_Dl432ReplyRequest |
( |
void |
| ) |
|
|
static |
This function extracts the 432 SAP Reply.Request.
- Parameters
-
- Returns
- 0 primitive stored
- -1 primitive could not be stored
This function extracts the 432 SAP Reply.Request from the received packet
References dl432_dl_reply_request(), and rxPtr.
Referenced by serial_432_if_api_parser().
static int _sscs432_Unpack_Dl432UpdateReplyRequest |
( |
void |
| ) |
|
|
static |
uint8_t serial_432_if_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 received data |
us_len | Data length of the received data |
- Return values
-
1 | primitive stored |
0 | primitive could not be stored |
References _sscs432_Unpack_Cl432EstablishRequest(), _sscs432_Unpack_Cl432ReleaseRequest(), _sscs432_Unpack_Dl432BroadcastRequest(), _sscs432_Unpack_Dl432DataRequest(), _sscs432_Unpack_Dl432ReplyRequest(), _sscs432_Unpack_Dl432UpdateReplyRequest(), CL_432_ESTABLISH_REQUEST, CL_432_RELEASE_REQUEST, cmd, CMD_432_PROTOCOL, DL432_BROADCAST_REQUEST, DL432_DATA_REQUEST, DL432_REPLY_REQUEST, DL432_UPDATE_REPLY_REQUEST, GET_TYPE_432_PROTOCOL, SSCS432_ERROR, SSCS432_OK, and UNUSED.
Referenced by _process_msg().
int8_t serial_432_if_api_process |
( |
void |
| ) |
|
Function to encapsulate 432 Tx Control Process.
- Note
- This function will be called using a pointer
- Return values
-
0 | if the request has been sent |
-1 | if the request has not been sent |
References _sscs432_Pack_432Msg(), _sscs432_Pack_432NotBase(), _sscs432_Pack_432NotService(), dl432_dl_callback(), MAX_LENGTH_432_DATA, PROTOCOL_432_PRIME, x_usi_serial_cmd_params_t::ptr_buf, SSCS432_ERROR, SSCS432_OK, sscs432_poll_establish_release(), sscs432_poll_joins_leaves(), txLen, x_usi_serial_cmd_params_t::uc_protocol_type, x_usi_serial_cmd_params_t::us_len, and usi_send_cmd().