Example #1
0
        public void SetBuffer(IoMemory buffer)
        {
            uint   address = (uint)buffer.PhysicalAddress.Value;
            ushort offs    = eightBit
                ? (ushort)((address) & 0xffff)
                : (ushort)((address >> 1) & 0xffff);

            pagePort.Write8((byte)((address >> 16) & 0xff));
            addrPort.Write8((byte)(offs & 0xff));
            addrPort.Write8((byte)(offs >> 8));
        }
Example #2
0
        public virtual void Write8(int offset, byte value)
        {
            uint config = (((uint)offset & 0xff) |
                           ((uint)identifier << 8) |
                           ((uint)1 << 31));

            addressPort.Write32(config);
            dataPort.Write8((uint)(offset & 0x3), value);
        }
Example #3
0
 public void SetTransferLength(ushort length)
 {
     countPort.Write8((byte)(length & 0xff)); //buffersize
     countPort.Write8((byte)(length >> 8));   //buffersize
 }
Example #4
0
 public void ClearFlipFlop()
 {
     clearPort.Write8(0x00);
 }
Example #5
0
 public void EnableChannel()
 {
     maskPort.Write8(channel);
 }
Example #6
0
 public void SetControlByte()
 {
     controlByte |= controlByteMask;
     modePort.Write8(controlByte);
 }