Microchip® Advanced Software Framework

ac.c File Reference

SAM Analog Comparator Driver.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "ac.h"

Functions

static enum status_code _ac_set_config (struct ac_module *const module_inst, struct ac_config *const config)
 
enum status_code ac_chan_set_config (struct ac_module *const module_inst, const enum ac_chan_channel channel, struct ac_chan_config *const config)
 Writes an Analog Comparator channel configuration to the hardware module. More...
 
enum status_code ac_init (struct ac_module *const module_inst, Ac *const hw, struct ac_config *const config)
 Initializes and configures the Analog Comparator driver. More...
 
enum status_code ac_reset (struct ac_module *const module_inst)
 Resets and disables the Analog Comparator driver. More...
 
void ac_win_disable (struct ac_module *const module_inst, const enum ac_win_channel win_channel)
 Disables an Analog Comparator window channel that was previously enabled. More...
 
enum status_code ac_win_enable (struct ac_module *const module_inst, const enum ac_win_channel win_channel)
 Enables an Analog Comparator window channel that was previously configured. More...
 
uint8_t ac_win_get_status (struct ac_module *const module_inst, const enum ac_win_channel win_channel)
 Determines the state of a specified Window Comparator. More...
 
enum status_code ac_win_set_config (struct ac_module *const module_inst, enum ac_win_channel const win_channel, struct ac_win_config *const config)
 Function used to setup interrupt selection of a window. More...
 

static enum status_code _ac_set_config ( struct ac_module *const  module_inst,
struct ac_config *const  config 
)
static