13.1.4.5 dac_async_register_callback
Register DAC callback.
int32_t dac_async_register_callback(
struct dac_async_descriptor *const descr,
const enum dac_async_callback_type type,
dac_async_cb_t cb
)
Parameters
- descr
-
Type: struct dac_async_descriptor Struct *const
Pointer to the HAL DAC descriptor
- type
-
Type: const enum dac_async_callback_type Enum
Interrupt source type
- cb
-
Type: dac_async_cb_t typedef
A callback function, passing NULL de-registers callback
Returns
Type: int32_t
Operation status
- 0
-
Success
- -1
-
Error