8.1.3.7 can_async_register_callback
Register CAN callback function to interrupt.
int32_t can_async_register_callback(
struct can_async_descriptor *const descr,
enum can_async_callback_type type,
FUNC_PTR cb
)
Parameters
- descr
-
Type: struct can_async_descriptor Struct *const
The CAN descriptor
- type
-
Type: enum can_async_callback_type
Callback type
- cb
-
Type: FUNC_PTR typedef
A callback function, passing NULL will de-register any registered callback
Returns
Type: int32_t
The status of callback assignment.