MX Foundation 4
|
CAN bus parameters such as bus speed and bus state can be read or modified using specific CAN bus functions:
Other attributes, like FIFO aging timeout or threshold 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;
Returns the name, type and property of an attribute.
Gets the scope of an attribute; min/max values, resolution.
Returns the attribute list of the specified handle (device, module or channel).
Returns the number of attributes related to a specific handle (device, module or channel).
The following code shows how to configure an CAN channel speed at 500Kbps and enabled it.