|
Mobil_surveillance_system 1
|
00001 #ifndef FIFO_H_ 00002 #define FIFO_H_ 00003 00005 00012 //***************************************************************************** 00013 // 00014 // Types and definitions 00015 // 00016 //***************************************************************************** 00017 00018 #ifndef DEFINE_TBOOLEAN // define unsigned char as tBoolean in only that case when it hasn't been defined yet somewhere else in the scope 00019 00021 typedef unsigned char tBoolean; // use as bool 00022 #define DEFINE_TBOOLEAN 00023 00024 #endif // DEFINE_TBOOLEAN 00025 00026 00027 //***************************************************************************** 00028 // 00029 // Function declarations 00030 // 00031 //***************************************************************************** 00032 00039 tBoolean FIFO_isBufferFull( unsigned int *pulRead, unsigned int *pulWrite, unsigned int ulSize ); 00040 00041 00048 tBoolean FIFO_isBufferEmpty( unsigned int *pulRead, unsigned int *pulWrite ); 00049 00050 00058 unsigned int FIFO_getBufferCount( unsigned int *pulRead, unsigned int *pulWrite, unsigned int ulSize ); 00059 00060 00061 #endif /*FIFO_H_*/
1.7.4