Logo
UNICENS V2.1.0-3491
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.MOSTNetworkFrameCounter.
Parameters
selfThe instance
referenceReference value that shall be delivered by result_fptr.
 Reference
result_fptrResult callback.
Returns
Possible return values are shown in the table below.
Value Description
MNS_RET_SUCCESS No error
MNS_RET_ERR_BUFFER_OVERFLOW No message buffer available
MNS_RET_ERR_API_LOCKED API is currently locked
MNS_RET_ERR_NOT_INITIALIZED UNICENS is not initialized