Package cbsw
Interface RegisterIo
-
- All Known Implementing Classes:
JniAdeptDepp
public interface RegisterIoByte-oriented hardware I/O interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()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, java.nio.ByteBuffer bb)Write ByteBuffer to hardware
-
-
-
Method Detail
-
put
void put(int base, int offset, byte[] buf) throws RegisterIoExceptionWrite array of bytes to hardware
- Parameters:
base- Hardware addressoffset- Hardware byte offset where to start writingbuf- data to write- Throws:
RegisterIoException- RegisterIo exception
-
put
void put(int base, java.nio.ByteBuffer bb) throws RegisterIoExceptionWrite ByteBuffer to hardware
- Parameters:
base- Hardware addressbb- data to write- Throws:
RegisterIoException- RegisterIo exception
-
get
void get(int base, int addr, byte[] regs) throws RegisterIoExceptionRead array of bytes from hardware
- Parameters:
base- Hardware addressaddr- Register start address offsetregs- array to receive data- Throws:
RegisterIoException- RegisterIo exception
-
get
void get(int base, byte[] regs) throws RegisterIoExceptionRead array of bytes from hardware
- Parameters:
base- Hardware addressregs- array to receive data- Throws:
RegisterIoException- RegisterIo exception
-
close
void close()
Close I/O device
-
-