#include <BDma.h>
|
| enum | Dir { DirDeviceToMemory = 0, DirMemoryToDevice = 1, DirMemoryToMemory = 2 } |
| |
| enum | DmaType { DmaTypeNormal, DmaTypeCircular, DmaTypeDouble } |
| |
| enum | Size { Size8 = 0, Size16 = 1, Size32 = 2 } |
| |
| enum | Burst { Burst1 = 0, Burst4 = 1, Burst8 = 2, Burst16 = 3 } |
| |
| enum | Fifo { FifoNone, FifoQuarter, FifoHalf, FifoThreeQuarter, FifoFull } |
| |
| enum | Status { StatusNone = 0x0, StatusComplete = 0x01, StatusHalfComplete = 0x02, StatusError = 0x04 } |
| |
|
| | BDma () |
| |
| BError | init (BUInt8 controller, BUInt8 stream, BUInt8 channel) |
| | Initialise the device. More...
|
| |
| void | setCompleteCallback (BDmaCompleteCallback callBack) |
| |
| BError | stop (Bool waitForCompletion=1) |
| | Stops the DMA and waits until it has stopped if wait is set. More...
|
| |
| BError | config (Size memSize, Bool memInc, Size deviceSize, Bool deviceInc, DmaType dmaType, BUInt8 priority) |
| |
| BError | configFlow (Bool flowDevice, Burst memBurst, Burst deviceBurst, Fifo fifo) |
| |
| BError | doDma (Dir dir, void *fromAddress, void *toAddress, BUInt32 size) |
| |
| void | setNextBuffer (void *address) |
| | In double buffer mode set next buffer address. More...
|
| |
| BError | wait (BTimeout timeoutUs=BTimeoutForever) |
| | Wait for completion. More...
|
| |
| BError | waitStatus (BUInt8 &status, BTimeout timeoutUs=BTimeoutForever) |
| | Wait for completion. More...
|
| |
| BUInt32 | numLeft () |
| | The number of DMA items to transfer. More...
|
| |
| void | interrupt () |
| |
| void | printStatus () |
| |
| BUInt8 | statusGet () |
| |
| void | statusClear () |
| |
◆ Burst
| Enumerator |
|---|
| Burst1 | |
| Burst4 | |
| Burst8 | |
| Burst16 | |
◆ Dir
| Enumerator |
|---|
| DirDeviceToMemory | |
| DirMemoryToDevice | |
| DirMemoryToMemory | |
◆ DmaType
| Enumerator |
|---|
| DmaTypeNormal | |
| DmaTypeCircular | |
| DmaTypeDouble | |
◆ Fifo
| Enumerator |
|---|
| FifoNone | |
| FifoQuarter | |
| FifoHalf | |
| FifoThreeQuarter | |
| FifoFull | |
◆ Size
| Enumerator |
|---|
| Size8 | |
| Size16 | |
| Size32 | |
◆ Status
| Enumerator |
|---|
| StatusNone | |
| StatusComplete | |
| StatusHalfComplete | |
| StatusError | |
◆ BDma()
◆ config()
◆ configFlow()
◆ doDma()
| BError BDma::doDma | ( | Dir | dir, |
| | void * | fromAddress, |
| | void * | toAddress, |
| | BUInt32 | size |
| ) | | |
◆ init()
◆ interrupt()
◆ numLeft()
The number of DMA items to transfer.
◆ printStatus()
| void BDma::printStatus | ( | | ) | |
◆ setCompleteCallback()
◆ setNextBuffer()
| void BDma::setNextBuffer | ( | void * | address | ) | |
In double buffer mode set next buffer address.
◆ statusClear()
| void BDma::statusClear | ( | | ) | |
◆ statusGet()
◆ stop()
Stops the DMA and waits until it has stopped if wait is set.
◆ wait()
◆ waitStatus()
◆ ochannel
◆ ocompleteCallback
◆ ocontroller
◆ odma
◆ odmaStream
| DMA_Stream_TypeDef* BDma::odmaStream |
◆ odmaType
◆ oerr
◆ ostatus
◆ ostream
◆ otranSize
◆ owait
The documentation for this class was generated from the following files: