Mercurial > public > ostc4
diff Common/Inc/global_constants.h @ 209:2de856965c55
Merged in Ideenmodellierer/ostc4/ImprovmentSPI (pull request #9)
ImprovmentSPI
author | heinrichsweikamp <bitbucket@heinrichsweikamp.com> |
---|---|
date | Sun, 24 Mar 2019 22:09:37 +0000 |
parents | 9fc06e1e0f66 |
children | a6c0375bc950 |
line wrap: on
line diff
--- a/Common/Inc/global_constants.h Fri Mar 22 08:15:30 2019 +0000 +++ b/Common/Inc/global_constants.h Sun Mar 24 22:09:37 2019 +0000 @@ -40,10 +40,14 @@ #define SPI_SHOW_SYNC_STATS 0 #define SPI_MIN_ERROR_SHOW 10 -// SPI header by index used for synchronization check (package sequence counter) -#define SPI_HEADER_INDEX_MASTER 1 -#define SPI_HEADER_INDEX_SLAVE 2 +/* Define INDEX for information exchanged within the header */ +#define SPI_HEADER_INDEX_RX_STATE (1) +#define SPI_HEADER_INDEX_FRAME_CNT (2) +#define SPI_RX_STATE_OK (0) +#define SPI_RX_STATE_SHIFTED (1) +#define SPI_RX_STATE_OFFLINE (2) +#define SPI_RX_STATE_INVALID (3) //Text data #define TEXT_PRESSURE_UNIT "hPa"