Digital-to-Analog Converter Controller (DACC) driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "dacc.h"
Macros | |
#define | DACC_WP_KEY (0x444143) |
DACC Write Protect Key "DAC" in ASCII. More... | |
#define | DACC_WPMR_WPKEY_PASSWD DACC_WPMR_WPKEY(DACC_WP_KEY) |
#define | MAX_CH_NB 0 |
Max channel number. More... | |
Functions | |
void | dacc_disable (Dacc *p_dacc) |
Disable DACC. More... | |
uint32_t | dacc_disable_channel (Dacc *p_dacc, uint32_t ul_channel) |
Disable DACC channel. More... | |
void | dacc_disable_interrupt (Dacc *p_dacc, uint32_t ul_interrupt_mask) |
Disable DACC interrupts. More... | |
void | dacc_disable_trigger (Dacc *p_dacc, uint32_t channel) |
Disable trigger (free run mode). More... | |
void | dacc_enable (Dacc *p_dacc) |
Enable DACC. More... | |
uint32_t | dacc_enable_channel (Dacc *p_dacc, uint32_t ul_channel) |
Enable DACC channel. More... | |
void | dacc_enable_flexible_selection (Dacc *p_dacc) |
Enable the flexible channel selection mode (TAG). More... | |
void | dacc_enable_interrupt (Dacc *p_dacc, uint32_t ul_interrupt_mask) |
Enable DACC interrupts. More... | |
uint32_t | dacc_get_analog_control (Dacc *p_dacc) |
Get the analog control value. More... | |
uint32_t | dacc_get_channel_status (Dacc *p_dacc) |
Get the channel status. More... | |
uint32_t | dacc_get_interrupt_mask (Dacc *p_dacc) |
Get the interrupt mask. More... | |
uint32_t | dacc_get_interrupt_status (Dacc *p_dacc) |
Get the interrupt status. More... | |
Pdc * | dacc_get_pdc_base (Dacc *p_dacc) |
Get PDC registers base address. More... | |
uint32_t | dacc_get_writeprotect_status (Dacc *p_dacc) |
Get the write protect status. More... | |
void | dacc_reset (Dacc *p_dacc) |
Reset DACC. More... | |
uint32_t | dacc_set_analog_control (Dacc *p_dacc, uint32_t ul_analog_control) |
Set the analog control value. More... | |
uint32_t | dacc_set_channel_selection (Dacc *p_dacc, uint32_t ul_channel) |
Disable flexible (TAG) mode and select a channel for DAC outputs. More... | |
uint32_t | dacc_set_osr (Dacc *p_dacc, uint32_t channel, uint32_t ul_osr) |
Set DACC osr. More... | |
uint32_t | dacc_set_power_save (Dacc *p_dacc, uint32_t ul_sleep_mode, uint32_t ul_fast_wakeup_mode) |
Set the power save mode. More... | |
uint32_t | dacc_set_prescaler (Dacc *p_dacc, uint32_t ul_prescaler) |
Set DACC prescaler. More... | |
uint32_t | dacc_set_timing (Dacc *p_dacc, uint32_t ul_startup, uint32_t ul_clock_divider) |
Set the DACC timing. More... | |
uint32_t | dacc_set_timing (Dacc *p_dacc, uint32_t ul_refresh, uint32_t ul_maxs, uint32_t ul_startup) |
Set DACC timings. More... | |
uint32_t | dacc_set_transfer_mode (Dacc *p_dacc, uint32_t ul_mode) |
Set the transfer mode. More... | |
uint32_t | dacc_set_trigger (Dacc *p_dacc, uint32_t ul_trigger, uint32_t channel) |
Enable trigger and set the trigger source. More... | |
void | dacc_set_writeprotect (Dacc *p_dacc, uint32_t ul_enable) |
Enable or disable write protect of DACC registers. More... | |
void | dacc_write_conversion_data (Dacc *p_dacc, uint32_t ul_data, uint32_t channel) |
Write data to conversion register. More... | |