MX Foundation 4
|
Functions | |
uint32 | mxfTxPeriodicMajorFrameSet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 count, void *msg, void *properties) |
uint32 | mxfTxPeriodicMajorFrameGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 maxCount, uint64 *count, void *msg, void *properties) |
uint32 | mxfTxPeriodicMajorFrameMinorCountGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 *count) |
uint32 | mxfTxPeriodicMajorFrameStart (HMXF_CHANNEL channel, uint64 majorIndex, uint64 duration, void *properties) |
uint32 | mxfTxPeriodicMajorFrameStop (HMXF_CHANNEL channel, uint64 majorIndex, uint64 stopTime) |
uint32 | mxfTxPeriodicMajorFrameClear (HMXF_CHANNEL channel, uint64 majorIndex) |
uint32 | mxfTxPeriodicMajorFrameStatusGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 *status) |
uint32 mxfTxPeriodicMajorFrameSet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | minorIndex, | ||
uint64 | count, | ||
void * | msg, | ||
void * | properties | ||
) |
Sets the specified minor frame to the major frame by passing an array of structure of messages.
This function is used before enabling the transmission of the schedule for configuring each minor frame of the major frame.
[in] | channel | channel handle. | ||||||
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. | ||||||
[in] | minorIndex | minor frame index. | ||||||
[in] | count | count of messages in the minor frame. | ||||||
[in] | msg | minor frame message structure pointer.
| ||||||
[in] | properties | minor frame properties pointer (optional, MIL-STD-1553 only). MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES for MIL-STD-1553. Pass NULL to ignore this parameter, the default minor frame properties will apply. Default minor frame properties for MIL-STD-1553 are a repeat count and modulo of 1, duration specify by duration parameter of mxfTxPeriodicMajorFrameStart() and no options (branch to the next minor frame or loop to the first for the last minor frame). |
uint32 mxfTxPeriodicMajorFrameGet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | minorIndex, | ||
uint64 | maxCount, | ||
uint64 * | count, | ||
void * | msg, | ||
void * | properties | ||
) |
Reads the specified minor frame of the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | minorIndex | minor frame index. |
[in] | maxCount | maximum messages to read within the minor frame. |
[out] | count | returned messages count. |
[out] | msg | minor frame messages pointer. |
[out] | properties | pointer to returned properties (optional, MIL-STD-1553 only). MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES for MIL-STD-1553. Pass NULL to ignore this parameter. |
uint32 mxfTxPeriodicMajorFrameMinorCountGet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 * | count | ||
) |
Returns the minor frame count of a major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[out] | count | minor frame count. |
uint32 mxfTxPeriodicMajorFrameStart | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | duration, | ||
void * | properties | ||
) |
Starts the major frame.
If the major frame contains frame errors, erroneous frames are ignored and other frames are started.
The data of the major frame must be initialized using mxfTxPeriodicUpdateMsgWrite().
[in] | channel | channel handle. | |||||||||
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. | |||||||||
[in] | duration | MIL-STD-1553: default minor frame duration. Minor frame duration can be overridden by each minor frame.
Example: Major frame with 2 minor frames (minor frame duration = 25000).
|
When using ARINC 629, this parameter needs to be 0, as in ARINC 629, the Transmit Interval is used, not the duration parameter.
[in] | properties | optional properties. Pass NULL to use default major frame properties or address of a structure to override default properties.
|
uint32 mxfTxPeriodicMajorFrameStop | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | stopTime | ||
) |
Stops the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | stopTime | stop time in timebase. 0 if no stop time is used. In consequence, always use 0 for ARINC 629. |
uint32 mxfTxPeriodicMajorFrameClear | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex | ||
) |
Clears the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
uint32 mxfTxPeriodicMajorFrameStatusGet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 * | status | ||
) |
Returns the current major frame status.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[out] | status | returned status. |
Status | Major frame status |
---|---|
MXF_TXPERIODIC_MJRFRAME_STATUS_STARTED | The major frame is started. |
MXF_TXPERIODIC_MJRFRAME_STATUS_STOPPED | The major frame is stopped. |
MXF_TXPERIODIC_MJRFRAME_STATUS_HALTED | The major frame is stopped after an halt condition was detected. |
MXF_TXPERIODIC_MJRFRAME_STATUS_OVERLOAD | An overload condition was detected (MIL1553). |
MXF_TXPERIODIC_MJRFRAME_STATUS_SIM_ERROR | The major frame is stopped after a SIM error (A629). |
MXF_TXPERIODIC_MJRFRAME_STATUS_BUS_QUIET | A bus quiet condition has been detected (A629). |
MXF_TXPERIODIC_MJRFRAME_STATUS_TX_OVERFLOW | The major frame is stopped after a TX overflow (A629). |