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