mac_async_register_callback

Register the MAC callback function.

int32_t mac_async_register_callback(
    struct mac_async_descriptor *const descr,
    const enum mac_async_cb_type type,
    const FUNC_PTR func
)

Parameters

descr

Type: struct mac_async_descriptor Struct *const

Pointer to the HAL MAC descriptor.

type

Type: const enum mac_async_cb_type

Callback function type.

func

Type: const FUNC_PTR typedef

A callback function. Passing NULL will de-register any registered callback.

Returns

Type: int32_t

Operation status.

ERR_NONE

Success.