MX Foundation 4

Functions

uint32 mxfMIL1553ErrorInjectionCompose (uint64 id, uint64 param, uint16 *error)
 
uint32 mxfMIL1553ErrorInjectionSet (HMXF_CHANNEL channel, uint64 errorIndex, MXF_MIL1553_ERROR_INJ *error)
 
uint32 mxfMIL1553ErrorInjectionGet (HMXF_CHANNEL channel, uint64 errorIndex, MXF_MIL1553_ERROR_INJ *error)
 
uint32 mxfMIL1553ErrorInjectionCountGet (HMXF_CHANNEL channel, uint64 *errorCount)
 
uint32 mxfMIL1553CommandCompose (uint64 address, uint64 subAddress, uint64 dir, uint64 wordCount, uint16 *command)
 
uint32 mxfMIL1553CommandDecompose (uint16 command, uint64 *address, uint64 *subAddress, uint64 *dir, uint64 *wordCount)
 
uint32 mxfMIL1553ConditionalBranchCompose (uint64 option, uint64 wordIndex, uint16 *condition)
 
uint32 mxfMIL1553ConditionalBranchOnDiscreteCompose (uint64 option, uint16 *condition)
 
uint32 mxfMIL1553TxAperiodicWrite (HMXF_BUFFER buffer, uint64 options, uint64 startTime, uint64 count, MXF_MIL1553_DATAREC *rec)
 
uint32 mxfMIL1553TxPeriodicMajorFrameStart (HMXF_CHANNEL channel, uint64 majorIndex, uint64 duration, MXF_MIL1553_TXPERIODIC_MJRFRAME_PROPERTIES *properties)
 
uint32 mxfMIL1553TxPeriodicMajorFrameSet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 count, MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG *msg, MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES *properties)
 
uint32 mxfMIL1553TxPeriodicMajorFrameGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 maxCount, uint64 *count, MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG *msg, MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES *properties)
 
uint32 mxfMIL1553TxPeriodicUpdateMsgWrite (HMXF_BUFFER buffer, uint64 count, MXF_MIL1553_DATAREC *rec)
 
uint32 mxfMIL1553RxAcqMsgSelectGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553RxAcqMsgSelectSet (HMXF_BUFFER buffer, uint64 select, uint64 maxcount, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553RxAcqRead (HMXF_BUFFER buffer, uint64 maxRecCount, uint64 maxBytesCount, uint64 *status, uint64 *recCount, uint64 *bytesCount, MXF_MIL1553_DATAREC *rec)
 
uint32 mxfMIL1553RxSamplingExtEnableSet (HMXF_BUFFER buffer, uint64 state, uint64 count, uint64 *address)
 
uint32 mxfMIL1553RxSamplingExtEnableAllGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, uint64 *address)
 
uint32 mxfMIL1553RxSamplingMsgSelectSet (HMXF_BUFFER buffer, uint64 select, uint64 maxcount, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553RxSamplingMsgSelectGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553RxSamplingRead (HMXF_BUFFER buffer, uint64 flags, uint64 maxRecCount, uint64 maxBytesCount, uint64 *recCount, uint64 *byteCount, MXF_MIL1553_SAMPREC *rec)
 
uint32 mxfMIL1553RxSamplingSingleRead (HMXF_BUFFER buffer, uint64 flags, uint64 type, uint64 address, uint64 subaddress, MXF_MIL1553_SAMPREC *rec)
 
uint64 mxfMIL1553AsyncEventRxMsgSelectSet (HMXF_ASYNCEVENT asyncEvent, HMXF_CHANNEL channel, uint64 select, uint64 count, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553AsyncEventRxMsgSelectGet (HMXF_ASYNCEVENT asyncEvent, HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, MXF_MSGID_MIL1553 *msg)
 
uint32 mxfMIL1553StatisticErrorGlobalGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_ERROR_GLOBAL *stats)
 
uint32 mxfMIL1553StatisticErrorGlobalByAddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_ADDRESS *stats)
 
uint32 mxfMIL1553StatisticErrorGlobalBySubaddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_SUBADDRESS *stats)
 
uint32 mxfMIL1553StatisticErrorDetailsBySubaddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_ERROR_DETAILS_SUBADDRESS *stats)
 
uint32 mxfMIL1553StatisticTransactionGlobalGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_TRANSACTION_GLOBAL *stats)
 
uint32 mxfMIL1553StatisticTransactionGlobalByAddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_ADDRESS *stats)
 
uint32 mxfMIL1553StatisticTransactionGlobalBySubaddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_SUBADDRESS *stats)
 
uint32 mxfMIL1553StatisticTransactionDetailsBySubaddressGet (HMXF_CHANNEL channel, MXF_MIL1553_STAT_TRANSACTION_DETAILS_SUBADDRESS *stats)
 
uint32 mxfMIL1553NextDataRecordPtrGet (MXF_MIL1553_DATAREC *currentRec, MXF_MIL1553_DATAREC **nextRec)
 
uint32 mxfMIL1553NextSamplingRecordPtrGet (MXF_MIL1553_SAMPREC *currentRec, MXF_MIL1553_SAMPREC **nextRec)
 
uint32 mxfMIL1553DataRecordDecompose (HMXF_CHANNEL channel, uint64 count, MXF_MIL1553_DATAREC *data, MXF_MIL1553_MSGINFO *msginfo)
 
uint32 mxfMIL1553SamplingRecordDecompose (HMXF_CHANNEL channel, uint64 count, MXF_MIL1553_SAMPREC *data, MXF_MIL1553_MSGINFO *msginfo)
 
uint32 mxfMIL1553MsgChecksumEnableSet (HMXF_CHANNEL channel, uint64 type, uint64 address, uint64 subaddress, uint64 value)
 
uint32 mxfMIL1553MsgChecksumEnableGet (HMXF_CHANNEL channel, uint64 type, uint64 address, uint64 subaddress, uint64 *value)
 
uint32 mxfMIL1553RtSubsystemEnableSet (HMXF_CHANNEL channel, uint64 type, uint64 subaddress, uint64 bus, HMXF_BUFFER buffer)
 
uint32 mxfMIL1553RtSubsystemEnableGet (HMXF_CHANNEL channel, uint64 type, uint64 subaddress, uint64 *bus, HMXF_BUFFER *buffer)
 
uint32 mxfMIL1553RtEnableSet (HMXF_CHANNEL channel, uint64 enable)
 
uint32 mxfMIL1553RtEnableGet (HMXF_CHANNEL channel, uint64 *enable)
 
uint32 mxfMIL1553EmbeddedNVStorageFileMsgSelectSet (HMXF_CHANNEL channel, uint64 select, uint64 count, MXF_MSGID_MIL1553 *msgid)
 
uint32 mxfMIL1553EmbeddedNVStorageFileMsgSelectGet (HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, MXF_MSGID_MIL1553 *msgid)
 
uint32 mxfMIL1553EmbeddedNVStorageFileMsgRead (HMXF_NVSTORAGE nvStorage, uint64 fileIndex, uint64 maxMsgCount, uint64 maxBytesCount, uint64 *msgCount, uint64 *byteCount, MXF_MIL1553_DATAREC *msg)
 
uint32 mxfMIL1553EmbeddedNVStorageFileMsgWrite (HMXF_NVSTORAGE nvStorage, uint64 fileIndex, uint64 maxMsgCount, MXF_MIL1553_DATAREC *msg, uint64 *count)
 
uint32 mxfMIL1553RtsHybridRevSet (HMXF_CHANNEL channel, uint64 rev)
 
uint32 mxfMIL1553RtsHybridRevGet (HMXF_CHANNEL channel, uint64 *rev)
 

Detailed Description

Function Documentation

uint32 mxfMIL1553ErrorInjectionCompose ( uint64  id,
uint64  param,
uint16 *  error 
)
C#
public static extern UInt32 mxfMIL1553ErrorInjectionCompose(UInt64 id, UInt64 param, out UInt16 error);

Helps to generate the errors field of MXF_MIL1553_ERROR_INJ.

Parameters
[in]iderror injection ID.
[in]paramparameter for the error injection.
[out]errorpointer to the error in the errors array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ErrorInjectionSet()
Examples:
mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553ErrorInjectionSet ( HMXF_CHANNEL  channel,
uint64  errorIndex,
MXF_MIL1553_ERROR_INJ error 
)
C#
public static extern UInt32 mxfMIL1553ErrorInjectionSet(UInt64 channel, UInt64 errorIndex, ref MXF_MIL1553_ERROR_INJ error);

Updates the specified error injection structure. By default, all errors are set to zero until this function is called.

Parameters
[in]channelChannel handle.
[in]errorIndexError index (0-99).
[in]errorError structure pointer.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ErrorInjectionGet()
Examples:
mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553ErrorInjectionGet ( HMXF_CHANNEL  channel,
uint64  errorIndex,
MXF_MIL1553_ERROR_INJ error 
)
C#
public static extern UInt32 mxfMIL1553ErrorInjectionGet(UInt64 channel, UInt64 errorIndex, out MXF_MIL1553_ERROR_INJ error);

Reads the specified error injection structure.

Parameters
[in]channelChannel handle.
[in]errorIndexError index (0-99).
[out]errorError structure pointer.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ErrorInjectionSet()
uint32 mxfMIL1553ErrorInjectionCountGet ( HMXF_CHANNEL  channel,
uint64 *  errorCount 
)
C#
public static extern UInt32 mxfMIL1553ErrorInjectionCountGet(UInt64 channel, out UInt64 errorCount);

Gets the maximum number of error injections that can be set.

Parameters
[in]channelChannel handle.
[out]errorCountnumber of error injections.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ErrorInjectionSet()
mxfMIL1553ErrorInjectionGet()
uint32 mxfMIL1553CommandCompose ( uint64  address,
uint64  subAddress,
uint64  dir,
uint64  wordCount,
uint16 *  command 
)
C#
public static extern UInt32 mxfMIL1553CommandCompose(UInt64 address, UInt64 subAddress, UInt64 dir, UInt64 wordCount, out UInt16 command);

Helps to generate the command field.

Parameters
[in]addresscommand address (0-31).
[in]subAddresscommand subaddress (0-31).
[in]dircommand direction (MXF_MIL1553_COMMAND_DIR_RX for RX command or MXF_MIL1553_COMMAND_DIR_TX for TX command).
[in]wordCountcommand word count (or mode command) (0-31).
[out]commandpointer to the returned command.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553CommandDecompose()
Examples:
mil1553_aperiodic.c, mil1553_aperiodic.cs, mil1553_aperiodic_event.c, mil1553_aperiodic_event.cs, mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_bm_acquisition_trigger.c, mil1553_bm_acquisition_trigger.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, mil1553_rtErrorInjections.cs, multi.c, and multi.cs.
uint32 mxfMIL1553CommandDecompose ( uint16  command,
uint64 *  address,
uint64 *  subAddress,
uint64 *  dir,
uint64 *  wordCount 
)
C#
public static extern UInt32 mxfMIL1553CommandDecompose(UInt16 command, out UInt64 address, out UInt64 subAddress, out UInt64 dir, out UInt64 wordCount);

Helps to decompose the command field.

Parameters
[in]commandcommand.
[out]addresspointer to address.
[out]subAddresspointer to subaddress.
[out]dirpointer to direction (MXF_MIL1553_COMMAND_DIR_RX for RX command or MXF_MIL1553_COMMAND_DIR_TX for TX command).
[out]wordCountpointer to word count (or mode command).
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553CommandCompose()
Examples:
mil1553_bc.c, mil1553_bc.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bm.c, mil1553_bm.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553ConditionalBranchCompose ( uint64  option,
uint64  wordIndex,
uint16 *  condition 
)
C#
public static extern UInt32 mxfMIL1553ConditionalBranchCompose(UInt64 option, UInt64 wordIndex, out UInt16 condition);

Helps to generate the conditional branch field (MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG.condBranch).

Parameters
[in]optionconditional branch option.
[in]wordIndexdata index (0-35).
[out]conditionpointer to conditional branch field.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ConditionalBranchOnDiscreteCompose()
Examples:
mil1553_cond_branch_1.c, and mil1553_cond_branch_1.cs.
uint32 mxfMIL1553ConditionalBranchOnDiscreteCompose ( uint64  option,
uint16 *  condition 
)
C#
public static extern UInt32 mxfMIL1553ConditionalBranchOnDiscreteCompose(UInt64 option, out UInt16 condition);

Helps to generate the conditional branch field (MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG.condBranch) that uses a discrete input.

Parameters
[in]optionconditional branch option
[out]conditionpointer to conditional branch field
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553ConditionalBranchCompose()
Examples:
mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_cond_branch_2.c, and mil1553_cond_branch_2.cs.
uint32 mxfMIL1553TxAperiodicWrite ( HMXF_BUFFER  buffer,
uint64  options,
uint64  startTime,
uint64  count,
MXF_MIL1553_DATAREC rec 
)
C#
public static extern UInt32 mxfMIL1553TxAperiodicWrite(UInt64 buffer, UInt64 options, UInt64 startTime, UInt64 count, IntPtr rec);

Sends aperiodic data record for transmission. The data items to be transmitted are specified within the records, along with a time tag and a control word. The first data item is transmitted at the specified starting time.

The records to transmit on time tag must be placed in chronological order in the array. The same time tag must not appear more than once in the array. When record absolute timing is used, the time tag of the first record should be at least 50 msec in advance to be relatively precise otherwise it will be sent as soon as possible.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfTxAperiodicWrite() function.
Parameters
[in]bufferbuffer handle.
[in]optionsoptions for controlling the transmitter before for sending the data records. The details of the options are explained below.
  • MXF_TXAPERIODIC_FLAG_DEFAULT
  • MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME
[in]startTimethis parameter is not used in MIL-STD-1553. It must be set to 0.
[in]countnumber of records to write
[in]recrecords to write. The records in the buffer need to be indexed using mxfMIL1553NextDataRecordPtrGet() function.


The options modify the transmission scheme as described below:

Examples:
mil1553_aperiodic.c, mil1553_aperiodic.cs, mil1553_aperiodic_event.c, mil1553_aperiodic_event.cs, mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_rt_rt.c, and mil1553_rt_rt.cs.
uint32 mxfMIL1553TxPeriodicMajorFrameStart ( HMXF_CHANNEL  channel,
uint64  majorIndex,
uint64  duration,
MXF_MIL1553_TXPERIODIC_MJRFRAME_PROPERTIES properties 
)
C#
public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameStart(UInt64 channel, UInt64 majorIndex, UInt64 duration, ref MXF_MIL1553_TXPERIODIC_MJRFRAME_PROPERTIES properties);

public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameStart(UInt64 channel, UInt64 majorIndex, UInt64 duration, IntPtr properties);

Starts the major frame.

If the major frame contains frame errors, erroneous frames will be ignored and others frames will be started.

The data of the major frame must be initialized using mxfMIL1553TxPeriodicUpdateMsgWrite() function.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfTxPeriodicMajorFrameStart() function.
Parameters
[in]channelchannel handle.
[in]majorIndexmajor frame index. Reserved for future use. Must be set to 0.
[in]durationdefault minor frame duration (50 to 6553575 microseconds in step of 25 microseconds). Expressed in timebase resolution. Minor frame duration can be overridden by each minor frame.

Example: Major frame with 2 minor frames (minor frame interval = 25000).
  • Minor frame #0 will be sent with a rate of 50 msec.
  • Minor frame #1 will be sent with a rate of 50 msec.
[in]propertiesaddress of a MXF_MIL1553_TXPERIODIC_MJRFRAME_PROPERTIES structure (optional). Pass NULL to use default major frame properties (uses a first minor index of 0, no start time, no stop time and no options).
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfTxPeriodicMajorFrameStart()
mxfModuleChannelAllGet()
mxfTxPeriodicMajorFrameStop()
mxfMIL1553TxPeriodicUpdateMsgWrite()
Examples:
mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.cs, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.cs, mil1553_manyErrorInjections.cs, mil1553_rtErrorInjections.cs, multi.c, and multi.cs.
uint32 mxfMIL1553TxPeriodicMajorFrameSet ( HMXF_CHANNEL  channel,
uint64  majorIndex,
uint64  minorIndex,
uint64  count,
MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG msg,
MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES properties 
)
C#
public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameSet(UInt64 channel, UInt64 majorIndex, UInt64 minorIndex, UInt64 count, MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG[] msg, IntPtr properties);

public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameSet(UInt64 channel, UInt64 majorIndex, UInt64 minorIndex, UInt64 count, MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG[] msg, ref MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES 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.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfTxPeriodicMajorFrameSet() function.
Parameters
[in]channelchannel handle.
[in]majorIndexmajor frame index. Reserved for future use. Must be set to 0.
[in]minorIndexminor frame index.
[in]countcount of messages in the minor frame.
[in]msgminor frame message structure pointer.
[in]propertiesminor frame properties pointer (optional). MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES for MIL-STD-1553. Pass NULL to ignore this parameter, the default minor frame properties will apply.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfTxPeriodicMajorFrameSet()
mxfMIL1553TxPeriodicMajorFrameStart()
mxfMIL1553TxPeriodicMajorFrameGet()
Examples:
mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rtErrorInjections.c, mil1553_rtErrorInjections.cs, multi.c, and multi.cs.
uint32 mxfMIL1553TxPeriodicMajorFrameGet ( HMXF_CHANNEL  channel,
uint64  majorIndex,
uint64  minorIndex,
uint64  maxCount,
uint64 *  count,
MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG msg,
MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES properties 
)
C#
public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameGet(UInt64 channel, UInt64 majorIndex, UInt64 minorIndex, UInt64 maxCount, out UInt64 count, [Out] MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG[] msg, IntPtr properties);

public static extern UInt32 mxfMIL1553TxPeriodicMajorFrameGet(UInt64 channel, UInt64 majorIndex, UInt64 minorIndex, UInt64 maxCount, out UInt64 count, [Out] MXF_MIL1553_TXPERIODIC_MJRFRAME_MSG[] msg, out MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES properties);

Reads the specified minor frame of the major frame.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfTxPeriodicMajorFrameGet() function.
Parameters
[in]channelchannel handle.
[in]majorIndexmajor frame index. Reserved for future use. Must be set to 0.
[in]minorIndexminor frame index.
[in]maxCountmaximum messages to read within the minor frame.
[out]countreturned messages count.
[out]msgminor frame messages pointer.
[out]propertiespointer to returned properties (optional). MXF_MIL1553_TXPERIODIC_MJRFRAME_MINOR_PROPERTIES for MIL-STD-1553. Pass NULL to ignore this parameter.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfTxPeriodicMajorFrameGet()
mxfMIL1553TxPeriodicMajorFrameSet()
uint32 mxfMIL1553TxPeriodicUpdateMsgWrite ( HMXF_BUFFER  buffer,
uint64  count,
MXF_MIL1553_DATAREC rec 
)
C#
public static extern UInt32 mxfMIL1553TxPeriodicUpdateMsgWrite(UInt64 buffer, UInt64 count, IntPtr rec);

Writes messages of the record array into the specified buffer. The last message of each buffer is sent forever until a new message is written into the buffer.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfTxPeriodicUpdateMsgWrite() function.
Parameters
[in]bufferbuffer handle.
[in]countcount of records to write.
[in]recarray of record(s) to write. The records in the buffer need to be indexed using mxfMIL1553NextDataRecordPtrGet() function.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfTxPeriodicUpdateMsgWrite()
mxfMIL1553TxPeriodicUpdateMsgBufferAlloc()
mxfTxPeriodicUpdateMsgBufferStatusGet()
mxfTxPeriodicUpdateMsgClear()
mxfMIL1553NextDataRecordPtrGet()
Examples:
mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553RxAcqMsgSelectGet ( HMXF_BUFFER  buffer,
uint64  maxCount,
uint64 *  count,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553RxAcqMsgSelectGet(UInt64 buffer, UInt64 maxCount, out UInt64 count, [Out] MXF_MSGID_MIL1553[] msg);

Returns the list of messages selected for acquisition.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxAcqMsgSelectGet() function.
Parameters
[in]bufferbuffer handle.
[in]maxCountmaximum number of labels in the array.
[out]countreturned number of messages in the msg array.
[out]msgaddress of the returned messages array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxAcqMsgSelectGet()
mxfRxAcqBufferAlloc()
mxfRxAcqBufferGet()
mxfMIL1553RxAcqMsgSelectSet()
uint32 mxfMIL1553RxAcqMsgSelectSet ( HMXF_BUFFER  buffer,
uint64  select,
uint64  maxcount,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553RxAcqMsgSelectSet(UInt64 buffer, UInt64 select, UInt64 maxcount, MXF_MSGID_MIL1553[] msg);

public static extern UInt32 mxfMIL1553RxAcqMsgSelectSet(UInt64 buffer, UInt64 select, UInt64 maxcount, IntPtr msg);

Selects or deselects the message(s) to be acquired on the specified acquisition buffer.

Upon data arrival, the embedded process will check if the received message is found in the current selection list. The receive data record will be added to the acquisition buffer only if the message is found in the selection list, otherwise it is discarded.

By default, after a device reset, no filtering is performed and all messages are received.

Note
count set to 0 with msg set to NULL means ALL messages.
This function is the specific version for MIL-1553 of the multi-protocol mxfRxAcqMsgSelectSet() function.
Parameters
[in]bufferbuffer handle.
[in]selectaction to perform with the message ID array.
Option Description
MXF_MSG_DESELECT Deselects the message ID.
MXF_MSG_SELECT_ADD Adds the specified message ID.
MXF_MSG_SELECT_ONLY Replaces the current selection with the provided list.
[in]maxcountnumber of entries in msg.
[in]msgaddress of array of messages
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxAcqMsgSelectSet()
mxfRxAcqBufferAlloc()
mxfRxAcqBufferGet()
mxfMIL1553RxAcqMsgSelectGet()
Examples:
mil1553_aperiodic_frame.c, and mil1553_aperiodic_frame.cs.
uint32 mxfMIL1553RxAcqRead ( HMXF_BUFFER  buffer,
uint64  maxRecCount,
uint64  maxBytesCount,
uint64 *  status,
uint64 *  recCount,
uint64 *  bytesCount,
MXF_MIL1553_DATAREC rec 
)
C#
public static extern UInt32 mxfMIL1553RxAcqRead(UInt64 buffer, UInt64 maxRecCount, UInt64 maxBytesCount, out UInt64 status, out UInt64 recCount, out UInt64 byteCount, IntPtr rec);

Transfers the records from the channel acquisition buffer to the calling application.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxAcqRead() function.
Parameters
[in]bufferbuffer handle.
[in]maxRecCountmaximum number records to read (0 means all messages).
[in]maxBytesCountmaximum number of bytes to be read.
[out]statuslast status set.
[out]recCountnumber of records returned.
[out]bytesCountnumber of bytes returned.
[out]recaddress of data records. The records in the buffer need to be indexed using mxfMIL1553NextDataRecordPtrGet() function.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxAcqRead()
mxfRxAcqStart()
mxfRxAcqBufferAlloc()
mxfRxAcqStop()
mxfMIL1553NextDataRecordPtrGet()
Examples:
mil1553_aperiodic.c, mil1553_aperiodic.cs, mil1553_aperiodic_event.c, mil1553_aperiodic_event.cs, mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_bm.c, mil1553_bm.cs, mil1553_bm_acquisition_trigger.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553RxSamplingExtEnableSet ( HMXF_BUFFER  buffer,
uint64  state,
uint64  count,
uint64 *  address 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingExtEnableSet(UInt64 buffer, UInt64 state, UInt64 count, UInt64[] address);

public static extern UInt32 mxfMIL1553RxSamplingExtEnableSet(UInt64 buffer, UInt64 state, UInt64 count, IntPtr address);

Enables or disables message discrimination using the type/subaddress. The message look-up table will have an entry for each message address/subaddress/type triplet.

Note
count set to 0 with address set to NULL means ALL addresses.
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingExtEnableSet() function.
Parameters
[in]bufferbuffer handle.
[in]stateextension filtering state.
  • VMXF_ENABLE: Enable extension filtering.
  • VMXF_DISABLE: Disable extension filtering.
[in]countnumber of entries in address. For BC and BM, a maximum of 32 addresses are available. For RT, only one address is available.
[in]addressaddress of array of addresses. For BC and BM, address between 0-31. For RT, the address must be set to 0.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingExtEnableSet()
mxfMIL1553RxSamplingExtEnableAllGet()
uint32 mxfMIL1553RxSamplingExtEnableAllGet ( HMXF_BUFFER  buffer,
uint64  maxCount,
uint64 *  count,
uint64 *  address 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingExtEnableAllGet(UInt64 buffer, UInt64 maxCount, out UInt64 count, UInt64[] address);

Returns the list of addresses that have message discrimination using the type/subaddress enabled.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingExtEnableAllGet() function.
Parameters
[in]bufferbuffer handle.
[in]maxCountmaximum number of entries in address.
[out]countnumber of entries in address.
[out]addressaddress array of addresses.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingExtEnableAllGet()
mxfMIL1553RxSamplingExtEnableSet()
uint32 mxfMIL1553RxSamplingMsgSelectSet ( HMXF_BUFFER  buffer,
uint64  select,
uint64  maxcount,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingMsgSelectSet(UInt64 buffer, UInt64 select, UInt64 maxcount, MXF_MSGID_MIL1553[] msg);

public static extern UInt32 mxfMIL1553RxSamplingMsgSelectSet(UInt64 buffer, UInt64 select, UInt64 maxcount, IntPtr msg);

Selects or deselects the message(s) to be received on the specified sampling buffer.

Upon data arrival, the embedded process check if the received message is defined in the current selection list. The receive data record will be added to the sampling buffer only if the message was added previously in the selection list, otherwise it is discarded.

By default, after a device reset, no filtering is performed and all messages are received.

Note
count set to 0 with msg set to NULL means ALL messages.
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingMsgSelectSet() function.
Parameters
[in]bufferbuffer handle.
[in]selectaction to perform with the message ID array.
Option Description
MXF_MSG_DESELECT Deselects the message ID.
MXF_MSG_SELECT_ADD Adds the specified message ID.
MXF_MSG_SELECT_ONLY Replaces the current selection with the provided list.
[in]maxcountcount of message ID in the array.
[in]msgaddress of array of message ID.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingMsgSelectSet()
mxfRxSamplingBufferAlloc()
mxfRxSamplingStart()
mxfMIL1553RxSamplingRead()
mxfMIL1553RxSamplingMsgSelectGet()
uint32 mxfMIL1553RxSamplingMsgSelectGet ( HMXF_BUFFER  buffer,
uint64  maxCount,
uint64 *  count,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingMsgSelectGet(UInt64 buffer, UInt64 maxcount, out UInt64 count, [Out] MXF_MSGID_MIL1553[] msg);

Returns the list of message ID(s) selected for sampling.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingMsgSelectGet() function.
Parameters
[in]bufferbuffer handle.
[in]maxCountmaximum number of message ID in the array msg.
[out]countreturned number of message ID in the msg array.
[out]msgaddress of the returned message ID array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingMsgSelectGet()
mxfRxSamplingBufferAlloc()
mxfRxSamplingStart()
mxfMIL1553RxSamplingRead()
mxfMIL1553RxSamplingMsgSelectSet()
uint32 mxfMIL1553RxSamplingRead ( HMXF_BUFFER  buffer,
uint64  flags,
uint64  maxRecCount,
uint64  maxBytesCount,
uint64 *  recCount,
uint64 *  byteCount,
MXF_MIL1553_SAMPREC rec 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingRead(UInt64 buffer, UInt64 flags, UInt64 maxRecCount, UInt64 maxBytesCount, out UInt64 recCount, out UInt64 byteCount, IntPtr rec);

Reads the sampling records from the sampling buffer to the application buffer.

The sampling process maintains records for all of the received labels. A label is considered received if corresponding data words were received within the kill-time period. A record refresh from the receive port resets the kill-time timer and an updated copy is made available to the application.

The sampling record contains information on the arrival rate and the number of errors, as well as the latest data received for that address.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingRead() function.
Parameters
[in]bufferbuffer handle.
[in]flagsoption flag.
Flags Description
MXF_RXSAMPLING_FLAG_DEFAULT The record is kept in the buffer and the same record can be read again by the current or another application.
MXF_RXSAMPLING_FLAG_ERASE_WHEN_READ After the sampling record is returned, it is removed from the buffer.
[in]maxRecCountmaximum number of messages to read (0 means all messages).
[in]maxBytesCountmaximum number of bytes to read.
[out]recCountnumber of messages returned.
[out]byteCountnumber of bytes returned.
[out]recarray of message record structure. The records in the buffer must be indexed by using mxfMIL1553NextSamplingRecordPtrGet() function.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingRead()
mxfRxSamplingBufferAlloc()
mxfMIL1553RxSamplingMsgSelectSet()
mxfRxSamplingStart()
mxfMIL1553NextSamplingRecordPtrGet()
Examples:
mil1553_bc_buserror_trigger.c, and mil1553_bc_buserror_trigger.cs.
uint32 mxfMIL1553RxSamplingSingleRead ( HMXF_BUFFER  buffer,
uint64  flags,
uint64  type,
uint64  address,
uint64  subaddress,
MXF_MIL1553_SAMPREC rec 
)
C#
public static extern UInt32 mxfMIL1553RxSamplingSingleRead(UInt64 buffer, UInt64 flags, UInt64 type, UInt64 address, UInt64 subAddress, out MXF_MIL1553_SAMPREC rec);

Reads a specific sampling record from the sampling buffer.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfRxSamplingSingleRead() function.
Parameters
[in]bufferbuffer handle.
[in]flagsoption flag.
Flags Description
MXF_RXSAMPLING_FLAG_DEFAULT The record is kept in the buffer and the same record can be read again by the current or another application.
MXF_RXSAMPLING_FLAG_ERASE_WHEN_READ After the sampling record is returned, it is removed from the buffer.
[in]typemessage type.
[in]addressmessage address.
[in]subaddressmessage subaddress.
[out]recaddress of sampling record.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfRxSamplingSingleRead()
mxfRxSamplingBufferAlloc()
mxfMIL1553RxSamplingMsgSelectSet()
mxfRxSamplingStart()
mxfRxSamplingStop()
uint64 mxfMIL1553AsyncEventRxMsgSelectSet ( HMXF_ASYNCEVENT  asyncEvent,
HMXF_CHANNEL  channel,
uint64  select,
uint64  count,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553AsyncEventRxMsgSelectSet(UInt64 asyncEvent, UInt64 channel, UInt64 select, UInt64 count, MXF_MSGID_MIL1553[] msg);

public static extern UInt32 mxfMIL1553AsyncEventRxMsgSelectSet(UInt64 asyncEvent, UInt64 channel, UInt64 select, UInt64 count, IntPtr msg);

Selects or deselects the message id for MXF_ASYNCEVENT_COND_RX_MSG condition on a specified RX channel.

The function must be called in addition to the mxfAsyncEventConditionsSet() function with MXF_ASYNCEVENT_COND_RX_MSG condition to cause an asynchronous event to occur when a specific message is received.

The message selection must be made by only one asynchronous event routine for a specific channel. Otherwise, an error code will be returned while conditions of other asynchronous event routines are present.

In this case, you must disable the MXF_ASYNCEVENT_COND_RX_MSG condition using mxfAsyncEventConditionsSet() function using another asynchronous event handle.

Note
count set to 0 with msg set to NULL means ALL messages.
This function is the specific version for MIL-1553 of the multi-protocol mxfAsyncEventRxMsgSelectSet() function.
Parameters
[in]asyncEventasynchronous event handle.
[in]channelchannel handle.
[in]selectaction to perform for the message ID.
Action Description
MXF_MSG_DESELECT Deselects the messages id.
MXF_MSG_SELECT_ADD Adds the specified messages id.
MXF_MSG_SELECT_ONLY Replaces the current selection with the provided list.
[in]countcount of messages id.
[in]msgaddress of array of message id.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfAsyncEventRxMsgSelectSet()
mxfAsyncEventHandlerInit()
mxfMIL1553AsyncEventRxMsgSelectGet()
mxfAsyncEventConditionsSet()
uint32 mxfMIL1553AsyncEventRxMsgSelectGet ( HMXF_ASYNCEVENT  asyncEvent,
HMXF_CHANNEL  channel,
uint64  maxCount,
uint64 *  count,
MXF_MSGID_MIL1553 msg 
)
C#
public static extern UInt32 mxfMIL1553AsyncEventRxMsgSelectGet(UInt64 asyncEvent, UInt64 channel, UInt64 maxCount, out UInt64 count, [Out] MXF_MSGID_MIL1553[] msg);

Returns the list of message IDs registered for a specified RX channel for MXF_ASYNCEVENT_COND_RX_MSG asynchronous event condition ID.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfAsyncEventRxMsgSelectGet() function.
Parameters
[in]asyncEventasynchronous event handle.
[in]channelchannel handle.
[in]maxCountmaximum messages ID expected.
[out]countnumber of messages ID returned.
[out]msgreturned message ID array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfAsyncEventRxMsgSelectGet()
mxfAsyncEventHandlerInit()
mxfMIL1553AsyncEventRxMsgSelectSet()
mxfAsyncEventConditionsSet()
uint32 mxfMIL1553StatisticErrorGlobalGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_ERROR_GLOBAL stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticErrorGlobalGet(UInt64 channel, out MXF_MIL1553_STAT_ERROR_GLOBAL stats);

Returns the global error statistics for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
Examples:
mil1553_errors.c, and mil1553_errors.cs.
uint32 mxfMIL1553StatisticErrorGlobalByAddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_ADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticErrorGlobalByAddressGet(UInt64 channel, out MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_ADDRESS stats);

Returns the error statistics by address for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553StatisticErrorGlobalBySubaddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_SUBADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticErrorGlobalBySubaddressGet(UInt64 channel, out MXF_MIL1553_STAT_ERROR_GLOBAL_ALL_SUBADDRESS stats);

Returns the error statistics by subaddress for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553StatisticErrorDetailsBySubaddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_ERROR_DETAILS_SUBADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticErrorDetailsBySubaddressGet(UInt64 channel, ref MXF_MIL1553_STAT_ERROR_DETAILS_SUBADDRESS stats);

Returns the detailed error statistics by subaddress for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553StatisticTransactionGlobalGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_TRANSACTION_GLOBAL stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticTransactionGlobalGet(UInt64 channel, out MXF_MIL1553_STAT_TRANSACTION_GLOBAL stats);

Returns the global transaction statistics for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
Examples:
mil1553_errors.c, and mil1553_errors.cs.
uint32 mxfMIL1553StatisticTransactionGlobalByAddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_ADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticTransactionGlobalByAddressGet(UInt64 channel, out MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_ADDRESS stats);

Returns the transaction statistics by address for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553StatisticTransactionGlobalBySubaddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_SUBADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticTransactionGlobalBySubaddressGet(UInt64 channel, ref MXF_MIL1553_STAT_TRANSACTION_GLOBAL_ALL_SUBADDRESS stats);

Returns the transaction statistics by subaddress for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553StatisticTransactionDetailsBySubaddressGet ( HMXF_CHANNEL  channel,
MXF_MIL1553_STAT_TRANSACTION_DETAILS_SUBADDRESS stats 
)
C#
public static extern UInt32 mxfMIL1553StatisticTransactionDetailsBySubaddressGet(UInt64 channel, ref MXF_MIL1553_STAT_TRANSACTION_DETAILS_SUBADDRESS stats);

Returns the detailed transaction statistics by subaddress for the specified channel.

Note
Supported on MIL1553 Enhanced only.
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelStatisticGet() function.
Parameters
[in]channelchannel handle.
[out]statspointer to statistical structure returned.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelStatisticGet()
mxfModuleChannelAllGet()
mxfChannelStatisticEnableSet()
mxfChannelStatisticReset()
mxfChannelStatisticEnableGet()
uint32 mxfMIL1553NextDataRecordPtrGet ( MXF_MIL1553_DATAREC currentRec,
MXF_MIL1553_DATAREC **  nextRec 
)
C#
public static extern UInt32 mxfMIL1553NextDataRecordPtrGet(IntPtr currentRec, out IntPtr nextRec);

Returns the next buffer address in a MXF_MIL1553_DATAREC buffer array.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfNextRecordPtrGet() function.
Parameters
[in]currentRecpointer to the beginning or the current record in the buffer.
[out]nextRecpointer to next record in the buffer.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfNextRecordPtrGet()
mxfMIL1553RxAcqRead()
mxfMIL1553TxAperiodicWrite()
mxfMIL1553TxPeriodicUpdateMsgWrite()
mxfMIL1553NextSamplingRecordPtrGet()
Examples:
mil1553_aperiodic.c, mil1553_aperiodic.cs, mil1553_aperiodic_event.c, mil1553_aperiodic_event.cs, mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc.c, mil1553_bc.cs, mil1553_bc_buserror_trigger.c, mil1553_bc_buserror_trigger.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_bm.c, mil1553_bm.cs, mil1553_bm_acquisition_trigger.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_embedded_async_to_1553.c, mil1553_embedded_update_embedded.c, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, mil1553_rtErrorInjections.cs, multi.c, and multi.cs.
uint32 mxfMIL1553NextSamplingRecordPtrGet ( MXF_MIL1553_SAMPREC currentRec,
MXF_MIL1553_SAMPREC **  nextRec 
)
C#
public static extern UInt32 mxfMIL1553NextSamplingRecordPtrGet(IntPtr currentRec, out IntPtr nextRec);

Returns the next buffer address in a MXF_MIL1553_SAMPREC buffer array.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfNextRecordPtrGet() function.
Parameters
[in]currentRecpointer to the beginning or the current record in the buffer.
[out]nextRecpointer to next record in the buffer.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfNextRecordPtrGet()
mxfMIL1553RxSamplingRead()
mxfMIL1553NextDataRecordPtrGet()
Examples:
mil1553_bc_buserror_trigger.c, and mil1553_bc_buserror_trigger.cs.
uint32 mxfMIL1553DataRecordDecompose ( HMXF_CHANNEL  channel,
uint64  count,
MXF_MIL1553_DATAREC data,
MXF_MIL1553_MSGINFO msginfo 
)
C#
public static extern UInt32 mxfMIL1553DataRecordDecompose(UInt64 channel, UInt64 count, MXF_MIL1553_DATAREC[] data, [Out] MXF_MIL1553_MSGINFO[] msginfo);

Decomposes received messages from the acquisition service.

This function may be used with records coming from message monitor mode only.

Parameters
[in]channelchannel handle.
[in]countNumber of record in the records array.
[in]dataRecords array to decompose.
[out]msginfoDecomposed message array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553RxAcqRead()
Examples:
mil1553_bc.c, mil1553_bc.cs, mil1553_bc_dual_major_frame.c, mil1553_bc_dual_major_frame.cs, mil1553_bc_extclock.c, mil1553_bc_extclock.cs, mil1553_bm.c, mil1553_bm.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_cond_branch_2.c, mil1553_cond_branch_2.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553SamplingRecordDecompose ( HMXF_CHANNEL  channel,
uint64  count,
MXF_MIL1553_SAMPREC data,
MXF_MIL1553_MSGINFO msginfo 
)
C#
public static extern UInt32 mxfMIL1553SamplingRecordDecompose(UInt64 channel, UInt64 count, MXF_MIL1553_SAMPREC[] data, [Out] MXF_MIL1553_MSGINFO[] msginfo);

Decomposes received messages from the sampling service.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfChannelMsgDecompose() function.
Parameters
[in]channelchannel handle.
[in]countNumber of record in the records array.
[in]dataRecords array to decompose.
[out]msginfoDecomposed message array.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfChannelMsgDecompose()
mxfMIL1553RxSamplingRead()
mxfMIL1553RxSamplingSingleRead()
uint32 mxfMIL1553MsgChecksumEnableSet ( HMXF_CHANNEL  channel,
uint64  type,
uint64  address,
uint64  subaddress,
uint64  value 
)
C#
public static extern UInt32 mxfMIL1553MsgChecksumEnableSet(UInt64 channel, UInt64 type, UInt64 address, UInt64 subAddress, UInt64 value);

Sets the checksum of the specified message defined on a channel. Available only on channel with MIL-STD-1760 option.

Parameters
[in]channelchannel handle.
[in]typemessage type.
[in]addressmessage address.
[in]subaddressmessage subaddress.
[in]valuevalue to set.
Constant Description
VMXF_ENABLE Enable checksum
VMXF_DISABLE Disable checksum
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553MsgChecksumEnableGet()
Examples:
mil1553_aperiodic_frame.c, and mil1553_aperiodic_frame.cs.
uint32 mxfMIL1553MsgChecksumEnableGet ( HMXF_CHANNEL  channel,
uint64  type,
uint64  address,
uint64  subaddress,
uint64 *  value 
)
C#
public static extern UInt32 mxfMIL1553MsgChecksumEnableGet(UInt64 channel, UInt64 type, UInt64 address, UInt64 subAddress, out UInt64 value);

This function returns the checksum enable state of the specified message defined on a channel. Available only on channel with MIL-STD-1760 option.

Parameters
[in]channelchannel handle.
[in]typemessage type.
[in]addressmessage address.
[in]subaddressmessage subaddress.
[out]valuepointer to returned value.
Constant Description
VMXF_ENABLE Checksum enabled
VMXF_DISABLE Checksum disabled
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553MsgChecksumEnableSet()
uint32 mxfMIL1553RtSubsystemEnableSet ( HMXF_CHANNEL  channel,
uint64  type,
uint64  subaddress,
uint64  bus,
HMXF_BUFFER  buffer 
)
C#
public static extern UInt32 mxfMIL1553RtSubsystemEnableSet(UInt64 channel, UInt64 type, UInt64 subAddress, UInt64 bus, UInt64 buffer);

Enables or disables buses of a message on MIL-STD-1553 RT channel and associates it to a buffer. To disable the message, use zero (0) as parameter value for bus and buffer.

Parameters
[in]channelchannel handle.
[in]typemessage type.
Message type Description
MXF_MIL1553_MSGTYPE_RX Rx Message
MXF_MIL1553_MSGTYPE_TX Tx Message
MXF_MIL1553_MSGTYPE_MODECODE Mode command message
[in]subaddressmessage subaddress (0-31).
[in]busspecifies which bus to enable. 0 to disable both buses.
Bus bitmask Description
MXF_MIL1553_BUS_A Bus A
MXF_MIL1553_BUS_B Bus B
[in]bufferbuffer to link RT message to.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553RtSubsystemEnableGet()
mxfMIL1553RtEnableSet()
mxfMIL1553RtEnableGet()
Examples:
mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553RtSubsystemEnableGet ( HMXF_CHANNEL  channel,
uint64  type,
uint64  subaddress,
uint64 *  bus,
HMXF_BUFFER *  buffer 
)
C#
public static extern UInt32 mxfMIL1553RtSubsystemEnableGet(UInt64 channel, UInt64 type, UInt64 subAddress, out UInt64 bus, out UInt64 buffer);

Get enable/disable state of buses of a message on MIL-STD-1553 RT channel and the buffer associated with it.

Parameters
[in]channelchannel handle.
[in]typemessage type.
Message type Description
MXF_MIL1553_MSGTYPE_RX Rx Message
MXF_MIL1553_MSGTYPE_TX Tx Message
MXF_MIL1553_MSGTYPE_MODECODE Mode command message
[in]subaddressmessage subaddress (0-31).
[out]busspecifies which bus is enabled.
Bus bitmask Description
MXF_MIL1553_BUS_A Bus A
MXF_MIL1553_BUS_B Bus B
[out]bufferbuffer RT message is linked to.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553RtSubsystemEnableSet()
mxfMIL1553RtEnableSet()
mxfMIL1553RtEnableGet()
uint32 mxfMIL1553RtEnableSet ( HMXF_CHANNEL  channel,
uint64  enable 
)
C#
public static extern UInt32 mxfMIL1553RtEnableSet(UInt64 channel, UInt64 enable);

Enables or disables MIL-STD-1553 RT channel.

Note
In MIL-STD-1553 B, RT31 must be enabled with this function for the broadcast bit to be set in the RT status.
Parameters
[in]channelchannel handle.
[in]enableTRUE to enable RT channel, FALSE to disable it.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553RtEnableGet()
mxfMIL1553RtSubsystemEnableSet()
mxfMIL1553RtSubsystemEnableGet()
Examples:
mil1553_aperiodic_frame.c, mil1553_aperiodic_frame.cs, mil1553_bc_rt_data_assignment.c, mil1553_bc_rt_data_assignment.cs, mil1553_cond_branch_1.c, mil1553_cond_branch_1.cs, mil1553_ebr.c, mil1553_ebr.cs, mil1553_errors.c, mil1553_errors.cs, mil1553_manyErrorInjections.c, mil1553_manyErrorInjections.cs, mil1553_rt.c, mil1553_rt.cs, mil1553_rt_rt.c, mil1553_rt_rt.cs, mil1553_rtErrorInjections.c, and mil1553_rtErrorInjections.cs.
uint32 mxfMIL1553RtEnableGet ( HMXF_CHANNEL  channel,
uint64 *  enable 
)
C#
public static extern UInt32 mxfMIL1553RtEnableGet(UInt64 channel, out UInt64 enable);

Gets enable state of an MIL-STD-1553 RT channel.

Parameters
[in]channelchannel handle.
[out]enableTRUE when RT channel is enabled, FALSE when it is disabled.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfMIL1553RtEnableSet()
mxfMIL1553RtSubsystemEnableSet()
mxfMIL1553RtSubsystemEnableGet()
uint32 mxfMIL1553EmbeddedNVStorageFileMsgSelectSet ( HMXF_CHANNEL  channel,
uint64  select,
uint64  count,
MXF_MSGID_MIL1553 msgid 
)
C#
public static extern UInt32 mxfMIL1553EmbeddedNVStorageFileMsgSelectSet(UInt64 channel, UInt64 select, UInt64 count, MXF_MSGID_MIL1553[] msgid);

public static extern UInt32 mxfMIL1553EmbeddedNVStorageFileMsgSelectSet(UInt64 channel, UInt64 select, UInt64 count, IntPtr msgid);

Selects / deselects the specified message IDs on a channel for automatic embedded non-volatile storage recording.

Note
This function should be called before the function mxfEmbeddedNVStorageFileMsgSelectEnableSet() that starts the logging of messages on file for the specific channel.
count set to 0 with a msg set to NULL means ALL message IDs.
This function is the specific version for MIL1553 of the multi-protocol mxfEmbeddedNVStorageFileMsgSelectSet() function.
Parameters
[in]channelchannel handle
[in]selectaction to perform with the provided selection list
Action Description
MXF_MSG_DESELECT Deselects the messages
MXF_MSG_SELECT_ADD Adds the specified messages
MXF_MSG_SELECT_ONLY Replaces the current selection with the provided list
[in]countcount of messages
[in]msgidpointer to an array of message identifiers.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfModuleChannelAllGet()
mxfEmbeddedNVStorageHandleGet()
mxfEmbeddedNVStorageFileMsgSelectEnableSet()
mxfEmbeddedNVStorageFileMsgSelectGet()
uint32 mxfMIL1553EmbeddedNVStorageFileMsgSelectGet ( HMXF_CHANNEL  channel,
uint64  maxCount,
uint64 *  count,
MXF_MSGID_MIL1553 msgid 
)
C#
public static extern UInt32 mxfMIL1553EmbeddedNVStorageFileMsgSelectGet(UInt64 channel, UInt64 maxCount, out UInt64 count, [Out] MXF_MSGID_MIL1553[] msgid);

Returns the specific message IDs registered on a channel for automatic embedded non-volatile storage recording.

Note
This function is the specific version for MIL1553 of the multi-protocol mxfEmbeddedNVStorageFileMsgSelectGet() function.
Parameters
[in]channelchannel handle.
[in]maxCountmaximum count of messages return in the array
[out]countcount of messages returned
[out]msgidpointer to an array of message identifiers.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfModuleChannelAllGet()
mxfEmbeddedNVStorageHandleGet()
mxfEmbeddedNVStorageFileMsgSelectSet()
mxfEmbeddedNVStorageFileMsgSelectEnableSet()
uint32 mxfMIL1553EmbeddedNVStorageFileMsgRead ( HMXF_NVSTORAGE  nvStorage,
uint64  fileIndex,
uint64  maxMsgCount,
uint64  maxBytesCount,
uint64 *  msgCount,
uint64 *  byteCount,
MXF_MIL1553_DATAREC msg 
)
C#
public static extern UInt32 mxfMIL1553EmbeddedNVStorageFileMsgRead(UInt64 storage, UInt64 fileIndex, UInt64 maxRecCount, UInt64 maxBytesCount, out UInt64 recCount, out UInt64 bytesCount, IntPtr rec);

Reads the records from a specific file. The messages format must be of type MXF_EMBEDDED_NVSTORAGE_MSGTYPE_MIL1553.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfEmbeddedNVStorageFileMsgRead() function.
Parameters
[in]nvStoragenon-volatile storage handle
[in]fileIndexfile index
[in]maxMsgCountmaximum number of messages that can be returned
[in]maxBytesCountmaximum byte count that can be returned
[out]msgCountcount of messages returned
[out]byteCountnumber of bytes returned in the msg buffer
[out]msgpointer to read buffer containing messages. The records in the buffer need to be indexed using the mxfMIL1553NextDataRecordPtrGet() function.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfEmbeddedNVStorageHandleGet()
mxfEmbeddedNVStorageFileStatusGet()
uint32 mxfMIL1553EmbeddedNVStorageFileMsgWrite ( HMXF_NVSTORAGE  nvStorage,
uint64  fileIndex,
uint64  maxMsgCount,
MXF_MIL1553_DATAREC msg,
uint64 *  count 
)
C#
public static extern UInt32 mxfMIL1553EmbeddedNVStorageFileMsgWrite(UInt64 storage, UInt64 fileIndex, UInt64 maxRecCount, IntPtr rec, out UInt64 recCount);

Writes messages to the specified file. The messages format must be of type MXF_EMBEDDED_NVSTORAGE_MSGTYPE_MIL1553.

Note
This function is the specific version for MIL-1553 of the multi-protocol mxfEmbeddedNVStorageFileMsgWrite() function.
Parameters
[in]nvStoragenon-volatile storage handle
[in]fileIndexfile index
[in]maxMsgCountmaximum number of messages to write
[in]msgpointer to messages to write. The records in the buffer need to be indexed using mxfMIL1553NextDataRecordPtrGet() function.
[out]countnumber of messages actually written
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.0 and later.
See also
mxfEmbeddedNVStorageHandleGet()
mxfEmbeddedNVStorageFileStatusGet()
uint32 mxfMIL1553RtsHybridRevSet ( HMXF_CHANNEL  channel,
uint64  rev 
)
C#
public static extern UInt32 mxfMIL1553RtsHybridRevSet(UInt64 channel, UInt64 rev);

Sets the revision (MIL1553A or MIL1553B) for the RTs on a hybrid mode bus.

Note
It is the responsibility of the bus controller to use a legal BC list.
Parameters
[in]channelchannel handle (MIL1553 BC, BM or RT).
[in]rev32-bit mask, 1-bit for each possible RT on the bus (bit 0: RT0, bit 1: RT1, ...). Bit to set 0 for MIL1553B, bit set to 1 for MIL1553A.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.5.1 and later.
See also
mxfMIL1553RtsHybridRevGet()
KMXF_MIL1553_MILSTD1553_REV
Examples:
mil1553_aperiodic.c, and mil1553_aperiodic.cs.
uint32 mxfMIL1553RtsHybridRevGet ( HMXF_CHANNEL  channel,
uint64 *  rev 
)
C#
public static extern UInt32 mxfMIL1553RtsHybridRevGet(UInt64 channel, out UInt64 rev);

Gets the revision (MIL1553A or MIL1553B) for the RTs on a hybrid mode bus.

Parameters
[in]channelchannel handle (MIL1553 BC, BM or RT).
[out]rev32-bit mask, 1-bit for each possible RT on the bus (bit 0: RT0, bit 1: RT1, ...). Bit to set 0 for MIL1553B, bit set to 1 for MIL1553A.
Returns
MAXT_SUCCESS is returned when the function has succeeded.
Refer to mxf_error.h for a list of defined errors.
Call mxfSystemErrorStringGet() to transform the return code into a text string.
Availability:
Available in MX Foundation 4.5.1 and later.
See also
mxfMIL1553RtsHybridRevSet()
KMXF_MIL1553_MILSTD1553_REV
Updated 03/30/2022