|
Serial Wombat Arduino Library
|
A Class representing a Queue in the User Ram area on the Serial Wombat Chip. More...
#include <SerialWombatQueue.h>


Public Member Functions | |
| SerialWombatQueue (SerialWombatChip &serialWombat) | |
| Constructor for SerialWombatWS2812 class /. | |
| int16_t | begin (uint16_t index, uint16_t length, SerialWombatQueueType qtype=SerialWombatQueueType::QUEUE_TYPE_RAM_BYTE) |
| Initialize a Serial Wombat Queue (RAM Bytes) in User Memory Area on Serial Wombat Chip / /. | |
| int | available () |
| Queries the Serial Wombat for number bytes available to read /. | |
| int | read () |
| Reads a byte from the Serial Wombat /. | |
| void | flush () |
| Discard all received bytes. | |
| int | peek () |
| Query the Serial Wombat for the next avaialble byte, but don't remove it from the queue /. | |
| size_t | write (uint8_t data) |
| Write a byte to the Serial Wombat Queue /. | |
| size_t | write (uint16_t data) |
| Write an unsigned word to the Serial Wombat Queue /. | |
| size_t | write (uint16_t buffer[], size_t size) |
| Write unsigned words to the Serial Wombat Queue /. | |
| size_t | write (const uint16_t *buffer, size_t size) |
| Write unsigned words to the Serial Wombat Queue /. | |
| size_t | write (const uint8_t *buffer, size_t size) |
| Write bytes to the Serial Wombat Queue /. | |
| int | availableForWrite () |
| Queries the Serial Wombat for the amount of free queue space /. | |
| size_t | readBytes (char *buffer, size_t length) |
| Reads a specified number of bytes from the Serial Wombat Queue /. | |
| void | setTimeout (long timeout_mS) |
| size_t | readUInt16 (uint16_t *buffer, size_t length) |
| Reads a specified number of unsigned 16 bit words from the Serial Wombat Queue /. | |
Public Attributes | |
| uint16_t | startIndex = 0xFFFF |
| uint16_t | length = 0 |
A Class representing a Queue in the User Ram area on the Serial Wombat Chip.
Definition at line 41 of file SerialWombatQueue.h.
|
inline |
Constructor for SerialWombatWS2812 class /.
/
| serialWombat | SerialWombat chip on which the driver will run |
Definition at line 48 of file SerialWombatQueue.h.
|
inline |
Queries the Serial Wombat for number bytes available to read /.
/
Definition at line 82 of file SerialWombatQueue.h.
|
inline |
Queries the Serial Wombat for the amount of free queue space /.
/
Definition at line 315 of file SerialWombatQueue.h.
|
inline |
Initialize a Serial Wombat Queue (RAM Bytes) in User Memory Area on Serial Wombat Chip / /.
/
| index | An index in bytes for the beginning of the Queue location in Serial Wombat User Memory Area / |
| length | The length in bytes of avaialble queue space / |
Definition at line 61 of file SerialWombatQueue.h.
|
inline |
|
inline |
Query the Serial Wombat for the next avaialble byte, but don't remove it from the queue /.
/
Definition at line 120 of file SerialWombatQueue.h.
|
inline |
Reads a byte from the Serial Wombat /.
/
Definition at line 97 of file SerialWombatQueue.h.
|
inline |
Reads a specified number of bytes from the Serial Wombat Queue /.
/
| buffer | An array into which to put received bytes / |
| length | The maximum number of bytes to be received / |
Definition at line 337 of file SerialWombatQueue.h.
|
inline |
Reads a specified number of unsigned 16 bit words from the Serial Wombat Queue /.
/
| buffer | An array into which to put received words / |
| length | The maximum number of words (not bytes) to be received / |
Definition at line 410 of file SerialWombatQueue.h.
|
inline |
Definition at line 395 of file SerialWombatQueue.h.
|
inline |
Write unsigned words to the Serial Wombat Queue /.
/
| buffer | An array of uint16_t words to send / |
| size | the number of words (not bytes) to send / |
Definition at line 202 of file SerialWombatQueue.h.
|
inline |
Write bytes to the Serial Wombat Queue /.
/
| buffer | An array of uint8_t bytes to send / |
| size | the number of bytes to send / |
Definition at line 219 of file SerialWombatQueue.h.
|
inline |
Write unsigned words to the Serial Wombat Queue /.
/
| buffer | An array of uint16_t words to send / |
| size | the number of words (not bytes) to send / |
Definition at line 185 of file SerialWombatQueue.h.
|
inline |
Write an unsigned word to the Serial Wombat Queue /.
/
| data | Word to write / |
Definition at line 159 of file SerialWombatQueue.h.
|
inline |
Write a byte to the Serial Wombat Queue /.
/
| data | Byte to write / |
Definition at line 140 of file SerialWombatQueue.h.
| uint16_t SerialWombatQueue::length = 0 |
Definition at line 393 of file SerialWombatQueue.h.
| uint16_t SerialWombatQueue::startIndex = 0xFFFF |
Definition at line 392 of file SerialWombatQueue.h.