Initial release

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

fds_cmd_queue_t Struct Reference

fds_cmd_queue_t Struct Reference

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]
 Array to maintain flash access operation details.
uint8_t volatile rp
 The index of the command being executed.
uint8_t volatile count
 Number of elements in the queue.

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.

Definition at line 140 of file fds_types_internal.h.


Field Documentation

fds_cmd_t cmd[FDS_CMD_QUEUE_SIZE]

Array to maintain flash access operation details.

Definition at line 142 of file fds_types_internal.h.

uint8_t volatile count

Number of elements in the queue.

Definition at line 144 of file fds_types_internal.h.

uint8_t volatile rp

The index of the command being executed.

Definition at line 143 of file fds_types_internal.h.