Subversion Repositories NaviCtrl

Rev

Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 85
Line 6... Line 6...
6
 
6
 
7
 
7
 
8
// possible state of an kml-document
8
// possible state of an kml-document
9
typedef enum
9
typedef enum
10
{
10
{
11
        DOC_CLOSED,
11
        KML_DOC_CLOSED,
12
        DOC_OPENED,
12
        KML_DOC_OPENED,
13
        DOC_PLACEMARK_OPENED,
13
        KML_DOC_PLACEMARK_OPENED,
14
        DOC_LINESTRING_OPENED,
14
        KML_DOC_LINESTRING_OPENED,
Line 15... Line -...
15
        DOC_END
-
 
16
}KML_DocState_t;
-
 
17
 
-
 
18
 
-
 
19
// structure of an kml-placemarkt
-
 
20
typedef struct kml_place
-
 
21
{
-
 
22
        s8                      name[10];                                                                       // the name of the placemark
-
 
23
        s8                      description[40];                                                        // some text as a description to the placemark
-
 
24
} KML_PlaceMark_t;
15
        KML_DOC_END
25
 
16
}KML_DocState_t;
26
 
17
 
27
 
-
 
28
// structure of an kml-document
18
 
29
typedef struct kml_doc
19
// structure of an kml-document
30
{
-
 
31
        u8 name[40];                                                                                    // name of the document
20
typedef struct kml_doc
Line 32... Line -...
32
        KML_DocState_t state;                                                                   // state of the kml-document
-
 
33
        File_t *file;                                                                                   // filepointer to the file where the data should be saved.
-
 
34
        KML_PlaceMark_t place;
21
{
35
} KML_Document_t;
22
        KML_DocState_t state;                                                                   // state of the kml-document
36
 
23
        File_t *file;                                                                                   // filepointer to the file where the data should be saved.
37
 
24
} KML_Document_t;
38
 
25
 
39
 
26
 
40
u8 KML_LoggGPSCoordinates(GPS_Pos_t* pGPS_Position , KML_Document_t *); // intializes the kml-document with standard filename and adds points to the file
27
u8 KML_LoggGPSCoordinates(KML_Document_t *);                            // intializes the kml-document with standard filename and adds points to the file
41
u8 KML_DocumentInit(KML_Document_t *);                                                                  // Init the new kml-document
28
u8 KML_DocumentInit(KML_Document_t *);                                          // Init the new kml-document
42
u8 KML_DocumentOpen(s8 *, KML_Document_t *);                                                    // opens a new kml-document. a new file is created on the sd-memorycard
29
u8 KML_DocumentOpen(s8 *, KML_Document_t *);                            // opens a new kml-document. a new file is created on the sd-memorycard
Line 43... Line 30...
43
u8 KML_DocumentClose(KML_Document_t *doc);                                                              // closes the specified document saving remaining data to the file.
30
u8 KML_DocumentClose(KML_Document_t *doc);                                      // closes the specified document saving remaining data to the file.