Rev 247 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
41 | ingob | 1 | #ifndef __UART0_H |
2 | #define __UART0_H |
||
3 | |||
49 | ingob | 4 | typedef enum |
5 | { |
||
6 | UART0_UNDEF, |
||
7 | UART0_MK3MAG, |
||
8 | UART0_MKGPS |
||
9 | } UART0_MuxerState_t; |
||
10 | |||
11 | extern UART0_MuxerState_t UART0_Muxer; |
||
12 | |||
116 | killagreg | 13 | typedef struct |
14 | { |
||
15 | u8 SWMajor; |
||
16 | u8 SWMinor; |
||
17 | u8 ProtoMajor; |
||
18 | u8 ProtoMinor; |
||
19 | u8 SWPatch; |
||
20 | u8 Reserved[5]; |
||
21 | } __attribute__((packed)) MKOSD_VersionInfo_t; |
||
49 | ingob | 22 | |
116 | killagreg | 23 | extern MKOSD_VersionInfo_t MKOSD_VersionInfo; |
24 | |||
41 | ingob | 25 | void UART0_Init (void); |
245 | killagreg | 26 | void UART0_Connect_to_MKGPS(u16 Baudrate); |
41 | ingob | 27 | void UART0_Connect_to_MK3MAG(void); |
111 | killagreg | 28 | void UART0_TransmitTxData(void); |
29 | void UART0_ProcessRxData(void); |
||
247 | killagreg | 30 | u8 UART0_GetMKOSDVersion(void); |
31 | u8 UART0_GetUBXVersion(void); |
||
32 | u8 UART0_UBXSendCFGMsg(u8* pData, u16 Len); |
||
41 | ingob | 33 | |
34 | #endif //__UART0_H |
||
35 |