ISIX-RTOS - small operating system for ARM microcontrollers 1.2

fifo.h

Go to the documentation of this file.
00001 /*
00002  * fifo.h
00003  *
00004  *  Created on: 24-03-2011
00005  *      Author: lucck
00006  */
00007 
00008 #ifndef ISIX_PRV_FIFO_H_
00009 #define ISIX_PRV_FIFO_H_
00010 /*-------------------------------------------------------*/
00011 
00012 /* Queue structure */
00013 struct fifo_struct
00014 {
00015         enum ihandle_type type; //Structure type
00016         char *rx_p;     //Pointer to rx
00017     char *tx_p;     //Pointer to tx
00018     char *mem_p;    //Pointer to allocated memory
00019     int size;       //Total fifo size
00020     int elem_size; //Element count
00021     sem_t rx_sem;  //Semaphore rx
00022     sem_t tx_sem;  //Semaphore for tx
00023 };
00024 
00025 
00026 /*-------------------------------------------------------*/
00027 #endif /* FIFO_H_ */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines