mac_async_set_filter

Set MAC filter.

int32_t mac_async_set_filter(
    struct mac_async_descriptor *const descr,
    uint8_t index,
    struct mac_async_filter * filter
)

Set MAC filter. Ethernet frames matching the filter, will be received.

Parameters

descr

Type: struct mac_async_descriptor Struct *const

Pointer to the HAL MAC descriptor.

index

Type: uint8_t

MAC filter index. Start from 0. The maximum value depends on the hardware specifications.

filter

Type: struct mac_async_filter *

Pointer to the filter descriptor.

Returns

Type: int32_t

Operation status.

ERR_NONE

Success.