Subversion Repositories NaviCtrl

Rev

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

Rev 496 Rev 497
Line 29... Line 29...
29
#define WPL_STORE_TYPE_ABS 1
29
#define WPL_STORE_TYPE_ABS 1
Line 30... Line 30...
30
 
30
 
31
typedef struct
31
typedef struct
32
{
32
{
33
        u8 Index;
33
        u8 Index;
34
        u8 Type;                  // 0 = rel, 1 = abs
34
        u8 res1;                  // 0 = rel, 1 = abs
35
        u8 OverwriteFile;         // 0 = no, 1 = yes
35
        u8 OverwriteFile;         // 0 = no, 1 = yes
36
        u8 reserved[7];
36
        u8 reserved[7];
37
        s8 Name[12];
37
        s8 Name[12];
Line 58... Line 58...
58
// enables/disables waypoint function
58
// enables/disables waypoint function
59
void PointList_WPActive(u8 set);
59
void PointList_WPActive(u8 set);
60
// returns pointer to actual POI
60
// returns pointer to actual POI
61
Point_t* PointList_GetPOI(void);
61
Point_t* PointList_GetPOI(void);
62
// save actual point list to SD card
62
// save actual point list to SD card
63
#define WPL_ERROR               0
63
#define WPL_ERROR                       0
64
#define WPL_OK                  1
64
#define WPL_OK                          1
65
#define WPL_FILEEXIST   2
65
#define WPL_FILEEXIST           2
-
 
66
#define WPL_NO_SDCARD_FOUND     3
-
 
67
#define WPL_NO_WAYPOINTS        4
66
u8 PointList_SaveToFile(WPL_Store_t * pWPL_Store);
68
u8 PointList_SaveToFile(WPL_Store_t * pWPL_Store);
67
// load actual point list from SD card
69
// load actual point list from SD card
68
u8 PointList_ReadFromFile(WPL_Store_t * pWPL_Store);
70
u8 PointList_ReadFromFile(WPL_Store_t * pWPL_Store);
69
// move actual point list to ref pos., the point in the list marked by RefIndex get the RefPos afterwards
71
// move actual point list to ref pos., the point in the list marked by RefIndex get the RefPos afterwards
70
u8 PointList_Move(u8 RefIndex, GPS_Pos_t* pRefPos);
72
u8 PointList_Move(u8 RefIndex, GPS_Pos_t* pRefPos);