Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Driver Layer

The driver must contain the following functions:

XXX_

...

InitINITIALIZE CAN CONTROLLER
XXX_

...

OpenLOCK A CAN CONTROLLER DEVICE
XXX_

...

CloseRELEASE A CAN CONTROLLER DEVICE
XXX_

...

IoCtlCONTROL THE CAN CONTROLLER DEVICE
XXX_

...

ReadREAD DATA FROM A CAN CONTROLLER DEVICE
XXX_

...

WriteWRITE DATA TO A CAN CONTROLLER DEVICE

Where XXX is the exact chip identification.

Examples

...

A device driver for an external SJA1000 chip, the init function is labeled SJA1000_Init

...

(Note: the three CAN controllers within the chip are addressed via the device name. Details are described later in this chapter).End