WIP
This commit is contained in:
parent
90d89c7fbe
commit
49383b1b32
68 changed files with 3385 additions and 610 deletions
|
@ -17,13 +17,25 @@
|
|||
class DmaHelper {
|
||||
public:
|
||||
DmaHelper(DMA_TypeDef *dma, uint32_t stream);
|
||||
volatile uint32_t* GetIsReg(DMA_TypeDef *dma, uint32_t stream);
|
||||
volatile uint32_t* GetIfcReg(DMA_TypeDef *dma, uint32_t stream);
|
||||
uint32_t GetDmeMask(uint32_t stream);
|
||||
uint32_t GetTeMask(uint32_t stream);
|
||||
uint32_t GetHtMask(uint32_t stream);
|
||||
uint32_t GetTcMask(uint32_t stream);
|
||||
uint32_t GetFeMask(uint32_t stream);
|
||||
|
||||
DMA_TypeDef* GetDma() { return m_dma; }
|
||||
uint32_t GetStream() { return m_stream; }
|
||||
volatile uint32_t* GetIsReg() { return m_isReg; }
|
||||
volatile uint32_t* GetIfcReg() { return m_ifcReg; }
|
||||
uint32_t GetDmeMask() { return m_dmeMask; }
|
||||
uint32_t GetTeMask() { return m_teMask; }
|
||||
uint32_t GetHtMask() { return m_htMask; }
|
||||
uint32_t GetTcMask() { return m_tcMask; }
|
||||
uint32_t GetFeMask() { return m_feMask; }
|
||||
|
||||
private:
|
||||
static volatile uint32_t* _GetIsReg(DMA_TypeDef *dma, uint32_t stream);
|
||||
static volatile uint32_t* _GetIfcReg(DMA_TypeDef *dma, uint32_t stream);
|
||||
static uint32_t _GetDmeMask(uint32_t stream);
|
||||
static uint32_t _GetTeMask(uint32_t stream);
|
||||
static uint32_t _GetHtMask(uint32_t stream);
|
||||
static uint32_t _GetTcMask(uint32_t stream);
|
||||
static uint32_t _GetFeMask(uint32_t stream);
|
||||
|
||||
private:
|
||||
DMA_TypeDef *m_dma;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue