ABDAC driver for SAM.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | abdac_clear_interrupt_flag (struct abdac_dev_inst *const dev_inst, abdac_interrupt_source_t source) |
Clear the interrupt status. More... | |
status_code_t | abdac_disable (struct abdac_dev_inst *const dev_inst) |
Disable the ABDAC module. More... | |
void | abdac_disable_interrupt (struct abdac_dev_inst *const dev_inst, abdac_interrupt_source_t source) |
Disable the interrupt. More... | |
status_code_t | abdac_enable (struct abdac_dev_inst *const dev_inst) |
Enable the ABDAC module. More... | |
void | abdac_enable_interrupt (struct abdac_dev_inst *const dev_inst, abdac_interrupt_source_t source) |
Enable the interrupt. More... | |
void | abdac_get_config_defaults (struct abdac_config *const cfg) |
Initialize a ABDAC configuration structure to defaults. More... | |
status_code_t | abdac_init (struct abdac_dev_inst *const dev_inst, Abdacb *const abdac, struct abdac_config *const cfg) |
Initialize the ABDAC module. More... | |
void | abdac_set_callback (struct abdac_dev_inst *const dev_inst, abdac_interrupt_source_t source, abdac_callback_t callback, uint8_t irq_level) |
Set callback for ABDAC. More... | |
status_code_t | abdac_set_config (struct abdac_dev_inst *const dev_inst) |
Configure the ABDAC module. More... | |
void | abdac_set_volume0 (struct abdac_dev_inst *const dev_inst, bool mute, uint32_t volume) |
Set the volume of channel 0. More... | |
void | abdac_set_volume1 (struct abdac_dev_inst *const dev_inst, bool mute, uint32_t volume) |
Set the volume of channel 1. More... | |
status_code_t | abdac_sw_reset (struct abdac_dev_inst *const dev_inst) |
Software reset the ABDAC module. More... | |
status_code_t | abdac_swap_channels (struct abdac_dev_inst *const dev_inst) |
Swap the ABDAC channel output. More... | |
status_code_t | abdac_write_data0 (struct abdac_dev_inst *const dev_inst, uint32_t data) |
Writes the data to SDR0. More... | |
status_code_t | abdac_write_data1 (struct abdac_dev_inst *const dev_inst, uint32_t data) |
Writes the data to SDR1. More... | |
void | ABDACB_Handler (void) |
The ABDACB interrupt handler. More... | |
Variables | |
abdac_callback_t | abdac_callback_pointer |
ABDAC callback function pointer. More... | |
void ABDACB_Handler | ( | void | ) |
The ABDACB interrupt handler.
References abdac_callback_pointer, and Assert.
abdac_callback_t abdac_callback_pointer |
ABDAC callback function pointer.
Referenced by abdac_set_callback(), and ABDACB_Handler().