public class FHZ1000PC.FHZ1000SerialDevice extends Object implements FHZ1000PC.FHZ1000Device, gnu.io.SerialPortEventListener
Modifier and Type | Field and Description |
---|---|
protected InputStream |
inputStream |
protected boolean |
m_CallbackActive |
protected int |
MAX_WAIT_TIME_MS |
protected OutputStream |
outputStream |
protected gnu.io.CommPortIdentifier |
portId |
protected Enumeration<gnu.io.CommPortIdentifier> |
portList |
protected gnu.io.SerialPort |
serialPort |
Constructor and Description |
---|
FHZ1000SerialDevice(String m_ComPort) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
deactivate() |
byte[] |
read(int length) |
void |
serialEvent(gnu.io.SerialPortEvent event) |
int |
write(byte[] data) |
protected final int MAX_WAIT_TIME_MS
protected Enumeration<gnu.io.CommPortIdentifier> portList
protected InputStream inputStream
protected OutputStream outputStream
protected gnu.io.SerialPort serialPort
protected gnu.io.CommPortIdentifier portId
protected boolean m_CallbackActive
public FHZ1000SerialDevice(String m_ComPort) throws IOException
IOException
public void activate() throws IOException
activate
in interface FHZ1000PC.FHZ1000Device
IOException
public void serialEvent(gnu.io.SerialPortEvent event)
serialEvent
in interface gnu.io.SerialPortEventListener
public int write(byte[] data) throws IOException
write
in interface FHZ1000PC.FHZ1000Device
IOException
public byte[] read(int length) throws IOException
read
in interface FHZ1000PC.FHZ1000Device
IOException
public void deactivate() throws IOException
deactivate
in interface FHZ1000PC.FHZ1000Device
IOException
Copyright © 2018 universAAL Consortium. All rights reserved.