MX Foundation 4
|
The BC channel of MIL-1553 modules supports this service (Logical channel 1 & 35).
Refer to MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG structure for major frame building.
The major frame can contain up to 2500 minor frames and a total of 6500 messages.
The minor frame rate may be configured between 50 microseconds and 26214375 (rev 1.0.1 or later) or 6553575 (rev 1.0.0) microseconds on Enhanced BC and 1638375 microseconds on IPM-1553-MRT, by step of 25 microseconds (duration parameter of mxfMIL1553TxPeriodicMajorFrameStart() function or duration field of MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES structure).
Each minor frame may have a branch option (Conditional branch, Go To, or End of Major Frame).
Each message may contain a branching condition option. (AND, EQUAL or NOT EQUAL condition on any word index of the message). When the condition is successfully verified, the branching may go to any message within the major frame.
Each element of the major frame corresponds to the MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG structure. It contains the command to be sent, the delay between two transmissions, the retry option (how to manage the retry when a transmission error occurs), the error option (what to do if an error is detected), and other options.
It is possible to set up a schedule of command transmissions by thoroughly building up the major frame using the appropriate commands.
Before setting the major frame, it is suggested to clear it using the mxfTxPeriodicMajorFrameClear() function.
The minor frame can then be set using the mxfMIL1553TxPeriodicMajorFrameSet() function. By default, the major frame is empty.
For advanced minor frame branch options, the MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES structure may be used. By default, all minor frames are sent consecutively, and the major frame loops forever.
To set the data associated to the command, refer to the Periodic Update Message Service section.
Building a major frame:
By default, the major frame is set to loop, forever, each minor frame consecutively. However, the major frame branch function may be configured with the “Go To” and “End of Frame” options.
Each minor frame may be configured with the mxfMIL1553TxPeriodicMajorFrameSet() function (refer to the MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES structure).
mil1553_cond_branch_1.c
mil1553_cond_branch_2.c
Each BC message contained in the minor frames may be configured to verify a condition before switching to the next message. When this condition is true, a branch occurs to the specified destination (minor frame/message pairs). Refer to the MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG structure.