Rev 1036 | Rev 1064 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1036 | Rev 1051 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | //struct str_ToNaviCtrl_Version ToNaviCtrl_Version; |
5 | //struct str_ToNaviCtrl_Version ToNaviCtrl_Version; |
6 | //struct str_FromNaviCtrl_Version FromNaviCtrl_Version; |
6 | //struct str_FromNaviCtrl_Version FromNaviCtrl_Version; |
7 | struct str_ToNaviCtrl ToNaviCtrl; |
7 | struct str_ToNaviCtrl ToNaviCtrl; |
8 | struct str_FromNaviCtrl FromNaviCtrl; |
8 | struct str_FromNaviCtrl FromNaviCtrl; |
9 | struct str_FromNaviCtrl_Value FromNaviCtrl_Value; |
9 | struct str_FromNaviCtrl_Value FromNaviCtrl_Value; |
- | 10 | struct str_SPI_VersionInfo SPI_VersionInfo; |
|
Line 10... | Line 11... | ||
10 | 11 | ||
11 | unsigned char SPI_BufferIndex; |
12 | unsigned char SPI_BufferIndex; |
Line 12... | Line 13... | ||
12 | unsigned char SPI_RxBufferIndex; |
13 | unsigned char SPI_RxBufferIndex; |
Line 41... | Line 42... | ||
41 | 42 | ||
42 | ToNaviCtrl.Command = SPI_CMD_USER; |
43 | ToNaviCtrl.Command = SPI_CMD_USER; |
43 | ToNaviCtrl.IntegralNick = 0; |
44 | ToNaviCtrl.IntegralNick = 0; |
44 | ToNaviCtrl.IntegralRoll = 0; |
45 | ToNaviCtrl.IntegralRoll = 0; |
- | 46 | SPI_RxDataValid = 0; |
|
- | 47 | ||
- | 48 | SPI_VersionInfo.Major = VERSION_MAJOR; |
|
- | 49 | SPI_VersionInfo.Minor = VERSION_MINOR; |
|
- | 50 | SPI_VersionInfo.Patch = VERSION_PATCH; |
|
45 | SPI_RxDataValid = 0; |
51 | SPI_VersionInfo.Compatible = NC_SPI_COMPATIBLE; |
Line 46... | Line 52... | ||
46 | } |
52 | } |
47 | 53 | ||
48 | //------------------------------------------------------ |
54 | //------------------------------------------------------ |
Line 218... | Line 224... | ||
218 | else ToNaviCtrl.Param.Byte[0] = WinkelOut.CalcState; |
224 | else ToNaviCtrl.Param.Byte[0] = WinkelOut.CalcState; |
219 | ToNaviCtrl.Param.Int[1] = HoehenWert; |
225 | ToNaviCtrl.Param.Int[1] = HoehenWert; |
220 | break; |
226 | break; |
Line 221... | Line 227... | ||
221 | 227 | ||
222 | case SPI_CMD_VERSION: |
228 | case SPI_CMD_VERSION: |
223 | ToNaviCtrl.Param.Byte[0] = VersionInfo.Hauptversion; |
229 | ToNaviCtrl.Param.Byte[0] = SPI_VersionInfo.Major; |
224 | ToNaviCtrl.Param.Byte[1] = VersionInfo.Nebenversion; |
- | |
225 | ToNaviCtrl.Param.Byte[2] = VersionInfo.PCKompatibel; |
230 | ToNaviCtrl.Param.Byte[1] = SPI_VersionInfo.Minor; |
226 | ToNaviCtrl.Param.Byte[3] = VersionInfo.Patch; |
231 | ToNaviCtrl.Param.Byte[2] = SPI_VersionInfo.Patch; |
227 | ToNaviCtrl.Param.Byte[4] = VersionInfo.NaviKompatibel; |
232 | ToNaviCtrl.Param.Byte[3] = SPI_VersionInfo.Compatible; |
228 | break; |
233 | break; |
Line 229... | Line 234... | ||
229 | } |
234 | } |