BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.dyio.DyIOInputStream Class Reference
Inheritance diagram for com.neuronrobotics.sdk.dyio.DyIOInputStream:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.dyio.DyIOInputStream:
Collaboration graph
[legend]

Public Member Functions

 DyIOInputStream (DyIOChannel channel)
 
void write (ByteList data)
 
int read () throws IOException
 
int available ()
 

Private Attributes

ByteList buffer = new ByteList()
 

Detailed Description

The Class DyIOInputStream.

Definition at line 26 of file DyIOInputStream.java.

Constructor & Destructor Documentation

◆ DyIOInputStream()

com.neuronrobotics.sdk.dyio.DyIOInputStream.DyIOInputStream ( DyIOChannel  channel)

Instantiates a new dy io input stream.

Parameters
channelthe channel

Definition at line 39 of file DyIOInputStream.java.

Member Function Documentation

◆ available()

int com.neuronrobotics.sdk.dyio.DyIOInputStream.available ( )

◆ read()

int com.neuronrobotics.sdk.dyio.DyIOInputStream.read ( ) throws IOException

◆ write()

void com.neuronrobotics.sdk.dyio.DyIOInputStream.write ( ByteList  data)

Write.

Parameters
datathe data

Definition at line 48 of file DyIOInputStream.java.

References com.neuronrobotics.sdk.common.ByteList.add(), and com.neuronrobotics.sdk.dyio.DyIOInputStream.buffer.

Referenced by com.neuronrobotics.sdk.dyio.peripherals.UARTChannel.UARTRxChannel.onChannelEvent().

Here is the call graph for this function:

Member Data Documentation

◆ buffer

ByteList com.neuronrobotics.sdk.dyio.DyIOInputStream.buffer = new ByteList()
private

The documentation for this class was generated from the following file: