Interface RegisterIo
- All Known Implementing Classes:
JniAdeptDepp
public interface RegisterIo
Byte-oriented hardware I/O interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close I/O devicevoidget(int base, byte[] regs) Read array of bytes from hardwarevoidget(int base, int addr, byte[] regs) Read array of bytes from hardwarevoidput(int base, int offset, byte[] buf) Write array of bytes to hardwarevoidput(int base, ByteBuffer bb) Write ByteBuffer to hardware
-
Method Details
-
put
Write array of bytes to hardware
- Parameters:
base- Hardware addressoffset- Hardware byte offset where to start writingbuf- data to write- Throws:
RegisterIoException- RegisterIo exception
-
put
Write ByteBuffer to hardware
- Parameters:
base- Hardware addressbb- data to write- Throws:
RegisterIoException- RegisterIo exception
-
get
Read array of bytes from hardware
- Parameters:
base- Hardware addressaddr- Register start address offsetregs- array to receive data- Throws:
RegisterIoException- RegisterIo exception
-
get
Read array of bytes from hardware
- Parameters:
base- Hardware addressregs- array to receive data- Throws:
RegisterIoException- RegisterIo exception
-
close
void close()Close I/O device
-