MX Foundation 4
|
Accessing a physical ARINC 708 channel requires a handle to the channel.
A channel handle is a reference to a channel holding a physical resource (port). The channel handle is the first argument to be passed to many MXF channel oriented function.
To get the handle to an ARINC 708 physical port regardless of the installed devices, use the mxfModuleChannelGet() function by specifying the physical port index.
You can also use the mxfModuleChannelAllGet() function with the chnClass
argument MXF_CLASS_A708
.
If MXF_DEVICE_ALL
is specified with mxfSystemDeviceAllGet() function, all handles of detected devices are returned.
The ARINC 708 module shares physical resources with MIL-STD-1553. ARINC 708 is by default configured to be deactivated and it is the MIL-STD-1553 channel that has access control to the bus. To be able to use the ARINC 708 module, it is necessary to activate the ARINC 708 module with KMXF_A708_MODULE_ACTIVE which must be used with mxfAttributeUint64Set(). Thus, MIL-STD-1553 and ARINC 708 can never be used at the same time. The following code shows how to use this attribute :