public static void DMA_release_DREQ(int nchan) { jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan); channel.Clear_Request(); // DMA_run(); }
public static int DMA_write_memory(int nchan, byte[] buf, int bufOffset, int pos, int len) { jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan); return channel.Write(len, buf, bufOffset); }
public static void DMA_hold_DREQ(int nchan) { jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan); channel.callback.call(channel, jdos.hardware.DMA.DMAEvent.DMA_UNMASKED); channel.Raise_Request(); // DMA_run(); }