Microchip® Advanced Software Framework

acifb_channel_t Struct Reference

AC channel configuration.

#include <acifb.h>

Public Types

enum  { PI_ACP }
 Set the positive input. More...
 
enum  {
  NI_ACN,
  NI_ACREFN
}
 Set the negative input. More...
 
enum  {
  MODE_OFF,
  MODE_CONTINUOUS,
  MODE_USER_TRIGGERED,
  MODE_EVENT_TRIGGERED
}
 Set the comparator mode. More...
 
enum  {
  IS_VINP_GT_VINN,
  IS_VINP_LT_VINN,
  IS_OUTPUT_TGL,
  IS_COMP_DONE
}
 Interrupt settings. More...
 

Data Fields

uint8_t ac_n
 Analog comparator number. More...
 
bool event_negative
 Output event when ACOUT is zero? More...
 
bool event_positive
 Output event when ACOUT is one? More...
 
uint8_t filter_len
 Filter length. More...
 
uint8_t hysteresis_value
 Hysteresis value. More...
 
enum acifb_channel_t:: { ... }  interrupt_settings
 Interrupt settings. More...
 
enum acifb_channel_t:: { ... }  mode
 Set the comparator mode. More...
 
enum acifb_channel_t:: { ... }  negative_input
 Set the negative input. More...
 
enum acifb_channel_t:: { ... }  positive_input
 Set the positive input. More...
 

anonymous enum

Set the positive input.

Enumerator
PI_ACP 
anonymous enum

Set the negative input.

Enumerator
NI_ACN 
NI_ACREFN 
anonymous enum

Set the comparator mode.

Enumerator
MODE_OFF 
MODE_CONTINUOUS 
MODE_USER_TRIGGERED 
MODE_EVENT_TRIGGERED 
anonymous enum

Interrupt settings.

Enumerator
IS_VINP_GT_VINN 
IS_VINP_LT_VINN 
IS_OUTPUT_TGL 
IS_COMP_DONE 

uint8_t acifb_channel_t::ac_n

Analog comparator number.

bool acifb_channel_t::event_negative

Output event when ACOUT is zero?

Referenced by acifb_channels_setup().

bool acifb_channel_t::event_positive

Output event when ACOUT is one?

uint8_t acifb_channel_t::filter_len

Filter length.

Referenced by ac_init(), and acifb_channels_setup().

uint8_t acifb_channel_t::hysteresis_value

Hysteresis value.

Referenced by acifb_channels_setup().

enum { ... } acifb_channel_t::interrupt_settings

Interrupt settings.

Referenced by acifb_channels_setup().

enum { ... } acifb_channel_t::mode

Set the comparator mode.

Referenced by acifb_channels_setup().

enum { ... } acifb_channel_t::negative_input

Set the negative input.

Referenced by acifb_channels_setup().

enum { ... } acifb_channel_t::positive_input

Set the positive input.

Referenced by acifb_channels_setup().