Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
qm_ac_config_t Struct Reference
Analog Comparator

Analog Comparator configuration type. More...

`#include <qm_comparator.h>`

## Data Fields
uint32_t | cmp_en
| Comparator enable. More...
uint32_t | reference
| Reference voltage, 1b: VREF; 0b: AR_PIN. More...
uint32_t | polarity
| 0b: input>ref; 1b: input<ref
uint32_t | power
| 1b: Normal mode; 0b:Power-down/Shutdown mode
void(* | callback )(void *data, uint32_t int_status)
| Transfer callback. More...
void * | callback_data
| Callback user data. More...

## Detailed Description

Analog Comparator configuration type.

Each bit in the registers controls a single Analog Comparator pin.

Note
  There is no way to control comparator interrupts using this configuration struct: when a comparator is enabled and powered-up, it starts generating interrupts when proper input conditions are met; however, comparator interrupts can be masked at interrupt routing level.

Definition at line 28 of file qm_comparator.h.

## Field Documentation

void(* qm_ac_config_t::callback)(void *data, uint32_t int_status)

Transfer callback.

Parameters

  [in] | data | Callback user data.
  [in] | status | Comparator interrupt status.

Definition at line 40 of file qm_comparator.h.

Referenced by qm_ac_set_config().

void* qm_ac_config_t::callback_data

Callback user data.

Definition at line 41 of file qm_comparator.h.

Referenced by qm_ac_set_config().

uint32_t qm_ac_config_t::cmp_en

Comparator enable.

Definition at line 29 of file qm_comparator.h.

Referenced by qm_ac_set_config().

uint32_t qm_ac_config_t::reference

Reference voltage, 1b: VREF; 0b: AR_PIN.

Definition at line 30 of file qm_comparator.h.

Referenced by qm_ac_set_config().