Class UARTOutputStream

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int pPSC1  
      static int pPSC2  
      static int pPSC3  
      static int pPSC4  
      static int pPSC5  
      static int pPSC6  
    • Constructor Summary

      Constructors 
      Constructor Description
      UARTOutputStream​(int uart)
      Creates an output stream on a given UART interface.
    • Constructor Detail

      • UARTOutputStream

        public UARTOutputStream​(int uart)
        Creates an output stream on a given UART interface.
        Parameters:
        uart - UART number.
    • Method Detail

      • write

        public void write​(int b)
        Writes a single byte to this stream. Only the least significant byte of the integer b is written to the stream.
        Specified by:
        write in class OutputStream
        Parameters:
        b - the byte to be written.
      • write

        public void write​(byte[] buffer)
        Equivalent to write(buffer, 0, buffer.length).
        Overrides:
        write in class OutputStream
        Parameters:
        buffer - the buffer to be written.
      • write

        public void write​(byte[] buffer,
                          int off,
                          int count)
        Writes count bytes from the byte array buffer starting at position offset to this stream.
        Overrides:
        write in class OutputStream
        Parameters:
        buffer - the buffer to be written.
        off - the start position in buffer from where to get bytes.
        count - the number of bytes from buffer to write to this stream.