4.1.4.5 ac_async_register_callback
Register AC callback.
int32_t ac_async_register_callback(
struct ac_async_descriptor *const descr,
const enum ac_callback_type type,
ac_cb_t cb
)
Parameters
- descr
-
Type: struct ac_async_descriptor Struct *const
An AC descriptor
- type
-
Type: const enum ac_callback_type Enum
Callback type
- cb
-
Type: ac_cb_t typedef
A callback function, passing NULL will de-register any registered callback
Returns
Type: int32_t
The status of callback assignment.
- -1
-
Passed parameters were invalid or the AC is not initialized
- 0
-
A callback is registered successfully