mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 13:09:38 +00:00 
			
		
		
		
	component/bt: Support set HW CCA threshold value
This commit is contained in:
		| @@ -26,7 +26,7 @@ extern "C" { | ||||
| #endif | ||||
|  | ||||
| #define ESP_BT_CTRL_CONFIG_MAGIC_VAL    0x5A5AA5A5 | ||||
| #define ESP_BT_CTRL_CONFIG_VERSION      0x02104270 | ||||
| #define ESP_BT_CTRL_CONFIG_VERSION      0x02112280 | ||||
|  | ||||
| #define ESP_BT_HCI_TL_MAGIC_VALUE   0xfadebead | ||||
| #define ESP_BT_HCI_TL_VERSION       0x00010000 | ||||
| @@ -179,6 +179,7 @@ enum { | ||||
|     .hw_target_code = BLE_HW_TARGET_CODE_ESP32C3_CHIP_ECO0,                \ | ||||
|     .slave_ce_len_min = SLAVE_CE_LEN_MIN_DEFAULT,                          \ | ||||
|     .hw_recorrect_en = AGC_RECORRECT_EN,                                   \ | ||||
|     .cca_thresh = CONFIG_BT_CTRL_HW_CCA_VAL,                               \ | ||||
| }; | ||||
|  | ||||
| #else | ||||
| @@ -245,6 +246,7 @@ typedef struct { | ||||
|     uint32_t hw_target_code;                /*!< hardware target */ | ||||
|     uint8_t slave_ce_len_min; | ||||
|     uint8_t hw_recorrect_en; | ||||
|     uint8_t cca_thresh;                     /*!< cca threshold*/ | ||||
| } esp_bt_controller_config_t; | ||||
|  | ||||
| /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xiewenxiang
					xiewenxiang