Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
hardware_dma_controller.h@0:716b93ab9a58, 2021-10-29 (annotated)
- Committer:
- rajathr
- Date:
- Fri Oct 29 20:56:20 2021 +0000
- Revision:
- 0:716b93ab9a58
- Child:
- 1:c125f4e65df7
AS ON 29TH OCT AT 5PM
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rajathr | 0:716b93ab9a58 | 1 | #ifndef __HARDWARE_DMA_CONTROLLER_H_ |
rajathr | 0:716b93ab9a58 | 2 | #define __HARDWARE_DMA_CONTROLLER_H_ |
rajathr | 0:716b93ab9a58 | 3 | |
rajathr | 0:716b93ab9a58 | 4 | |
rajathr | 0:716b93ab9a58 | 5 | #ifdef __cplusplus |
rajathr | 0:716b93ab9a58 | 6 | extern "C" { |
rajathr | 0:716b93ab9a58 | 7 | #endif |
rajathr | 0:716b93ab9a58 | 8 | |
rajathr | 0:716b93ab9a58 | 9 | #include "main.h" |
rajathr | 0:716b93ab9a58 | 10 | |
rajathr | 0:716b93ab9a58 | 11 | /*Defining function that initializes DMA FOR ADC 3 - 3 CHANNELS*/ |
rajathr | 0:716b93ab9a58 | 12 | void initDMAForAdc3_3Channels(void); |
rajathr | 0:716b93ab9a58 | 13 | |
rajathr | 0:716b93ab9a58 | 14 | /*Defining function that initializes DMA FOR ADC 3 - 1 CHANNELS*/ |
rajathr | 0:716b93ab9a58 | 15 | void initDMAForAdc3_1Channel(void); |
rajathr | 0:716b93ab9a58 | 16 | |
rajathr | 0:716b93ab9a58 | 17 | /*Defining function that returns ADC value to DMA Storage Value*/ |
rajathr | 0:716b93ab9a58 | 18 | uint16_t returnADC3StoredValue(uint8_t index); |
rajathr | 0:716b93ab9a58 | 19 | |
rajathr | 0:716b93ab9a58 | 20 | /*Defining function that enables DMA for ADC3 - 3 CHANNELS*/ |
rajathr | 0:716b93ab9a58 | 21 | void enableDMAForAdc3_3channels (void); |
rajathr | 0:716b93ab9a58 | 22 | |
rajathr | 0:716b93ab9a58 | 23 | /*Defining function that enables DMA for ADC3 - 1 CHANNEL */ |
rajathr | 0:716b93ab9a58 | 24 | void enableDMAForAdc3_1channels (void); |
rajathr | 0:716b93ab9a58 | 25 | |
rajathr | 0:716b93ab9a58 | 26 | #ifdef __cplusplus |
rajathr | 0:716b93ab9a58 | 27 | } |
rajathr | 0:716b93ab9a58 | 28 | #endif |
rajathr | 0:716b93ab9a58 | 29 | |
rajathr | 0:716b93ab9a58 | 30 | #endif /*__HARDWARE_DMA_CONTROLLER_H */ |
rajathr | 0:716b93ab9a58 | 31 |