queue.h File Reference

This graph shows which files directly or indirectly include this file:


Data Structures

struct  queueType

Defines

#define QUEUEB_SIZE   100

Functions

unsigned char queueGet (queueType *q)
 Devuelve un dato de la cola de chars.
void queueAdd (queueType *q, unsigned char num)
 Agrega un dato a la cola de chars.
unsigned char queueFull (queueType *q)
 Permite saber si una cola esta llena o no.
unsigned char queueEmpty (queueType *q)
 Permite saber si una cola esta vacia o no.
void queueReset (queueType *q)
 Inicializa todos los valores de una cola.

Define Documentation

#define QUEUEB_SIZE   100


Function Documentation

void queueAdd ( queueType q,
unsigned char  num 
)

Agrega un dato a la cola de chars.

Parameters:
q es un puntero a un queueType
num es el dato a agregar
See also:
queueGet() and queueFull() and queueEmpty() and queueReset()

unsigned char queueEmpty ( queueType q  ) 

Permite saber si una cola esta vacia o no.

Parameters:
q es un puntero a un queueType
Returns:
Retorna 1 si la cola esta vacia, 0 en otro caso
See also:
queueAdd() and queueFull() and queueGet() and queueReset()

unsigned char queueFull ( queueType q  ) 

Permite saber si una cola esta llena o no.

Parameters:
q es un puntero a un queueType
Returns:
Retorna 1 si la cola esta llena, 0 en otro caso
See also:
queueAdd() and queueGet() and queueEmpty() and queueReset()

unsigned char queueGet ( queueType q  ) 

Devuelve un dato de la cola de chars.

Parameters:
q es un puntero a un queueType
Returns:
Retorna el dato de la cola apuntado por tail
See also:
queueAdd() and queueFull() and queueEmpty() and queueReset()

void queueReset ( queueType q  ) 

Inicializa todos los valores de una cola.

Parameters:
q es un puntero a un queueType
See also:
queueAdd() and queueFull() and queueGet() and queueEmpty()


Generated on Thu Aug 21 14:29:39 2008 for Medidor de consumo by  doxygen 1.5.6