Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
StreamPuller Class Reference

#include <MIDI_Parsers/StreamPuller.hpp>

Detailed Description

Helper that pulls bytes out of an Arduino stream.

Definition at line 13 of file StreamPuller.hpp.

+ Collaboration diagram for StreamPuller:

Public Member Functions

 StreamPuller (Stream &stream)
 
bool pull (uint8_t &c)
 Pull a byte out of the stream. More...
 

Public Attributes

Stream & stream
 

Constructor & Destructor Documentation

◆ StreamPuller()

StreamPuller ( Stream &  stream)
inline

Definition at line 15 of file StreamPuller.hpp.

Member Function Documentation

◆ pull()

bool pull ( uint8_t &  c)
inline

Pull a byte out of the stream.

Parameters
[out]cA new character from the stream (if available).
Returns
True if a character was available, false otherwise.

Definition at line 21 of file StreamPuller.hpp.

Member Data Documentation

◆ stream

Stream& stream

Definition at line 28 of file StreamPuller.hpp.


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