Skip to content

Commit 4c5c07f

Browse files
committed
lib: stm32wba: Update Link Layer and LE integration on STM32WBA
Update Link Layer and LE porting header files to be aligned on STM32Cube_FW_WBA Release 1.6.0 Signed-off-by: Vincent Tardy <[email protected]>
1 parent d46f845 commit 4c5c07f

File tree

26 files changed

+3836
-349
lines changed

26 files changed

+3836
-349
lines changed

lib/stm32wba/Common/WPAN/Modules/scm.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* USER CODE BEGIN Header */
21
/**
32
******************************************************************************
43
* @file scm.h
@@ -16,7 +15,6 @@
1615
*
1716
******************************************************************************
1817
*/
19-
/* USER CODE END Header */
2018

2119
/* Define to prevent recursive inclusion -------------------------------------*/
2220
#ifndef SCM_H
@@ -56,9 +54,6 @@ typedef enum {
5654
SCM_USER_APP,
5755
SCM_USER_LL_FW,
5856
SCM_USER_LL_HW_RCO_CLBR,
59-
/* USER CODE BEGIN SCM_USER */
60-
61-
/* USER CODE END SCM_USER */
6257
TOTAL_CLIENT_NUM, /* To be at the end of the enum */
6358
} scm_user_id_t;
6459

lib/stm32wba/Common/WPAN/Modules/stm_list.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* USER CODE BEGIN Header */
21
/**
32
******************************************************************************
43
* @file stm_list.h
@@ -16,7 +15,6 @@
1615
*
1716
******************************************************************************
1817
*/
19-
/* USER CODE END Header */
2018

2119
#ifndef STM_LIST_H
2220
#define STM_LIST_H

lib/stm32wba/STM32_WPAN/link_layer/ll_cmd_lib/config/ble_full/ll_fw_config.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88
* Synopsys MIT License:
99
* Copyright (c) 2020-Present Synopsys, Inc
1010
*
11-
* Permission is hereby granted, free of charge, to any person obtaining a copy of the software and
12-
* associated documentation files (the Software), to deal in the Software without restriction, including
13-
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14-
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
15-
* following conditions:
16-
*
17-
* The above copyright notice and this permission notice shall be included in all copies or substantial
18-
* portions of the Software.
19-
*
11+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
12+
* the Software), to deal in the Software without restriction, including without
13+
* limitation the rights to use, copy, modify, merge, publish, distribute,
14+
* sublicense, and/or sell copies of the Software, and to permit persons to whom
15+
* the Software is furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all
18+
* copies or substantial portions of the Software.
19+
*
2020
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2121
* IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22-
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL
23-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24-
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE
25-
* ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26-
* OTHER DEALINGS IN THE SOFTWARE.
22+
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM,
25+
* OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2726
*
2827
* */
2928
#ifndef INCLUDE_LL_FW_CONFIG_H

lib/stm32wba/STM32_WPAN/link_layer/ll_cmd_lib/inc/_40nm_reg_files/DWC_ble154combo.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@
99
* Synopsys MIT License:
1010
* Copyright (c) 2020-Present Synopsys, Inc
1111
*
12-
* Permission is hereby granted, free of charge, to any person obtaining a copy of the software and
13-
* associated documentation files (the Software), to deal in the Software without restriction, including
14-
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15-
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
16-
* following conditions:
17-
*
18-
* The above copyright notice and this permission notice shall be included in all copies or substantial
19-
* portions of the Software.
20-
*
12+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
13+
* the Software), to deal in the Software without restriction, including without
14+
* limitation the rights to use, copy, modify, merge, publish, distribute,
15+
* sublicense, and/or sell copies of the Software, and to permit persons to whom
16+
* the Software is furnished to do so, subject to the following conditions:
17+
*
18+
* The above copyright notice and this permission notice shall be included in all
19+
* copies or substantial portions of the Software.
20+
*
2121
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2222
* IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23-
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL
24-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25-
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE
26-
* ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27-
* OTHER DEALINGS IN THE SOFTWARE.
23+
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM,
26+
* OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2827
*
2928
* */
3029

lib/stm32wba/STM32_WPAN/link_layer/ll_cmd_lib/inc/bsp.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*$Id: //dwh/bluetooth/DWC_ble154combo/firmware/rel/1.32a-lca02/firmware/public_inc/bsp.h#2 $*/
1+
/*$Id: //dwh/bluetooth/DWC_ble154combo/firmware/rel/2.00a-lca01/firmware/public_inc/bsp.h#1 $*/
22

33
/**
44
********************************************************************************
@@ -9,22 +9,21 @@
99
* Synopsys MIT License:
1010
* Copyright (c) 2020-Present Synopsys, Inc
1111
*
12-
* Permission is hereby granted, free of charge, to any person obtaining a copy of the software and
13-
* associated documentation files (the Software), to deal in the Software without restriction, including
14-
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15-
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
16-
* following conditions:
17-
*
18-
* The above copyright notice and this permission notice shall be included in all copies or substantial
19-
* portions of the Software.
20-
*
12+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
13+
* the Software), to deal in the Software without restriction, including without
14+
* limitation the rights to use, copy, modify, merge, publish, distribute,
15+
* sublicense, and/or sell copies of the Software, and to permit persons to whom
16+
* the Software is furnished to do so, subject to the following conditions:
17+
*
18+
* The above copyright notice and this permission notice shall be included in all
19+
* copies or substantial portions of the Software.
20+
*
2121
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2222
* IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23-
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL
24-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25-
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE
26-
* ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27-
* OTHER DEALINGS IN THE SOFTWARE.
23+
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM,
26+
* OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2827
*
2928
* */
3029

@@ -39,7 +38,7 @@
3938
#define PRIORITY_LEVEL_MASK 0x0F
4039

4140
/**
42-
* This macros specify the different combinations that can be used to enable or disable
41+
* This macros specify the different combinations that can be used to enable or disable
4342
* a specific ISR
4443
*/
4544

@@ -280,6 +279,7 @@ typedef enum Debug_GPIO_e{
280279
DBG_IO_ED_TMR_HNDL ,
281280
DBG_IO_OS_TMR_EVNT_CBK ,
282281
DBG_IO_PROFILE_MARKER_PHY_WAKEUP_TIME ,
282+
DBG_IO_PROFILE_MARKER_BLOCKING_PHY_WAKEUP_TIME ,
283283
DBG_IO_PROFILE_END_DRIFT_TIME ,
284284
DBG_IO_PROC_RADIO_RCV ,
285285
DBG_IO_EVNT_TIME_UPDT ,
@@ -513,7 +513,7 @@ void bsp_mcu_slp(void);
513513
* @retval None.
514514
*/
515515

516-
void bsp_gpio_clear(uint8_t gpio_num);
516+
void bsp_gpio_clear(uint8_t gpio_num);
517517

518518

519519
/**
@@ -523,7 +523,7 @@ void bsp_gpio_clear(uint8_t gpio_num);
523523
*
524524
* @retval None.
525525
*/
526-
void bsp_gpio_set(uint8_t gpio_num);
526+
void bsp_gpio_set(uint8_t gpio_num);
527527

528528

529529
/**
@@ -591,7 +591,7 @@ void bsp_switch_to_lw_isr(uint8_t priority);
591591
void bsp_wait_for_busclkrdy(void);
592592
/**
593593
* @brief used to start temperature calculations
594-
* if the upper layer has informed the link layer by the existence of temperature sensor through @ref ll_intf_set_temperature_sensor_stat() or llhwc_cmn_set_temperature_sensor_stat() .
594+
* if the upper layer has informed the link layer by the existence of temperature sensor through @ref ll_intf_set_temperature_sensor_stat() or llhwc_cmn_set_temperature_sensor_stat() .
595595
* New temperature will be requested in the following cases:
596596
* 1- at initialization when the @ref ll_intf_set_temperature_sensor_state or llhwc_cmn_set_temperature_sensor_stat is called
597597
* 2- before any radio event

lib/stm32wba/STM32_WPAN/link_layer/ll_cmd_lib/inc/common_types.h

Lines changed: 95 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*$Id: //dwh/bluetooth/DWC_ble154combo/firmware/rel/1.32a-lca02/firmware/public_inc/common_types.h#3 $*/
1+
/*$Id: //dwh/bluetooth/DWC_ble154combo/firmware/rel/2.00a-lca01/firmware/public_inc/common_types.h#1 $*/
22
/**
33
********************************************************************************
44
* @file common_types.h
@@ -8,22 +8,21 @@
88
* Synopsys MIT License:
99
* Copyright (c) 2020-Present Synopsys, Inc
1010
*
11-
* Permission is hereby granted, free of charge, to any person obtaining a copy of the software and
12-
* associated documentation files (the Software), to deal in the Software without restriction, including
13-
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14-
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
15-
* following conditions:
16-
*
17-
* The above copyright notice and this permission notice shall be included in all copies or substantial
18-
* portions of the Software.
19-
*
11+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
12+
* the Software), to deal in the Software without restriction, including without
13+
* limitation the rights to use, copy, modify, merge, publish, distribute,
14+
* sublicense, and/or sell copies of the Software, and to permit persons to whom
15+
* the Software is furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all
18+
* copies or substantial portions of the Software.
19+
*
2020
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2121
* IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22-
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL
23-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24-
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE
25-
* ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26-
* OTHER DEALINGS IN THE SOFTWARE.
22+
* FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM,
25+
* OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2726
*
2827
* */
2928

@@ -101,10 +100,6 @@
101100
/****************** User configuration **********************************/
102101
#define CS_TESTING TRUE
103102

104-
#ifndef SUPPORT_GNRC_SCHDLR_IF
105-
#define SUPPORT_GNRC_SCHDLR_IF 1 /* Enable\Disable event EXTRNL_GNRC in Ble event manager. Enable:1 - Disable:0 */
106-
#endif /* SUPPORT_GNRC_SCHDLR_IF */
107-
108103
/********************* Macros **********************************/
109104

110105
#ifndef SUCCESS
@@ -192,6 +187,10 @@ typedef enum {
192187
LE_2M = 0x02,
193188
LE_CODED_S8 = 0x03,
194189
LE_CODED = 0x04,
190+
/*=============== Channel Sounding ===============*/
191+
#if (SUPPORT_CHANNEL_SOUNDING &&( SUPPORT_MASTER_CONNECTION || SUPPORT_SLAVE_CONNECTION))
192+
LE_2M_2BT = 0x08,
193+
#endif /*SUPPORT_CHANNEL_SOUNDING &&( SUPPORT_MASTER_CONNECTION || SUPPORT_SLAVE_CONNECTION)*/
195194
#if (SUPPORT_LE_POWER_CONTROL)
196195
LE_PHY_UNDEFINED = 0xFC,
197196
NEW_PHY_CODED_S2 = 0xFD,
@@ -216,6 +215,7 @@ typedef struct time_st {
216215
uint16_t time_stamp_fine;
217216
uint8_t overflow_flag;
218217
} ble_time_t, *ble_time_p;
218+
219219
typedef enum dpslp_state {
220220
DEEP_SLEEP_ENABLE = 0x01,
221221
DEEP_SLEEP_DISABLE = 0x00
@@ -309,8 +309,8 @@ typedef enum ant_intrv_type_enum {
309309
* @brief structure that hold antenna diversity parameters information.
310310
*/
311311
typedef struct _antenna_diversity_st{
312-
ant_intrv_type_enum_t ant_intrv_type; /* antenna interval type: FIXED_TIME(us) or PACKETS_NUMBER(n) */
313-
uint32_t ant_intrv_value; /* antenna interval value based on type; us for FIXED_TIME, n for PACKETS_NUMBER */
312+
ant_intrv_type_enum_t ant_intrv_type; /* antenna interval type: FIXED_TIME(us) or PACKETS_NUMBER(n) */
313+
uint32_t ant_intrv_value; /* antenna interval value based on type; us for FIXED_TIME, n for PACKETS_NUMBER */
314314
uint16_t wntd_coord_shrt_addr; /* wanted coordinator/router short address */
315315
uint8_t wntd_coord_ext_addr[EXT_ADDRESS_LENGTH]; /* wanted coordinator/router extended address */
316316
uint8_t max_rx_ack_retries; /* max number of retries to receive ack in case of ack error reception*/
@@ -391,7 +391,7 @@ typedef enum {
391391
HCI_ACL_DATA_PCKT = 0x02,
392392
HCI_EVNT_PCKT = 0x04,
393393
HCI_ISO_DATA_PCKT = 0x05,
394-
394+
395395

396396
#if (SUPPORT_MAC && SUPPORT_MAC_HCI_UART)
397397
HCI_MAC_REQ = 0x0A,
@@ -445,7 +445,9 @@ typedef enum {
445445
/**
446446
* The default PHY periodic calibration period in second. this Macro can be set to any value , Zero means that phy periodic calibration is disabled
447447
*/
448+
#ifndef DEFAULT_PHY_CALIBRATION_PERIOD
448449
#define DEFAULT_PHY_CALIBRATION_PERIOD 10 /* Time period for PHY calibration = 10s */
450+
#endif /* DEFAULT_PHY_CALIBRATION_PERIOD */
449451

450452
#if defined(PHY_40nm_3_00_a) || defined(PHY_40nm_3_40_a)
451453
#define SUPPORT_MAC_PHY_CONT_TESTING_CMDS 1
@@ -459,8 +461,9 @@ typedef enum {
459461
#ifndef EXTERNAL_CUSTOM_CMDS
460462
#define EXTERNAL_CUSTOM_CMDS 0 /* Indicates that an external custom HCI commands module exists */
461463
#endif /* EXTERNAL_CUSTOM_CMDS */
464+
#ifndef SUPPORT_ZIGBEE_PHY_CERTIFICATION
462465
#define SUPPORT_ZIGBEE_PHY_CERTIFICATION 0 /* 0 disable , 1 enable .. used to enable support of hci command required to implement zigbee phy Test cases*/
463-
466+
#endif /* SUPPORT_ZIGBEE_PHY_CERTIFICATION */
464467

465468
#if (!USE_HCI_TRANSPORT) && (SUPPORT_BLE) /* SUPPORT_HCI_EVENT_ONLY cannot be supported with default HCI_transport */
466469
/* if this marco is enabled it will enable the below features
@@ -476,7 +479,9 @@ typedef enum {
476479
#define SUPPORT_HCI_EVENT_ONLY_TESTING 0
477480
#endif /* SUPPORT_HCI_EVENT_ONLY_TESTING */
478481

482+
#ifndef SUPPORT_HW_AUDIO_SYNC_SIGNAL
479483
#define SUPPORT_HW_AUDIO_SYNC_SIGNAL 0
484+
#endif /* SUPPORT_HW_AUDIO_SYNC_SIGNAL */
480485

481486
#if SUPPORT_LE_PAWR_SYNC_ROLE
482487
#define SUPPORT_PAWR_CUSTOM_SYNC 1
@@ -491,9 +496,13 @@ typedef enum {
491496

492497

493498

499+
#ifndef SUPPORT_TIM_UPDT
494500
#define SUPPORT_TIM_UPDT 1
501+
#endif /* SUPPORT_TIM_UPDT */
495502

503+
#ifndef SUPPORT_RX_DTP_CONTROL
496504
#define SUPPORT_RX_DTP_CONTROL 1 /* Enable\Disable ACL Rx data throughput feature */
505+
#endif /* SUPPORT_RX_DTP_CONTROL */
497506

498507
#ifndef SUPPORT_CUSTOM_ADV_SCAN_TESTING
499508
#define SUPPORT_CUSTOM_ADV_SCAN_TESTING 0
@@ -508,4 +517,67 @@ typedef enum {
508517
#endif /* SUPPORT_EXT_FEATURE_SET */
509518

510519

520+
#ifndef SUPPORT_CONFIGURABLE_GAIN_FIX
521+
#define SUPPORT_CONFIGURABLE_GAIN_FIX 0 /* Enable\Disable configurable gain fix support */
522+
#endif /* SUPPORT_CONFIGURABLE_GAIN_FIX */
523+
524+
#if SUPPORT_CONFIGURABLE_GAIN_FIX
525+
#define PREEMPH_GAIN_COEFF_STEP_SIZE 10 /* percentage margin of single step */
526+
#define GAIN_FIX_WAKEUP_TIME_OVERHEAD 4 /* in sleep timer units, the added time overhead from patching all pre-emphasis coefficients */
527+
#else
528+
#define GAIN_FIX_WAKEUP_TIME_OVERHEAD 0
529+
#endif /* SUPPORT_CONFIGURABLE_GAIN_FIX */
530+
531+
#ifndef SUPPORT_PHY_SHUTDOWN_MODE
532+
#if defined(PHY_40nm_3_60_a_tc) || defined(PHY_40nm_3_00_a) || defined(PHY_40nm_3_40_a)
533+
#define SUPPORT_PHY_SHUTDOWN_MODE 1 /* Enable\Disable phpy shutdown mode support */
534+
#else
535+
#define SUPPORT_PHY_SHUTDOWN_MODE 0
536+
#endif /* defined(PHY_40nm_3_60_a_tc) || defined(PHY_40nm_3_00_a) || defined(PHY_40nm_3_40_a) */
537+
#endif /* SUPPORT_PHY_SHUTDOWN_MODE */
538+
539+
#if SUPPORT_PHY_SHUTDOWN_MODE
540+
#define PHY_SHUTDOWN_WAKEUP_TIME_OVERHEAD 2 /* in sleep timer units, the added time overhead from executing override seqeuences needed in phy shutdown mode */
541+
#else
542+
#define PHY_SHUTDOWN_WAKEUP_TIME_OVERHEAD 0
543+
#endif /* SUPPORT_PHY_SHUTDOWN_MODE */
544+
545+
#ifndef SUPPORT_GNRC_SCHDLR_IF
546+
#define SUPPORT_GNRC_SCHDLR_IF 1
547+
#endif
548+
#ifndef NEAR_AUX_AFTER_EXT_SLEEP_TIMER_SCHEDULING
549+
#define NEAR_AUX_AFTER_EXT_SLEEP_TIMER_SCHEDULING 0
550+
#endif /* NEAR_AUX_AFTER_EXT_SLEEP_TIMER_SCHEDULING */
551+
552+
#if (SUPPORT_CHANNEL_SOUNDING &&( SUPPORT_MASTER_CONNECTION || SUPPORT_SLAVE_CONNECTION))
553+
/**
554+
* @brief holds the possible values for cs roles
555+
*/
556+
typedef enum _cs_role_e
557+
{
558+
CS_ROLE_INITIATOR,
559+
CS_ROLE_REFLECTOR
560+
} cs_role_e;
561+
562+
/**
563+
* @brief holds the possible values for cs step mode types
564+
*/
565+
typedef enum _cs_step_mode_type_e
566+
{
567+
CS_STEP_MODE_0,
568+
CS_STEP_MODE_1,
569+
CS_STEP_MODE_2,
570+
CS_STEP_MODE_3,
571+
CS_STEP_MODE_NONE = 0xFF
572+
} cs_step_mode_type_e;
573+
574+
/**
575+
* @brief cs host buffer structure
576+
*/
577+
typedef struct _cs_host_buffer {
578+
uint8_t buffer[257]; /*CS_HOST_BUFFER_DATA_MAX (255) + HCI_EVENT_HEADER_LEN(2)*/
579+
}cs_host_buffer;
580+
581+
#endif /*SUPPORT_CHANNEL_SOUNDING &&( SUPPORT_MASTER_CONNECTION || SUPPORT_SLAVE_CONNECTION)*/
582+
511583
#endif /*COMMON_TYPES_H_*/

0 commit comments

Comments
 (0)