/* Function for consuming a command queue element. 
Function for consuming a command queue element, which has been fully processed.  */
static void command_queue_element_consume(void)
/* Function for consuming a command queue element. 
Function for consuming a command queue element, which has been fully processed.  */
static void command_queue_element_consume(void)
{
    cmd_queue_element_init(m_cmd_queue.rp);
    --(m_cmd_queue.count);   
    if (++(m_cmd_queue.rp) == PSTORAGE_CMD_QUEUE_SIZE)
    {
        m_cmd_queue.rp = 0;
    }    
}