This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CANFD_MAX_DLC

Max data length code in CAN frames

Type: int

Help

Maximum allowed DLC in a CAN frame. This parameter sets the
data buffer size in a CAN frame and is therefore only used to
optimize memory consumption.

Direct dependencies

CAN_FD_MODE && CAN

(Includes any dependencies from ifs and menus.)

Default

  • 15

Kconfig definition

At drivers/can/Kconfig:46

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:80

Menu path: (Top) → Device Drivers → CAN Drivers → CAN-FD

config CANFD_MAX_DLC
    int "Max data length code in CAN frames"
    range 8 15
    default 15
    depends on CAN_FD_MODE && CAN
    help
      Maximum allowed DLC in a CAN frame. This parameter sets the
      data buffer size in a CAN frame and is therefore only used to
      optimize memory consumption.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)