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.
xqueue_t Struct Reference
xqueue_t structure: queue with arbitrary length. More...
#include <xqueue.h>
Data Fields | |
| uint8_t * | data |
| Assigned on initialization to existing buffer. | |
| size_t | head |
| Buffer write index. | |
| size_t | tail |
| Buffer read index. | |
| size_t | rCount |
| Read count. | |
| size_t | wCount |
| Write count. | |
| size_t | capacity |
| Maximum size of the data buffer (must be a power of 2, <= 0x8000) | |
| size_t | capacityMask |
| Mask used instead of costly modulo operator. | |
Detailed Description
xqueue_t structure: queue with arbitrary length.
Separation of write/read count allows for use in concurrent environments
Definition at line 27 of file xqueue.h.
Field Documentation
| size_t capacity |
| size_t capacityMask |
| uint8_t* data |
Generated on Wed Jul 13 2022 12:36:28 by
1.7.2