Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SoftSerial MAX14690 Buffer
Fork of rtos_threading_with_callback by
TxQueue/txQueue.h
- Committer:
- lwehmeier
- Date:
- 2018-02-25
- Revision:
- 2:bf699e054b34
File content as of revision 2:bf699e054b34:
#pragma once #include "linkLayer.h" #include "rtos.h" class TxQueue { public: bool addPacket(linkPacket *lp); bool isFull() { return q.full(); } bool hasNext() { return !q.empty(); } linkPacket* getNext(); protected: rtos::Queue< linkPacket, 24> q; //max sz == 16 const unsigned maxQueueSize = 24; };