pureikyubu/SRC/DSP/DspDma.h
2020-08-01 16:01:21 +03:00

32 lines
395 B
C++

// DSP DMA registers
#pragma once
namespace DSP
{
struct DspDmaRegs
{
union
{
struct
{
uint16_t l;
uint16_t h;
};
uint32_t bits;
} mmemAddr;
DspAddress dspAddr;
uint16_t blockSize;
union
{
struct
{
unsigned Dsp2Mmem : 1; // 0: MMEM -> DSP, 1: DSP -> MMEM
unsigned Imem : 1; // 0: DMEM, 1: IMEM
};
uint16_t bits;
} control;
};
}