mac_async_read_len

Get next valid package length.

uint32_t mac_async_read_len(
    struct mac_async_descriptor *const descr
)

Get next valid package length from the MAC. The application can use this function to fetch the length of the next package, malloc a buffer with this length, and then invoke mac_async_read to read out the package data.

Parameters

descr

Type: struct mac_async_descriptor Struct *const

Pointer to the HAL MAC descriptor.

Returns

Type: uint32_t

The number of bytes in the next package that can be read.