SPI RAM 23LC1024 (Microchip) with DMA and FIFO

Dependencies:   SerRAM mbed

Fork of SPIRAM_23LC1024_DMA by Suga koubou

Embed: (wiki syntax)

« Back to documentation index

MODDMA_Config Class Reference

MODDMA_Config Class Reference

The MODDMA configuration system. More...

#include <MODDMA.h>

Public Member Functions

class MODDMA_Configattach_tc (void(*fptr)(void))
 Attach a callback to the TC IRQ configuration.
class MODDMA_Configattach_err (void(*fptr)(void))
 Attach a callback to the ERR IRQ configuration.
template<typename T >
class MODDMA_Configattach_tc (T *tptr, void(T::*mptr)(void))
 Attach a callback to the TC IRQ configuration.
template<typename T >
class MODDMA_Configattach_err (T *tptr, void(T::*mptr)(void))
 Attach a callback to the ERR IRQ configuration.

Protected Attributes

uint32_t ChannelNum
 DMA channel number, should be in range from 0 to 7.
uint32_t TransferSize
 Length/Size of transfer.
uint32_t TransferWidth
 Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_m2m only.
uint32_t SrcMemAddr
 Physical Src Addr, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::m2p.
uint32_t DstMemAddr
 Physical Destination Address, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::p2m.
uint32_t TransferType
 Transfer Type.
uint32_t SrcConn
 Peripheral Source Connection type, used in case TransferType is chosen as.
uint32_t DstConn
 Peripheral Destination Connection type, used in case TransferType is chosen as.
uint32_t DMALLI
 Linker List Item structure data address if there's no Linker List, set as '0'.
uint32_t DMACSync
 DMACSync if required.

Detailed Description

The MODDMA configuration system.

Author:
Andy Kirkham
See also:
http://mbed.org/cookbook/MODDMA_Config
MODDMA
The MODDMA API

MODDMA_Config defines a configuration that can be passed to the MODDMA controller instance to perform a GPDMA data transfer.

Definition at line 51 of file MODDMA.h.


Member Function Documentation

class MODDMA_Config* attach_err ( void(*)(void)  fptr )

Attach a callback to the ERR IRQ configuration.

Parameters:
fptrA function pointer to call
Returns:
this

Definition at line 132 of file MODDMA.h.

class MODDMA_Config* attach_err ( T *  tptr,
void(T::*)(void)  mptr 
)

Attach a callback to the ERR IRQ configuration.

Parameters:
tptrA template pointer to the calling object
mptrA method pointer within the object to call.
Returns:
this

Definition at line 160 of file MODDMA.h.

class MODDMA_Config* attach_tc ( void(*)(void)  fptr )

Attach a callback to the TC IRQ configuration.

Parameters:
fptrA function pointer to call
Returns:
this

Definition at line 121 of file MODDMA.h.

class MODDMA_Config* attach_tc ( T *  tptr,
void(T::*)(void)  mptr 
)

Attach a callback to the TC IRQ configuration.

Parameters:
tptrA template pointer to the calling object
mptrA method pointer within the object to call.
Returns:
this

Definition at line 145 of file MODDMA.h.


Field Documentation

uint32_t ChannelNum [protected]

DMA channel number, should be in range from 0 to 7.

Definition at line 58 of file MODDMA.h.

uint32_t DMACSync [protected]

DMACSync if required.

Definition at line 67 of file MODDMA.h.

uint32_t DMALLI [protected]

Linker List Item structure data address if there's no Linker List, set as '0'.

Definition at line 66 of file MODDMA.h.

uint32_t DstConn [protected]

Peripheral Destination Connection type, used in case TransferType is chosen as.

Definition at line 65 of file MODDMA.h.

uint32_t DstMemAddr [protected]

Physical Destination Address, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::p2m.

Definition at line 62 of file MODDMA.h.

uint32_t SrcConn [protected]

Peripheral Source Connection type, used in case TransferType is chosen as.

Definition at line 64 of file MODDMA.h.

uint32_t SrcMemAddr [protected]

Physical Src Addr, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::m2p.

Definition at line 61 of file MODDMA.h.

uint32_t TransferSize [protected]

Length/Size of transfer.

Definition at line 59 of file MODDMA.h.

uint32_t TransferType [protected]

Transfer Type.

Definition at line 63 of file MODDMA.h.

uint32_t TransferWidth [protected]

Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_m2m only.

Definition at line 60 of file MODDMA.h.