can_async_set_mode

Set CAN to the specified mode.

int32_t can_async_set_mode(
    struct can_async_descriptor *const descr,
    enum can_mode mode
)

This function sets CAN to a specified mode.

Parameters

descr

Type: struct can_async_descriptor Struct *const

The CAN descriptor pointer

mode

Type: enum can_mode

The CAN operation mode

Returns

Type: int32_t

Status of the operation.