|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
32 #ifdef __PROPELLER_COG__
52 :
Queue(array, lockNumber) {
55 CharQueue (
char *array,
const size_t length,
const int lockNumber)
56 :
Queue(array, length, lockNumber) {
69 virtual void puts (
const char *
string) {
70 char *c =
const_cast<char *
>(
string);
80 #ifdef __PROPELLER_COG__
virtual char get_char()
Read and return a single character. Whether the method is blocking or not depends entirely on the imp...
A basic first-in, first-out queue implementation. The queue will overwrite itself when the maximum si...
bool is_empty() const
Determine if any elements exist.
bool is_full() const
Determine if inserting another element would overwrite data.
Interface for all classes capable of printing.
Interface for all classes capable of printing.
Queue(char(&array)[N], const int lockNumber=locknew())
Construct a queue using the given statically-allocated array.
virtual char dequeue()
Return and remove the oldest value in the buffer.
Provide a communication buffer for character data between cogs.
virtual Queue & enqueue(const char &value)
Insert an element to the buffer.
virtual void put_char(const char c)
Print a single character.
#define locknew()
Get a new lock from the pool of Propeller hardware locks.
Generic definitions and functions for the Parallax Propeller.