IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
queue.h File Reference

Operates a circular queue. More...

#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
Include dependency graph for queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Queue
 

Macros

#define QUEUE_SIZE   (64)
 

Functions

int message_dequeue (volatile struct Queue *q, uint8_t *data)
 Obtains one byte from the circular buffer. More...
 
int message_enqueue (volatile struct Queue *q, uint8_t data)
 Adds a byte to the circular buffer. More...
 
int message_queue_empty (volatile struct Queue *q)
 Checks if the queue is empty. More...
 
int message_queue_full (volatile struct Queue *q)
 Checks is the queue is full. More...
 

Detailed Description

Operates a circular queue.

Author
_KEMET, Ltd
Date
March 2018
Version
Release 1.0.6
Attention

© COPYRIGHT 2018 _KEMET, Ltd

  Copyright (c) 2018, _KEMET, Ltd
  All rights reserved.

  THIS SOFTWARE IS PROVIDED BY _KEMET, Ltd ''AS IS'' AND ANY
  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  DISCLAIMED. IN NO EVENT SHALL _KEMET, Ltd BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file queue.h.

Macro Definition Documentation

◆ QUEUE_SIZE

#define QUEUE_SIZE   (64)

Definition at line 37 of file queue.h.