Interface RegisterIo

All Known Implementing Classes:
JniAdeptDepp

public interface RegisterIo

Byte-oriented hardware I/O interface

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close I/O device
    void
    get(int base, byte[] regs)
    Read array of bytes from hardware
    void
    get(int base, int addr, byte[] regs)
    Read array of bytes from hardware
    void
    put(int base, int offset, byte[] buf)
    Write array of bytes to hardware
    void
    put(int base, ByteBuffer bb)
    Write ByteBuffer to hardware
  • Method Details

    • put

      void put(int base, int offset, byte[] buf) throws RegisterIoException

      Write array of bytes to hardware

      Parameters:
      base - Hardware address
      offset - Hardware byte offset where to start writing
      buf - data to write
      Throws:
      RegisterIoException - RegisterIo exception
    • put

      void put(int base, ByteBuffer bb) throws RegisterIoException

      Write ByteBuffer to hardware

      Parameters:
      base - Hardware address
      bb - data to write
      Throws:
      RegisterIoException - RegisterIo exception
    • get

      void get(int base, int addr, byte[] regs) throws RegisterIoException

      Read array of bytes from hardware

      Parameters:
      base - Hardware address
      addr - Register start address offset
      regs - array to receive data
      Throws:
      RegisterIoException - RegisterIo exception
    • get

      void get(int base, byte[] regs) throws RegisterIoException

      Read array of bytes from hardware

      Parameters:
      base - Hardware address
      regs - array to receive data
      Throws:
      RegisterIoException - RegisterIo exception
    • close

      void close()

      Close I/O device