MX Foundation 4
|
The BC allows the user to send messages with many error types (per word basis). MIL-1553 modules contains a pool of 100 error injection structures. Each of these errors may be associated with any BC message by the periodic update message service. Each error structure may be configured with the mxfMIL1553ErrorInjectionSet() function. Any MIL-1553 channel handles of a module may be used with this function and refer to the same error pool.
In order to associate the error with a message, the mxfMIL1553TxPeriodicUpdateMsgWrite() function may be used. The MXF_MIL1553_DATAREC structure contains the errorIndex field that allows the message to be linked with a specific error index (0-99). To use this index, the MXF_MIL1553_TXPERIODIC_REC_CTRL_ERROR_INJ for periodic and MXF_MIL1553_TXAPERIODIC_REC_CTRL_ERROR_INJ for aperiodic option bits must be set in the control word.
To inject an error to a command that has no data associated to it (for example, a BC TX command), the dataSize field of MXF_MIL1553_DATAREC structure can be set to 0. That way, there is no need to provide any data.