1 /******************************************************************************
2  * Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
3  * All rights reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *   http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************/
18 #ifndef ADV_H_
19 #define ADV_H_
20 
21 
22 
23 /**
24  *  @brief  Definition for ADV maximum random delay time
25  */
26 typedef enum{
27 	  MAX_DELAY_10MS 	= 512,
28 	  MAX_DELAY_5MS		= 256,
29 	  MAX_DELAY_2P5MS	= 128,
30 	  MAX_DELAY_0MS 	= 0,
31 }adv_max_delay_t;
32 
33 
34 
35 
36 
37 /**
38  * @brief   Set Advertising Interval maximum random delay time. If not set, default value is 10mS according to BLE Spec.
39  *          This API is mainly used for debug, to control adv_interval, this value will recover to 10mS if stack timing is limited
40  *			//notice that: this API must used before API "blc_ll_setAdvParam" TODO SiHui
41  * @param   max_delay - select one from enumeration variable "adv_max_delay_t"
42  *
43  * @return  None
44  */
45 void		blc_ll_setMaxAdvDelay_for_AdvEvent(adv_max_delay_t max_delay);
46 
47 
48 
49 
50 
51 
52 #endif /* ADV_H_ */
53