Logo
UNICENS V2.1.0-3491
User Manual and API Reference
typedef void(* Ucs_Network_StatusCb_t)(uint16_t change_mask, uint16_t events, Ucs_Network_Availability_t availability, Ucs_Network_AvailInfo_t avail_info, Ucs_Network_AvailTransCause_t avail_trans_cause, uint16_t node_address, uint8_t node_position, uint8_t max_position, uint16_t packet_bw, void *user_ptr)

Function signature used for the Network Status callback function.

 The arguments of the result callback function correspond with the INIC's result for the function INIC.MOSTNetworkStatus.
Parameters
change_maskIndicates which parameters have been changed since the last function call. If a bit is set the corresponding parameter has been changed since the last update.
Bit Index Value (Hex) Parameter
0 0x01 events
1 0x02 availability
2 0x04 avail_info
3 0x08 avail_trans_cause
4 0x10 node_address
5 0x20 node_position
6 0x40 max_position
7 0x80 packet_bw
eventsThe occurred network events. Events are only indicated once they occurred. I.e., the value is not handled as a continuous state. You can use the bitmask UCS_NETWORK_EVENT_NCE to identify received events.
 Events
availabilityThe network availability.
 Availability
avail_infoThe availability information.
 AvailabilityInfo
avail_trans_causeThe availability transition cause.
 AvailabilityTransitionCause
node_addressThe current node address.
 NodeAddress
node_positionThe current node position.
 NodePosition
max_positionThe number of available nodes.
 MaxPosition
packet_bwThe packet bandwidth.
 PacketBW
user_ptrUser reference provided in Ucs_InitData_t::user_ptr