vcan_xmission_mode¶
Here is the definition:
typedef enum
{ VCAN_MODE_READ=0, VCAN_MODE_WRITE=1, VCAN_MODE_RTR_READ=2,
VCAN_MODE_RTR_WRITE=3,
VCAN_MODE_MONITOR=4, VCAN_MODE_SERIAL=5, VCAN_MODE_FREE=6
} vcan_xmission_mode;
This type defines several constants that are used to specify the
transmission mode of a single CAN object. Only the vcan_object_mode
sub-structure has a field of this type. Some of the modes should not be used
since the driver currently does not support the further handling of these
types, see below.
- VCAN_MODE_READ
This type defines a read-object. This object can only be used to read data from the CAN bus.
- VCAN_MODE_WRITE
This type defines a write-object. This object can only be used to write data to the CAN bus.
- VCAN_MODE_RTR_READ
This type defines a read-object that uses the CAN-specific remote-transmission mechanism. A remote-request frame is sent to the second CAN device, causing this device to send data from it’s CAN object.
- VCAN_MODE_RTR_WRITE
This type defines a write-object that uses the CAN-specific remote-transmission mechanism. Writing to this object does only store the data in the object’s data buffer on the VME-CAN2 card. The data is only written to the CAN bus when a remote-request frame is received. This actual writing is performed by the VME-CAN2 card without notifying the user-program.
- VCAN_MODE_MONITOR
This type defines a CAN-monitor object. Although an object of this type can be set up on the VME-CAN2 card, the driver does currently not support the handling of such an object. An object should not be set-up with this type.
- VCAN_MODE_SERIAL
This type defines a CAN-serial object. Although an object of this type can be set up on the VME-CAN2 card, the driver does currently not support the handling of such an object. An object should not be set-up with this type.
- VCAN_MODE_FREE
This is the type of a free object. This type is used to delete an object that was already defined.