MX Foundation 4
Attributes

ARINC 708 parameters such as module active and loopback mode can be read or modified using the mxfAttributeUint64Get(), mxfAttributeDoubleGet(), mxfAttributeUint64Set() and mxfAttributeDoubleSet() functions, passing the handle (device, module or channel) and attribute key-value pair.

See the section Attributes Reference for a description of all supported attributes.

Some other utility functions are used for getting more information about attributes:

The following code shows how to enable an ARINC 708 channel loopback.

{
MXF_ATTRIBUTE_INFO_UINT64_DETAILS info; // Attribute detail structure
HMXF_SERVER server; // Server handle
HMXF_DEVICE device; // Device handle
HMXF_MODULE module; // Module handle
HMXF_CHANNEL rx; // Channel handle
uint64 deviceIdx = 0; // Device index #0
uint64 moduleType = MXF_MODULE_A708_EH; // ARINC 708 module
uint64 chnClass = MXF_CLASS_A708; // ARINC 708
uint64 subClass = MXF_SCLASS_RX_CHANNEL; // Receiver
uint64 moduleCount = 0;
uint64 channelCount = 0;
uint32 rc;
//Connects to the server
rc=mxfServerConnect("0.0.0.0", "", "", 0, &server);
//MXF initialization
if (!rc)
rc = mxfSystemInit(server);
//Obtains the first device handle
if(!rc)
rc = mxfSystemDeviceGet(server, deviceIdx, &device);
//Obtains the first module handle
if(!rc)
rc = mxfDeviceModuleAllGet(device, moduleType, 1, &moduleCount, &module);
//Obtains channel handle
if(!rc && moduleCount)
rc = mxfModuleChannelAllGet(module, chnClass, subClass, 1, &channelCount, &rx);
//Activates LB for the RX ARINC 708 channel
if(!rc && channelCount)
rc = mxfAttributeUint64Set(rx, KMXF_A708_TX_RX_TEST_LB, VMXF_ENABLE);
}
Updated 10/23/2023