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@600:7d17ca308cd1, 2015-07-31 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 31 14:15:09 2015 +0100
- Revision:
- 600:7d17ca308cd1
- Parent:
- 558:0880f51c4036
Synchronized with git revision e4cd8bbd3e05b68e5a7f466c74035a85743d45e0
Full URL: https://github.com/mbedmicro/mbed/commit/e4cd8bbd3e05b68e5a7f466c74035a85743d45e0/
Enable LPC8xx usart when configuring it
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 558:0880f51c4036 | 1 | /** |
mbed_official | 558:0880f51c4036 | 2 | ****************************************************************************** |
mbed_official | 558:0880f51c4036 | 3 | * @file |
mbed_official | 558:0880f51c4036 | 4 | * @author |
mbed_official | 558:0880f51c4036 | 5 | * @version |
mbed_official | 558:0880f51c4036 | 6 | * @date |
mbed_official | 558:0880f51c4036 | 7 | * @brief This file contains all the functions prototypes for the ADC |
mbed_official | 558:0880f51c4036 | 8 | * firmware library. |
mbed_official | 558:0880f51c4036 | 9 | ****************************************************************************** |
mbed_official | 558:0880f51c4036 | 10 | * |
mbed_official | 558:0880f51c4036 | 11 | ****************************************************************************** |
mbed_official | 558:0880f51c4036 | 12 | */ |
mbed_official | 558:0880f51c4036 | 13 | |
mbed_official | 558:0880f51c4036 | 14 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 558:0880f51c4036 | 15 | #ifndef __W7500X_ADC_H |
mbed_official | 558:0880f51c4036 | 16 | #define __W7500X_ADC_H |
mbed_official | 558:0880f51c4036 | 17 | |
mbed_official | 558:0880f51c4036 | 18 | #ifdef __cplusplus |
mbed_official | 558:0880f51c4036 | 19 | extern "C" { |
mbed_official | 558:0880f51c4036 | 20 | #endif |
mbed_official | 558:0880f51c4036 | 21 | |
mbed_official | 558:0880f51c4036 | 22 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 558:0880f51c4036 | 23 | #include "W7500x.h" |
mbed_official | 558:0880f51c4036 | 24 | |
mbed_official | 558:0880f51c4036 | 25 | typedef enum { ADC_CH0 = 0, |
mbed_official | 558:0880f51c4036 | 26 | ADC_CH1 = 1, |
mbed_official | 558:0880f51c4036 | 27 | ADC_CH2 = 2, |
mbed_official | 558:0880f51c4036 | 28 | ADC_CH3 = 3, |
mbed_official | 558:0880f51c4036 | 29 | ADC_CH4 = 4, |
mbed_official | 558:0880f51c4036 | 30 | ADC_CH5 = 5, |
mbed_official | 558:0880f51c4036 | 31 | ADC_CH6 = 6, |
mbed_official | 558:0880f51c4036 | 32 | ADC_CH7 = 7, |
mbed_official | 558:0880f51c4036 | 33 | ADC_CH15 = 15} ADC_CH; |
mbed_official | 558:0880f51c4036 | 34 | |
mbed_official | 558:0880f51c4036 | 35 | #define IS_ADC_CH_NUM(NUM) (((NUM) == ADC_CH0) || \ |
mbed_official | 558:0880f51c4036 | 36 | ((NUM) == ADC_CH1) || \ |
mbed_official | 558:0880f51c4036 | 37 | ((NUM) == ADC_CH2) || \ |
mbed_official | 558:0880f51c4036 | 38 | ((NUM) == ADC_CH3) || \ |
mbed_official | 558:0880f51c4036 | 39 | ((NUM) == ADC_CH4) || \ |
mbed_official | 558:0880f51c4036 | 40 | ((NUM) == ADC_CH5) || \ |
mbed_official | 558:0880f51c4036 | 41 | ((NUM) == ADC_CH6) || \ |
mbed_official | 558:0880f51c4036 | 42 | ((NUM) == ADC_CH7) || \ |
mbed_official | 558:0880f51c4036 | 43 | ((NUM) == ADC_CH15)) |
mbed_official | 558:0880f51c4036 | 44 | |
mbed_official | 558:0880f51c4036 | 45 | void ADC_Init(void); |
mbed_official | 558:0880f51c4036 | 46 | void ADC_DeInit(void); |
mbed_official | 558:0880f51c4036 | 47 | void ADC_PowerDownEnable (FunctionalState NewState); |
mbed_official | 558:0880f51c4036 | 48 | void ADC_ChannelSelect (ADC_CH num); |
mbed_official | 558:0880f51c4036 | 49 | void ADC_Start (void); |
mbed_official | 558:0880f51c4036 | 50 | uint16_t ADC_ReadData (void); |
mbed_official | 558:0880f51c4036 | 51 | void ADC_InterruptMask (FunctionalState NewState); |
mbed_official | 558:0880f51c4036 | 52 | uint8_t ADC_IsInterrupt (void); |
mbed_official | 558:0880f51c4036 | 53 | void ADC_InterruptClear (void); |
mbed_official | 558:0880f51c4036 | 54 | |
mbed_official | 558:0880f51c4036 | 55 | #ifdef __cplusplus |
mbed_official | 558:0880f51c4036 | 56 | } |
mbed_official | 558:0880f51c4036 | 57 | #endif |
mbed_official | 558:0880f51c4036 | 58 | |
mbed_official | 558:0880f51c4036 | 59 | #endif //__W7500X_ADC_H |