Microchip® Advanced Software Framework

acifa.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "acifa.h"

Functions

void acifa_clear_flags (volatile avr32_acifa_t *acifa, uint32_t flag_mask)
 Clear Flags. More...
 
void acifa_configure (volatile avr32_acifa_t *acifa, uint8_t comp_sel, uint8_t input_p, uint8_t input_n, uint32_t pb_hz)
 Configure ACIFA Normal Mode. More...
 
void acifa_configure_hysteresis (volatile avr32_acifa_t *acifa, uint8_t comp_sel, uint8_t level)
 Configure Hysteresis on comparator. More...
 
void acifa_configure_vccscale (volatile avr32_acifa_t *acifa, uint8_t vcc_sel, uint8_t scale)
 Configure VCC Scale on comparator. More...
 
void acifa_configure_window (volatile avr32_acifa_t *acifa, uint8_t input_p, uint8_t input_n, uint8_t common_input, uint32_t pb_hz)
 Configure ACIFA Window Mode. More...
 
void acifa_enable_interrupt (volatile avr32_acifa_t *acifa, uint32_t flag_mask)
 Enable Interrupt Flags. More...
 
void acifa_enable_interrupt_inp_higher (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Enable AC Interrupt when Vinp>Vin. More...
 
void acifa_enable_interrupt_inp_lower (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Enable AC Interrupt when Vinp<Vin. More...
 
void acifa_enable_interrupt_toggle (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Enable AC Interrupt when a toggle of the comparator occurs. More...
 
void acifa_enable_output (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Enable Output on comparator. More...
 
bool acifa_is_aca_inp_higher (volatile avr32_acifa_t *acifa)
 Return comparator A status. More...
 
static bool acifa_is_aca_ready (volatile avr32_acifa_t *acifa)
 
bool acifa_is_acb_inp_higher (volatile avr32_acifa_t *acifa)
 Return comparator B status. More...
 
static bool acifa_is_acb_ready (volatile avr32_acifa_t *acifa)
 
bool acifa_is_ci_inside_window (volatile avr32_acifa_t *acifa)
 Return Window status. More...
 
static bool acifa_is_wf_ready (volatile avr32_acifa_t *acifa)
 
void acifa_start (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Start comparator in Normal Mode. More...
 
void acifa_start_window (volatile avr32_acifa_t *acifa)
 Start comparator in Window Mode. More...
 
void acifa_stop (volatile avr32_acifa_t *acifa, uint8_t comp_sel)
 Stops the comparators that are currently started. More...
 

static bool acifa_is_aca_ready ( volatile avr32_acifa_t *  acifa)
static

Referenced by acifa_start().

static bool acifa_is_acb_ready ( volatile avr32_acifa_t *  acifa)
static

Referenced by acifa_start().

static bool acifa_is_wf_ready ( volatile avr32_acifa_t *  acifa)
static

Referenced by acifa_start_window().