MX Foundation 4
|
Channels 5 to 132 have the sub-class MXF_SCLASS_RT_CHANNEL, which allows setting a user response in transmission. All the channels are directly coupled to the user addresses 0 to 127 respectively.
The Periodic Update Message Service allows a message for a specified buffer to be refreshed. The mxfASCBTxPeriodicUpdateMsgWrite() function is used to refresh the data of a specific buffer.
For the User, the Periodic Update Message Service is useful to update the data for each of its side and alternate.
Every time an user transmits a message, the associate message in the message queue will be sent. By default, the messages for all sides and alternate are initialized to zero. If the message is not updated, 0 will be sent on the bus. When all messages of a buffer have been sent, the last message will be repeated indefinitely while the message queue is no longer updated.
The message refreshing does not start until the user is enabled. The mxfASCBUserEnableSet() function is used to enable the user.
Each side (left and right) of user and alternate may be enabled/disabled as required. By default, the bus left and right are disabled for each alternate, i.e. the user does not respond to any BC requests. (See the mxfASCBUserBusEnableSet() function)
Refer to the MXF_ASCB_DATAREC structure for data updating.
Periodic message updating step:
MXF_ASYNCEVENT_COND_TXPERIODIC_UPDATEMSG_BUFFER_THRESHOLD event condition can be registered so a callback handler can be automatically called when the number of messages of a buffer falls below a determined threshold.