Enumerations | Functions

hal/nrf24le1/hal_ancmp.h File Reference

Interface functions for the analog comparator. More...

#include <stdint.h>
#include <stdbool.h>
#include "hal_adc.h"

Go to the source code of this file.

Enumerations

enum  hal_ancmp_input_channel_t {
  HAL_ANCMP_INP_AIN0 = 0x00, HAL_ANCMP_INP_AIN1 = 0x01, HAL_ANCMP_INP_AIN2 = 0x02, HAL_ANCMP_INP_AIN3 = 0x03,
  HAL_ANCMP_INP_AIN4 = 0x04, HAL_ANCMP_INP_AIN5 = 0x05, HAL_ANCMP_INP_AIN6 = 0x06, HAL_ANCMP_INP_AIN7 = 0x07,
  HAL_ANCMP_INP_AIN8 = 0x08, HAL_ANCMP_INP_AIN9 = 0x09, HAL_ANCMP_INP_AIN10 = 0x0A, HAL_ANCMP_INP_AIN11 = 0x0B,
  HAL_ANCMP_INP_AIN12 = 0x0C, HAL_ANCMP_INP_AIN13 = 0x0D
}
enum  hal_ancmp_pol_t { HAL_ANCMP_NON_INVERTING = 0x00, HAL_ANCMP_INVERTING = 0x01 }
enum  hal_ancmp_ref_scale_t { HAL_ANCMP_REF_SCALE_25 = 0x00, HAL_ANCMP_REF_SCALE_50 = 0x01, HAL_ANCMP_REF_SCALE_75 = 0x02, HAL_ANCMP_REF_SCALE_100 = 0x03 }
enum  hal_ancmp_ref_t { HAL_ANCMP_REF_VDD = 0x00, HAL_ANCMP_REF_EXT = 0x01 }

Functions

void hal_ancmp_set_polarity (hal_ancmp_pol_t polarity)
void hal_ancmp_set_ref_voltage_scale (hal_ancmp_ref_scale_t scale)
void hal_ancmp_set_reference (hal_ancmp_ref_t ref)
void hal_ancmp_set_input_channel (hal_ancmp_input_channel_t chsel)
void hal_ancmp_enable (_Bool en)

Detailed Description

Interface functions for the analog comparator.

Definition in file hal_ancmp.h.