6 static bool initialized =
false;
19 afec_ch_cfg.
diff =
false;
Analog-Front-End Controller configuration structure.
void afec_enable(Afec *const afec)
Enable AFEC Module.
static void afec_channel_enable(Afec *const afec, const enum afec_channel_num afec_ch)
Enable the specified AFEC channel.
static void afec_channel_set_analog_offset(Afec *const afec, enum afec_channel_num afec_ch, uint16_t aoffset)
Set analog offset to be used for channel CSEL.
void afec_get_config_defaults(struct afec_config *const cfg)
Get the AFEC default configurations.
USBInterfaceDescriptor data
static uint32_t afec_channel_get_value(Afec *const afec, enum afec_channel_num afec_ch)
Read the Converted Data of the selected channel.
static void ioport_set_pin_dir(ioport_pin_t pin, enum ioport_direction dir)
Set direction for a single IOPORT pin.
static void afec_set_trigger(Afec *const afec, const enum afec_trigger trigger)
Configure conversion trigger and free run mode.
#define AFEC0
(AFEC0 ) Base Address
enum status_code afec_init(Afec *const afec, struct afec_config *config)
Initialize the AFEC Module.
Autogenerated API include file for the Atmel Software Framework (ASF)
void afec_ch_set_config(Afec *const afec, const enum afec_channel_num channel, struct afec_ch_config *config)
Configure the AFEC channel.