BowlerKernel
|
Classes | |
class | UARTRxChannel |
class | UARTTxChannel |
Public Member Functions | |
UARTChannel () | |
UARTChannel (DyIO d) | |
byte[] | getBytes () |
byte[] | getBytes (int size) |
boolean | sendBytes (ByteList stream) throws IOException |
int | getInStreamSize () |
boolean | inStreamDataReady () |
boolean | setUARTBaudrate (int baudrate) |
DyIOOutputStream | getOutStream () |
DyIOInputStream | getInputStream () |
void | removeAllUARTStreamListener () |
void | removeUARTStreamListener (IUARTStreamListener l) |
void | addUARTStreamListener (IUARTStreamListener l) |
Static Public Attributes | |
static final int | UART_IN = 17 |
static final int | UART_OUT = 16 |
Protected Member Functions | |
void | fireChannelEvent (DyIOChannelEvent e) |
Private Attributes | |
ArrayList< IUARTStreamListener > | listeners = new ArrayList<IUARTStreamListener>() |
The Class UARTChannel.
Definition at line 40 of file UARTChannel.java.
com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTChannel | ( | ) |
Instantiates a new UART channel.
Definition at line 63 of file UARTChannel.java.
References com.neuronrobotics.sdk.common.DeviceManager.getSpecificDevice().
com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTChannel | ( | DyIO | d | ) |
Instantiates a new UART channel.
d | the d |
Definition at line 72 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.DyIO.getChannel().
void com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.addUARTStreamListener | ( | IUARTStreamListener | l | ) |
Add an object that wishes to receive channel updates.
l | The object that wishes to receive updates. |
Definition at line 211 of file UARTChannel.java.
Referenced by com.neuronrobotics.sdk.addons.irobot.Create.Create().
|
protected |
byte [] com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getBytes | ( | ) |
Gets the bytes.
Implements com.neuronrobotics.sdk.common.ISendable.
Definition at line 82 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTRxChannel.getInStreamSize().
Referenced by com.neuronrobotics.sdk.addons.irobot.Create.onChannelEvent().
byte [] com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getBytes | ( | int | size | ) |
Gets the bytes.
size | the size |
Definition at line 92 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTRxChannel.getBytes().
DyIOInputStream com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getInputStream | ( | ) |
int com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getInStreamSize | ( | ) |
Gets the in stream size.
Definition at line 114 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTRxChannel.getInStreamSize().
Referenced by com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.inStreamDataReady().
DyIOOutputStream com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getOutStream | ( | ) |
boolean com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.inStreamDataReady | ( | ) |
In stream data ready.
Definition at line 123 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.getInStreamSize().
void com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.removeAllUARTStreamListener | ( | ) |
Clear list of objects that have subscribed to channel updates.
Definition at line 188 of file UARTChannel.java.
void com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.removeUARTStreamListener | ( | IUARTStreamListener | l | ) |
Remove a particular subscription.
l | The object that has subscribed to updates |
Definition at line 198 of file UARTChannel.java.
boolean com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.sendBytes | ( | ByteList | stream | ) | throws IOException |
Send bytes.
stream | the stream |
IOException | Signals that an I/O exception has occurred. |
Definition at line 104 of file UARTChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTTxChannel.putStream().
Referenced by com.neuronrobotics.sdk.addons.irobot.Create.send().
boolean com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.setUARTBaudrate | ( | int | baudrate | ) |
Sets the uart baudrate.
baudrate | the baudrate |
Definition at line 133 of file UARTChannel.java.
References com.neuronrobotics.sdk.common.BowlerMethod.CRITICAL, com.neuronrobotics.sdk.dyio.DyIO.isLegacyParser(), com.neuronrobotics.sdk.dyio.DyIO.send(), and com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UART_IN.
Referenced by com.neuronrobotics.sdk.addons.irobot.Create.Create().
|
private |
The listeners.
Definition at line 43 of file UARTChannel.java.
|
static |
The Constant UART_IN.
Definition at line 46 of file UARTChannel.java.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.setUARTBaudrate().
|
static |
The Constant UART_OUT.
Definition at line 49 of file UARTChannel.java.