|
EmbeddedEtcher
|
Implementation for queues. More...

Go to the source code of this file.
Functions | |
| void | osQInit (osQUEUE_t *q, size_t ivarsize, uint16_t iqsize, void *istart) |
| uint8_t | osEnqueue (osQUEUE_t *q, void *data) |
| uint8_t | osDequeue (osQUEUE_t *q, void *data) |
Implementation for queues.
| uint8_t osDequeue | ( | osQUEUE_t * | q, |
| void * | data | ||
| ) |
Copy data from the q.
| q | Q we are talking about. |
| data | Pointer to a local variable where the data from the q shall end up. |
| 1 | (data successfully copied) or 0 (q is empty). |
| uint8_t osEnqueue | ( | osQUEUE_t * | q, |
| void * | data | ||
| ) |
Copy data to the q.
| q | Q we are talking about. |
| data | Pointer to a local variable where data is stored. |
| 1 | (data successfully copied) or 0 (q is full). |
| void osQInit | ( | osQUEUE_t * | q, |
| size_t | ivarsize, | ||
| uint16_t | iqsize, | ||
| void * | istart | ||
| ) |
Function to initialize a queue properly.
| q | Pointer to the memory where the q is stored. |
| ivarsize | Size of the variable type stored in the q in bytes. |
| iqsize | Number of slots of the q. |
| istart | Pointer to the array where the actual data of the q is stored. |