MX Foundation 4
|
Accessing a physical CAN 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 functions.
To get the handle to an CAN physical port regardless of the installed devices, the mxfModuleChannelGet() function may be used by specifying the physical port index.
Alternatively, it is possible to use the mxfModuleChannelAllGet() function with the chnClass
argument MXF_CLASS_CANBUS
.
If MXF_DEVICE_ALL
is specified with mxfSystemDeviceAllGet() function, all handles of detected devices are returned.