Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 2 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | float speed; |
39 | float speed; |
40 | struct tm tv; |
40 | struct tm tv; |
41 | time_t utc; |
41 | time_t utc; |
42 | } Location; |
42 | } Location; |
43 | 43 | ||
- | 44 | // returns true when it gets an RMC based position |
|
- | 45 | typedef uint8_t (*nmeaCallback)(uint8_t* buffer, uint16_t cnt); |
|
- | 46 | ||
44 | extern bool |
47 | extern bool |
45 | updateLocation (Location *loc , usart_ctl * uc); |
48 | updateLocation (Location *loc , usart_ctl * uc); |
46 | 49 | ||
- | 50 | // set a callback |
|
- | 51 | extern void setRmcCallback(nmeaCallback callback); |
|
- | 52 | ||
- | 53 | ||
- | 54 | ||
47 | #ifdef __cplusplus |
55 | #ifdef __cplusplus |
48 | } |
56 | } |
49 | #endif |
57 | #endif |
50 | 58 | ||
51 | #endif /* INC_NMEA_H_ */ |
59 | #endif /* INC_NMEA_H_ */ |