io.mapsmessaging.devices.impl.AddressableDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deviceLibrary Show documentation
Show all versions of deviceLibrary Show documentation
Provides a plugable Device integration and access
The newest version!
package io.mapsmessaging.devices.impl;
public interface AddressableDevice {
void close();
int getBus();
int write(int val);
default int write(byte[] buffer) {
return write(buffer, 0, buffer.length);
}
int write(byte[] buffer, int offset, int length);
int writeRegister(int register, byte[] data);
int read(byte[] buffer, int offset, int length);
int readRegister(int register);
int readRegister(int register, byte[] buffer, int offset, int length);
int getDevice();
int read();
}