Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PRIME Serial IEC-432

432

This module provides configuration and utils for the serialization of the IEC 61334-4-32 Service Specific Convergence Sublayer in PRIME.

Functions

static int8_t _sscs432_Pack_432Msg (dl432_LlcCallback_t *callCmd)
 Packs a 432 message. More...
 
static int8_t _sscs432_Pack_432NotBase (sscs432_NotBase_t *ptrNotBase)
 Packs a 432 message. More...
 
static int8_t _sscs432_Pack_432NotService (sscs432_NotService_t *ptrNotService)
 Packs a 432 message. More...
 
static int _sscs432_Unpack_Cl432EstablishRequest (void)
 This function extracts the 432 SAP Establish.Request. More...
 
static int _sscs432_Unpack_Cl432ReleaseRequest (void)
 This function extracts the 432 SAP Release.Request. More...
 
static int _sscs432_Unpack_Dl432BroadcastRequest (void)
 This function extracts the 432 SAP Broadcast.Request. More...
 
static int _sscs432_Unpack_Dl432DataRequest (void)
 This function extracts the 432 SAP Data.Request. More...
 
static int _sscs432_Unpack_Dl432ReplyRequest (void)
 This function extracts the 432 SAP Reply.Request. More...
 
static int _sscs432_Unpack_Dl432UpdateReplyRequest (void)
 This function extracts the 432 SAP Update Reply.Request. More...
 
uint8_t serial_432_if_api_parser (uint8_t *puc_rx_msg, uint16_t us_len)
 Received message. More...
 
int8_t serial_432_if_api_process (void)
 Function to encapsulate 432 Tx Control Process. More...
 

Variables

static dl432_LlcCallback_t callBackCmd
 
static uint8_t puc_sscs432_cmd_to_pack [SSCS432_DATA_SIZE]
 
static uint8_t puc_sscs432_tx_buff [SSCS432_DATA_SIZE]
 
static uint8_t * rxPtr
 
static uint16_t txLen
 
static sscs432_NotBase_t x_base_not
 
static sscs432_NotService_t x_service_not
 

static int8_t _sscs432_Pack_432NotBase ( sscs432_NotBase_t ptrNotBase)
static
static int8_t _sscs432_Pack_432NotService ( sscs432_NotService_t ptrNotService)
static
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

This function extracts the 432 SAP Update Reply.Request.

Parameters
-
Returns
  • 0 primitive stored
  • -1 primitive could not be stored

This function extracts the 432 SAP Update Reply.Request from the received packet

References dl432_dl_update_reply_request(), and rxPtr.

Referenced by serial_432_if_api_parser().

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_msgPointer to the received data
us_lenData length of the received data
Return values
1primitive stored
0primitive 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  )

dl432_LlcCallback_t callBackCmd
static
uint8_t puc_sscs432_cmd_to_pack[SSCS432_DATA_SIZE]
static
uint16_t txLen
static
sscs432_NotBase_t x_base_not
static
sscs432_NotService_t x_service_not
static