|
Mobil_surveillance_system 1
|
GPSpacket conatainer header file. More...
Go to the source code of this file.
Data Structures | |
| struct | tUTC_time |
| Type of UTC time. More... | |
| struct | tPosition_LLA |
| Type of the position. More... | |
| struct | tGPSInfo |
| Type of GPS packets. More... | |
| struct | tGPSInfoArray |
| Type of array of GPS packets. More... | |
Defines | |
| #define | DEFINE_TBOOLEAN |
| #define | GPSINFO_ARRAY_SIZE 16 |
| the size of the tGPSInfoArray type in tGPSInfo type | |
| #define | GPS_INFO_QUEU_SIZE 100 |
| maximum size of the GPSInfo packets queue | |
| #define | UTC_TIME_SIZE 5 |
| #define | POSITION_LLA_SIZE 11 |
| #define | GPSINFO_SIZE 16 |
Typedefs | |
| typedef unsigned char | tBoolean |
Functions | |
| void | GPSpacket_initGPSInfoArray (tGPSInfoArray *pGPSInfoArray) |
| void | GPSpacket_clearGPSInofArray (tGPSInfoArray *pGPSInfoArray) |
| tGPSInfo * | GPSpacket_getGPSInfoArray (tGPSInfoArray *pGPSInfoArray) |
| void | GPSpacket_pushGPSInfoArray (tGPSInfoArray *pGPSInfoArray, tGPSInfo *pGPSInfo) |
| tGPSInfo | GPSpacket_popGPSInfoArray (tGPSInfoArray *pGPSInfoArray) |
GPSpacket conatainer header file.
This file contains the definitons of the tUTC_time, tPosition_LLA, tGPSInfo, tGPSInfoArray types. The file also contains the prototypes of the GPSpackets unit functions.
Definition in file GPSpacket.h.
| #define UTC_TIME_SIZE 5 |
Definitions of the sizes of my own types, because the function sizeof won't work propery when the size of the struct is an odd number.
Definition at line 37 of file GPSpacket.h.
| typedef unsigned char tBoolean |
bool type defination
Definition at line 23 of file GPSpacket.h.
| void GPSpacket_clearGPSInofArray | ( | tGPSInfoArray * | pGPSInfoArray | ) |
| pGPSInfoArray |
Definition at line 29 of file GPSpacket.c.
{
unsigned int uiIdx;
tGPSInfo tGPSInfoBlank = {'\0'};
for(uiIdx = 0; uiIdx < pGPSInfoArray->uiIdx; uiIdx++){
pGPSInfoArray->GPSInfoArray[uiIdx] = tGPSInfoBlank;
}
pGPSInfoArray->uiIdx = 0;
pGPSInfoArray->uiCurrentSize = 1;
}
| tGPSInfo* GPSpacket_getGPSInfoArray | ( | tGPSInfoArray * | pGPSInfoArray | ) |
| pGPSInfoArray |
Definition at line 46 of file GPSpacket.c.
{
return pGPSInfoArray->GPSInfoArray;
}
| void GPSpacket_initGPSInfoArray | ( | tGPSInfoArray * | pGPSInfoArray | ) |
| pGPSInfoArray |
Definition at line 11 of file GPSpacket.c.
{
unsigned int uiIdx;
tGPSInfo tGPSInfoBlank = {'\0'};
for(uiIdx = 0; uiIdx < 15; uiIdx++){
pGPSInfoArray->GPSInfoArray[uiIdx] = tGPSInfoBlank;
}
pGPSInfoArray->uiIdx = 0;
pGPSInfoArray->uiCurrentSize = 1;
}
| tGPSInfo GPSpacket_popGPSInfoArray | ( | tGPSInfoArray * | pGPSInfoArray | ) |
| pGPSInfoArray,: |
Definition at line 63 of file GPSpacket.c.
{
pGPSInfoArray->uiCurrentSize--;
return pGPSInfoArray->GPSInfoArray[--pGPSInfoArray->uiIdx];
}
| void GPSpacket_pushGPSInfoArray | ( | tGPSInfoArray * | pGPSInfoArray, |
| tGPSInfo * | pGPSInfo | ||
| ) |
| pGPSInfoArray | |
| pGPSInfo |
Definition at line 54 of file GPSpacket.c.
{
pGPSInfoArray->GPSInfoArray[pGPSInfoArray->uiIdx++] = *pGPSInfo;
pGPSInfoArray->uiCurrentSize++;
}
1.7.4