Appiko
SDK_Configuration_Common.h
Go to the documentation of this file.
1 
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __S2LP_PKT_TEST_COMMON_H
25 #define __S2LP_PKT_TEST_COMMON_H
26 
28 
29 
30 #define USE_HIGH_BAND 1
31 //#define USE_MIDDLE_BAND 1
32 
33 
34 #ifdef __cplusplus
35  extern "C" {
36 #endif
37 
64 /* Radio configuration parameters */
65 
66 #ifdef USE_MIDDLE_BAND
67 #define BASE_FREQUENCY 433000000
68 #endif
69 
70 #ifdef USE_HIGH_BAND
71 #define BASE_FREQUENCY 866000000
72 #endif
73 
74 #define MODULATION_SELECT MOD_2GFSK_BT1
75 #define DATARATE 150
76 #define FREQ_DEVIATION 150
77 #define BANDWIDTH 1500
78 
79 #define POWER_DBM 14/*.0*/
80 
81 
82 
83 /* Packet configuration parameters */
84 #define PREAMBLE_LENGTH PREAMBLE_BYTE(3)
85 #define SYNC_LENGTH SYNC_BYTE(2)
86 #define SYNC_WORD 0x369B
87 #define VARIABLE_LENGTH 0
88 #define EXTENDED_LENGTH_FIELD 0
89 #define CRC_MODE PKT_CRC_MODE_8BITS
90 #define EN_ADDRESS 0
91 #define EN_FEC 0
92 #define EN_WHITENING 1
93 
94 
95 /* Wake Up timer in ms for LDC mode */
96 #define WAKEUP_TIMER 100/*.0*/
97 
98 
99 #define PREAMBLE_BYTE(v) (4*v)
100 #define SYNC_BYTE(v) (8*v)
101 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif
123 
124 /******************* (C) COPYRIGHT 2018 STMicroelectronics *****END OF FILE****/
Configuration and management of S2-LP RF Analog and Digital part.