Logo
UNICENS V2.3.0-4567
User Manual and API Reference
Ucs_Return_t Ucs_Network_GetFrameCounter ( Ucs_Inst_t self,
uint32_t  reference,
Ucs_Network_FrameCounterCb_t  result_fptr 
)

Retrieves the Network Frame Counter, which is the number of frames since reset.

 This function corresponds with the INIC function INIC.NetworkFrameCounter.
Parameters
selfThe instance
referenceThe reference value that shall be delivered by result_fptr.
 Reference
result_fptrResult callback.
Returns
Possible return values are shown in the table below.
Value Description
UCS_RET_SUCCESS No error
UCS_RET_ERR_PARAM The parameter self is NULL.
UCS_RET_ERR_BUFFER_OVERFLOW No message buffer is available.
UCS_RET_ERR_API_LOCKED API is currently locked.
UCS_RET_ERR_NOT_SUPPORTED API is not supported in the current Network Supervisor Mode.
UCS_RET_ERR_NOT_INITIALIZED UNICENS is not initialized.