Defines command queue, an element is free if the op_code field is not invalid. More...
#include <fds_types_internal.h>
Data Fields |
|
| fds_cmd_t | cmd [ FDS_CMD_QUEUE_SIZE ] |
| uint8_t volatile | rp |
| uint8_t volatile | count |
Detailed Description
Defines command queue, an element is free if the op_code field is not invalid.
Defines commands enqueued for flash access. At any point in time, this queue has one or more flash access operations pending if the count field is not zero. When the queue is not empty, the rp (read pointer) field points to the flash access command in progress or, if none is in progress, the command to be requested next. The queue implements a simple first in first out algorithm. Data addresses are assumed to be resident.
Field Documentation
| fds_cmd_t fds_cmd_queue_t::cmd[ FDS_CMD_QUEUE_SIZE ] |
Array to maintain flash access operation details.
| uint8_t volatile fds_cmd_queue_t::count |
Number of elements in the queue.
| uint8_t volatile fds_cmd_queue_t::rp |
The index of the command being executed.