SAM Digital-to-Analog Interrupt Driver.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | _dac_interrupt_handler (const uint8_t instance) |
void | dac_chan_abort_job (struct dac_module *module_inst, const enum dac_channel channel) |
Aborts an ongoing job. More... | |
enum status_code | dac_chan_disable_callback (struct dac_module *const module_inst, const enum dac_channel channel, const enum dac_callback type) |
Disables asynchronous callback generation for a given channel and type. More... | |
enum status_code | dac_chan_enable_callback (struct dac_module *const module_inst, const enum dac_channel channel, const enum dac_callback type) |
Enables asynchronous callback generation for a given channel and type. More... | |
enum status_code | dac_chan_get_job_status (struct dac_module *module_inst, const enum dac_channel channel) |
Gets the status of a job. More... | |
enum status_code | dac_chan_write_buffer_job (struct dac_module *const module_inst, const enum dac_channel channel, uint16_t *buffer, uint32_t length) |
Convert a specific number digital data to analog through DAC. More... | |
enum status_code | dac_chan_write_job (struct dac_module *const module_inst, const enum dac_channel channel, uint16_t data) |
Convert one digital data job. More... | |
void | DAC_Handler (void) |
Handler for the DAC hardware module interrupt. More... | |
enum status_code | dac_register_callback (struct dac_module *const module_inst, const enum dac_channel channel, const dac_callback_t callback, const enum dac_callback type) |
Registers an asynchronous callback function with the driver. More... | |
enum status_code | dac_unregister_callback (struct dac_module *const module_inst, const enum dac_channel channel, const enum dac_callback type) |
Unregisters an asynchronous callback function with the driver. More... | |
Variables | |
struct dac_module * | _dac_instances [DAC_INST_NUM] |
|
static |
Internal handler for DAC module interrupts.
[in] | instance | DAC instance number |
References DAC_CALLBACK_DATA_EMPTY, DAC_CALLBACK_DATA_UNDERRUN, DAC_CALLBACK_TRANSFER_COMPLETE, STATUS_OK, system_interrupt_disable(), and SYSTEM_INTERRUPT_MODULE_DAC.
Referenced by DAC_Handler().
void DAC_Handler | ( | void | ) |
Handler for the DAC hardware module interrupt.
References _dac_interrupt_handler().
struct dac_module* _dac_instances[DAC_INST_NUM] |
Referenced by dac_init().