virtmem
virtual memory library for Arduino
|
Utility class that handles serial input over a port that is used by by SerialVAlloc. More...
#include <serial_utils.h>
Public Member Functions | |
SerialInput (IOStream *s) | |
uint32_t | available (void) |
Available bytes that can be read via serial. More... | |
uint32_t | availableAtLeast (void) |
Returns the minimum number of bytes that can be read. More... | |
int16_t | read (void) |
Read a byte from serial input. More... | |
uint32_t | readBytes (char *buffer, uint32_t count) |
Read multiple bytes from serial input. More... | |
int16_t | peek (void) |
Reads a byte from serial input without removing it from the serial buffer. More... | |
Utility class that handles serial input over a port that is used by by SerialVAlloc.
uint32_t virtmem::serram_utils::SerialInput< IOStream >::available | ( | void | ) |
Available bytes that can be read via serial.
uint32_t virtmem::serram_utils::SerialInput< IOStream >::availableAtLeast | ( | void | ) |
Returns the minimum number of bytes that can be read.
int16_t virtmem::serram_utils::SerialInput< IOStream >::peek | ( | void | ) |
Reads a byte from serial input without removing it from the serial buffer.
int16_t virtmem::serram_utils::SerialInput< IOStream >::read | ( | void | ) |
Read a byte from serial input.
uint32_t virtmem::serram_utils::SerialInput< IOStream >::readBytes | ( | char * | buffer, |
uint32_t | count | ||
) |
Read multiple bytes from serial input.
buffer | Destination character array to read data into. |
count | Amount of bytes to read |