Direct Memory Access driver to service high data throughput peripherals allowing them to access data memory directly using dsPIC MCUs.
More...
|
file | dma.h |
| This is the generated driver header file for the DMA driver.
|
|
file | dma_types.h |
| This is the generated driver types header file for the DMA driver.
|
|
file | dma.c |
| This is the generated driver source file for DMA driver.
|
|
|
const struct DMA_INTERFACE | DMA_SPI |
| Structure object of type DMA_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. DMA can be changed by the user in the DMA user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.
|
|
◆ DMA_SPI_ChannelCallbackRegister
◆ DMA_SPI_ChannelEnable
Definition at line 75 of file dma.h.
◆ DMA_SPI_ChannelTasks
◆ DMA_SPI_Deinitialize
Definition at line 70 of file dma.h.
◆ DMA_SPI_DestinationAddressSet
◆ DMA_SPI_Initialize
Definition at line 65 of file dma.h.
◆ DMA_SPI_IsSoftwareRequestPending
◆ DMA_SPI_SoftwareTriggerEnable
Definition at line 90 of file dma.h.
◆ DMA_SPI_SourceAddressSet
Definition at line 95 of file dma.h.
◆ DMA_SPI_TransferCountGet
Definition at line 85 of file dma.h.
◆ DMA_SPI_TransferCountSet
Definition at line 80 of file dma.h.
◆ DMA_CHANNEL
Enumerator |
---|
DMA_CHANNEL_0 | DMA channel 0
|
DMA_CHANNEL_1 | DMA channel 1
|
DMA_CHANNEL_2 | DMA channel 2
|
DMA_CHANNEL_3 | DMA channel 3
|
DMA_CHANNEL_4 | DMA channel 4
|
DMA_CHANNEL_5 | DMA channel 5
|
DMA_NUMBER_OF_CHANNELS | Maximum number of Channels supported by hardware : 6
|
Definition at line 50 of file dma_types.h.
◆ DMA_ChannelCallback()
- Parameters
-
[in] | channel | - Selected channel for the Callback handling |
- Returns
- none
Definition at line 226 of file dma.c.
◆ DMA_ChannelCallbackRegister()
void DMA_ChannelCallbackRegister |
( |
void(*)(enum DMA_CHANNEL channel) | callback | ) |
|
- Parameters
-
[in] | callback | - Address of the callback function |
- Returns
- none
Definition at line 218 of file dma.c.
◆ DMA_ChannelDisable()
static void DMA_ChannelDisable |
( |
enum DMA_CHANNEL | channel | ) |
|
|
inlinestatic |
- Precondition
- DMA_Initialize must be called.
- Parameters
-
[in] | channel | - DMA channel number |
- Returns
- none
Definition at line 175 of file dma.h.
◆ DMA_ChannelEnable()
static void DMA_ChannelEnable |
( |
enum DMA_CHANNEL | channel | ) |
|
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
- Returns
- none
Definition at line 142 of file dma.h.
◆ DMA_ChannelTasks()
void DMA_ChannelTasks |
( |
void | | ) |
|
- Precondition
- DMA_Initialize must be called
- Parameters
-
- Returns
- none
Definition at line 241 of file dma.c.
◆ DMA_Deinitialize()
void DMA_Deinitialize |
( |
void | | ) |
|
- Parameters
-
- Returns
- none
Definition at line 163 of file dma.c.
◆ DMA_DestinationAddressSet()
static void DMA_DestinationAddressSet |
( |
enum DMA_CHANNEL | channel, |
|
|
uint16_t | address ) |
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
[in] | address | - Destination address |
- Returns
- none
Definition at line 352 of file dma.h.
◆ DMA_Initialize()
void DMA_Initialize |
( |
void | | ) |
|
- Parameters
-
- Returns
- none
Definition at line 67 of file dma.c.
◆ DMA_IsSoftwareRequestPending()
static bool DMA_IsSoftwareRequestPending |
( |
enum DMA_CHANNEL | channel | ) |
|
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
- Returns
- true - DMA request is pending
-
false - DMA request is not pending
Definition at line 387 of file dma.h.
◆ DMA_SoftwareTriggerEnable()
static void DMA_SoftwareTriggerEnable |
( |
enum DMA_CHANNEL | channel | ) |
|
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
- Returns
- none
Definition at line 284 of file dma.h.
◆ DMA_SourceAddressSet()
static void DMA_SourceAddressSet |
( |
enum DMA_CHANNEL | channel, |
|
|
uint16_t | address ) |
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
[in] | address | - Source address |
- Returns
- none
Definition at line 318 of file dma.h.
◆ DMA_TransferCountGet()
static uint16_t DMA_TransferCountGet |
( |
enum DMA_CHANNEL | channel | ) |
|
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
- Returns
- Returns the transfer count value
Definition at line 248 of file dma.h.
◆ DMA_TransferCountSet()
static void DMA_TransferCountSet |
( |
enum DMA_CHANNEL | channel, |
|
|
uint16_t | transferCount ) |
|
inlinestatic |
- Precondition
- DMA_Initialize must be called
- Parameters
-
[in] | channel | - DMA channel number |
[in] | transferCount | - Transfer count Value |
- Returns
- none
Definition at line 209 of file dma.h.
◆ DMA_SPI
Definition at line 51 of file dma.c.