BlueNRG-MS pack for STM32CubeMX: includes/bluenrg_conf_template.h Source File

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
bluenrg_conf_template.h
Go to the documentation of this file.
1 
52 /* Define to prevent recursive inclusion -------------------------------------*/
53 #ifndef __BLUENRG_CONF_TEMPLATE_H
54 #define __BLUENRG_CONF_TEMPLATE_H
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 /* Includes ------------------------------------------------------------------*/
61 #include <string.h>
62 
63 /*---------- Print messages from files at user level -----------*/
64 #define DEBUG 0
65 /*---------- Print the data travelling over the SPI in the .csv format for the GUI -----------*/
66 #define PRINT_CSV_FORMAT 0
67 /*---------- Number of Bytes reserved for HCI Read Packet -----------*/
68 #define HCI_READ_PACKET_SIZE 128
69 /*---------- Number of Bytes reserved for HCI Max Payload -----------*/
70 #define HCI_MAX_PAYLOAD_SIZE 128
71 /*---------- Scan Interval: time interval from when the Controller started its last scan until it begins the subsequent scan (for a number N, Time = N x 0.625 msec) -----------*/
72 #define SCAN_P 16384
73 /*---------- Scan Window: amount of time for the duration of the LE scan (for a number N, Time = N x 0.625 msec) -----------*/
74 #define SCAN_L 16384
75 /*---------- Supervision Timeout for the LE Link (for a number N, Time = N x 10 msec) -----------*/
76 #define SUPERV_TIMEOUT 60
77 /*---------- Minimum Connection Period (for a number N, Time = N x 1.25 msec) -----------*/
78 #define CONN_P1 40
79 /*---------- Maximum Connection Period (for a number N, Time = N x 1.25 msec) -----------*/
80 #define CONN_P2 40
81 /*---------- Minimum Connection Length (for a number N, Time = N x 0.625 msec) -----------*/
82 #define CONN_L1 2000
83 /*---------- Maximum Connection Length (for a number N, Time = N x 0.625 msec) -----------*/
84 #define CONN_L2 2000
85 /*---------- Advertising Type -----------*/
86 #define ADV_DATA_TYPE ADV_IND
87 /*---------- Minimum Advertising Interval (for a number N, Time = N x 0.625 msec) -----------*/
88 #define ADV_INTERV_MIN 2048
89 /*---------- Maximum Advertising Interval (for a number N, Time = N x 0.625 msec) -----------*/
90 #define ADV_INTERV_MAX 4096
91 /*---------- Minimum Connection Event Interval (for a number N, Time = N x 1.25 msec) -----------*/
92 #define L2CAP_INTERV_MIN 9
93 /*---------- Maximum Connection Event Interval (for a number N, Time = N x 1.25 msec) -----------*/
94 #define L2CAP_INTERV_MAX 20
95 /*---------- Timeout Multiplier (for a number N, Time = N x 10 msec) -----------*/
96 #define L2CAP_TIMEOUT_MULTIPLIER 600
97 
98 #define HCI_DEFAULT_TIMEOUT_MS 1000
99 
100 #define BLUENRG_memcpy memcpy
101 #define BLUENRG_memset memset
102 
103 #if (DEBUG == 1)
104 #define PRINTF(...) printf(__VA_ARGS__)
105 #else
106 #define PRINTF(...)
107 #endif
108 
109 #if PRINT_CSV_FORMAT
110 #include <stdio.h>
111 #define PRINT_CSV(...) printf(__VA_ARGS__)
112 void print_csv_time(void);
113 #else
114 #define PRINT_CSV(...)
115 #endif
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 #endif /*__BLUENRG_CONF_TEMPLATE_H */
121 
122 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13