6.6.4.5.4 Function dac_unregister_callback()
Unregisters an asynchronous callback function with the driver.
enum status_code dac_unregister_callback( struct dac_module *const module, const enum dac_channel channel, const enum dac_callback type)
Unregisters an asynchronous callback with the DAC driver, removing it from the internal callback registration table.
Data direction | Parameter name | Description |
---|---|---|
[in, out] |
module_inst |
Pointer to the DAC software instance struct |
[in] |
channel |
Logical channel to unregister callback function |
[in] |
type |
Type of callback function to unregister |
Returns
Status of the de-registration operation.
Return value | Description |
---|---|
STATUS_OK |
The callback was unregistered successfully |
STATUS_ERR_INVALID_ARG |
If an invalid callback type was supplied |
STATUS_ERR_UNSUPPORTED_DEV |
If a callback that requires event driven mode was specified with a DAC instance configured in non-event mode |