This chapter describes the devctl() commands that apply to Controller Area Networks and the dev-can-* drivers.

These commands are used in Board Support Packages for targets that support CAN, and the details of some commands depend on the board; you can find additional information in src/hardware/can/board_name/board_namecan.readme in your BSP. The canctl utility provides a command-line interface to the CAN_DEVCTL_* commands.

You need to use some commands with the file descriptor for a specific receive or transmit mailbox (e.g., /dev/can1/tx3).