Rajath Ravi / Mbed 2 deprecated ADC_DMA_POST_LEC12

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hardware_dma_controller.h Source File

hardware_dma_controller.h

00001 #ifndef __HARDWARE_DMA_CONTROLLER_H_
00002 #define __HARDWARE_DMA_CONTROLLER_H_
00003 
00004 
00005 #ifdef __cplusplus
00006  extern "C" {
00007 #endif
00008 
00009 #include "main.h"
00010 
00011 /*Defining function that initializes DMA FOR ADC 3 - 3 CHANNELS*/
00012 void initDMAForAdc3_3Channels(void);
00013 
00014 /*Defining function that initializes DMA FOR ADC 3 - 1 CHANNELS*/
00015 void initDMAForAdc3_1Channel(void);
00016 
00017 /*Defining function that returns ADC value to DMA Storage Value FOR 3 CHANNEL*/
00018 uint16_t returnADC3StoredValue3Channel(uint8_t index);
00019 
00020 /*Defining function that returns ADC value to DMA Storage Value FOR 1 CHANNELS*/
00021 uint16_t returnADC3StoredValue1Channel(uint8_t index);
00022 
00023 
00024 /*Defining function that enables DMA for ADC3 - 3 CHANNELS*/
00025 void enableDMAForAdc3_3channels (void);
00026 
00027 /*Defining function that enables DMA for ADC3 - 1 CHANNEL */
00028 void enableDMAForAdc3_1channels (void);
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033 
00034 #endif /*__HARDWARE_DMA_CONTROLLER_H */
00035