These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ADC.h Source File

ADC.h

00001 /*----------------------------------------------------------------------------
00002  * Name:    ADC.h
00003  * Purpose: MCB1700 low level ADC definitions
00004  * Version: V1.00
00005  * Note(s):
00006  *----------------------------------------------------------------------------
00007  * This file is part of the uVision/ARM development tools.
00008  * This software may only be used under the terms of a valid, current,
00009  * end user licence from KEIL for a compatible version of KEIL software
00010  * development tools. Nothing else gives you the right to use this software.
00011  *
00012  * This software is supplied "AS IS" without warranties of any kind.
00013  *
00014  * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
00015  *----------------------------------------------------------------------------
00016  * History:
00017  *          V1.00 Initial Version
00018  *----------------------------------------------------------------------------*/
00019 
00020 #ifndef __ADC_H
00021 #define __ADC_H
00022 
00023 #include "lpc_types.h"
00024 
00025 #define ADC_VALUE_MAX 0xFFF
00026 
00027 
00028 extern void     ADC_init    (void);
00029 extern void     ADC_startCnv(void);
00030 extern void     ADC_stopCnv (void);
00031 extern uint32_t ADC_getCnv  (void);
00032 
00033 #endif