mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x_adc.h
- Committer:
- mbed_official
- Date:
- 2015-07-08
- Revision:
- 585:a1ed5b41f74f
- Parent:
- 558:0880f51c4036
File content as of revision 585:a1ed5b41f74f:
/** ****************************************************************************** * @file * @author * @version * @date * @brief This file contains all the functions prototypes for the ADC * firmware library. ****************************************************************************** * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __W7500X_ADC_H #define __W7500X_ADC_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "W7500x.h" typedef enum { ADC_CH0 = 0, ADC_CH1 = 1, ADC_CH2 = 2, ADC_CH3 = 3, ADC_CH4 = 4, ADC_CH5 = 5, ADC_CH6 = 6, ADC_CH7 = 7, ADC_CH15 = 15} ADC_CH; #define IS_ADC_CH_NUM(NUM) (((NUM) == ADC_CH0) || \ ((NUM) == ADC_CH1) || \ ((NUM) == ADC_CH2) || \ ((NUM) == ADC_CH3) || \ ((NUM) == ADC_CH4) || \ ((NUM) == ADC_CH5) || \ ((NUM) == ADC_CH6) || \ ((NUM) == ADC_CH7) || \ ((NUM) == ADC_CH15)) void ADC_Init(void); void ADC_DeInit(void); void ADC_PowerDownEnable (FunctionalState NewState); void ADC_ChannelSelect (ADC_CH num); void ADC_Start (void); uint16_t ADC_ReadData (void); void ADC_InterruptMask (FunctionalState NewState); uint8_t ADC_IsInterrupt (void); void ADC_InterruptClear (void); #ifdef __cplusplus } #endif #endif //__W7500X_ADC_H