can_async_set_filter

Set CAN Filter.

int32_t can_async_set_filter(
    struct can_async_descriptor *const descr,
    uint8_t index,
    enum can_format fmt,
    struct can_filter * filter
)

This function sets CAN to a specified mode.

Parameters

descr

Type: struct can_async_descriptor Struct *const

The CAN descriptor pointer

index

Type: uint8_t

Index of Filter list

fmt

Type: enum can_format

CAN Indentify Type

filter

Type: struct can_filter *

CAN Filter struct, NULL for clear filter

Returns

Type: int32_t

Status of the operation.