• Main Page
  • Modules
  • Index
  • File List
  • Globals

hal/nrf24le1/hal_ancmp.h

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 162 $
00012  */ 
00013 
00026 #ifndef HAL_ANCMP_H__
00027 #define HAL_ANCMP_H__
00028 
00029 #include <stdint.h>
00030 #include <stdbool.h>
00031 #include "hal_adc.h"
00032 
00036 typedef enum {
00037   HAL_ANCMP_INP_AIN0   = HAL_INP_AIN0,
00038   HAL_ANCMP_INP_AIN1   = HAL_INP_AIN1,
00039   HAL_ANCMP_INP_AIN2   = HAL_INP_AIN2,
00040   HAL_ANCMP_INP_AIN3   = HAL_INP_AIN3,
00041   HAL_ANCMP_INP_AIN4   = HAL_INP_AIN4,
00042   HAL_ANCMP_INP_AIN5   = HAL_INP_AIN5,
00043   HAL_ANCMP_INP_AIN6   = HAL_INP_AIN6,
00044   HAL_ANCMP_INP_AIN7   = HAL_INP_AIN7,
00045   HAL_ANCMP_INP_AIN8   = HAL_INP_AIN8,
00046   HAL_ANCMP_INP_AIN9   = HAL_INP_AIN9, 
00047   HAL_ANCMP_INP_AIN10  = HAL_INP_AIN10,
00048   HAL_ANCMP_INP_AIN11  = HAL_INP_AIN11,
00049   HAL_ANCMP_INP_AIN12  = HAL_INP_AIN12,
00050   HAL_ANCMP_INP_AIN13  = HAL_INP_AIN13
00051 } hal_ancmp_input_channel_t;
00052 
00056 typedef enum {
00057   HAL_ANCMP_NON_INVERTING = 0x00,  
00058   HAL_ANCMP_INVERTING     = 0x01   
00059 } hal_ancmp_pol_t;                  
00060 
00064 typedef enum {
00065   HAL_ANCMP_REF_SCALE_25  = 0x00,      
00066   HAL_ANCMP_REF_SCALE_50  = 0x01,      
00067   HAL_ANCMP_REF_SCALE_75  = 0x02,      
00068   HAL_ANCMP_REF_SCALE_100 = 0x03,      
00069 } hal_ancmp_ref_scale_t;
00070 
00074 typedef enum {
00075   HAL_ANCMP_REF_VDD = 0x00,            
00076   HAL_ANCMP_REF_EXT = 0x01             
00077 } hal_ancmp_ref_t;
00078 
00079 
00085 void hal_ancmp_set_polarity(hal_ancmp_pol_t polarity);
00086 
00092 void hal_ancmp_set_ref_voltage_scale(hal_ancmp_ref_scale_t scale);
00093 
00099 void hal_ancmp_set_reference(hal_ancmp_ref_t ref);
00100 
00106 void hal_ancmp_set_input_channel(hal_ancmp_input_channel_t chsel);
00107 
00113 void hal_ancmp_enable(bool en);
00114 
00115 
00116 #endif // HAL_ANCMP_H__
00117 

Generated on Fri Apr 20 2012 14:11:44 for nRFGo SDK by  doxygen 1.7.2