Пример #1
0
 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);
 }
Пример #2
0
 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();
 }
Пример #3
0
 public static void DMA_release_DREQ(int nchan) {
   jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan);
   channel.Clear_Request();
   // DMA_run();
 }
Пример #4
0
 public static int DMA_get_channel_mode(int nchan) {
   jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan);
   return channel.mode;
 }