vcan_initdata¶
Here is the definition:
typedef struct
{ long bitrate CDEP_NOALIGN_ATTR;
/* an integer, the bitrate is specified in Kbit/s, it may range
from 1000 to 5, currently supported bitrates:
1000, 666.6, 500, 333.3, 250, 166, 125, 100, 66.6, 50, 33.3,
20, 12.5, 10, 5
if bitrate doesn't match one of these numbers, the next higher,
valid bitrate is taken, the (integer-part) of the actual
bitrate is written back to this parameter */
long port CDEP_NOALIGN_ATTR;
} vcan_initdata;
This is the driver-call-sub-structure that is used to initialize the
VME-CAN2 card. It is used in conjunction with the VCAN_INIT
sub-function.
- bitrate
This is the bitrate that is set for the port. This field is an integer, the number may range from 5 to 1000. The unit for this field is kBits/second. The following bitrates are currently supported: 1000, 666.6, 500, 333.3, 250, 166, 125, 100, 66.6, 50, 33.3, 20, 12.5, 10, 5. If bitrate doesn’t match one of these numbers, the next higher, valid bitrate is taken. The (integer-part) of the actual bitrate is written back to this field.
- port
The number of the port that is to be initialized.