mac_async_read

Read raw data from MAC.

uint32_t mac_async_read(
    struct mac_async_descriptor *const descr,
    uint8_t * buf,
    uint32_t len
)

Read received raw data from MAC

Parameters

descr

Type: struct mac_async_descriptor Struct *const

Pointer to the HAL MAC descriptor.

buffer

Pointer to the data buffer. If the pointer is NULL, then the frame will be discarded.

length

The max. length of the data buffer to be read. If the length is zero, then the frame will be discard

Returns

Type: uint32_t

Number of bytes that received