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 LL_WHITELIST_H_ 19 #define LL_WHITELIST_H_ 20 21 22 23 /** 24 * @brief This function is used to reset whitelist 25 * @param[in] none 26 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 27 */ 28 ble_sts_t ll_whiteList_reset(void); 29 30 31 /** 32 * @brief This function is used to add a device form whitelist 33 * @param[in] type - device mac address type 34 * @param[in] addr - device mac address 35 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 36 */ 37 ble_sts_t ll_whiteList_add(u8 type, u8 *addr); 38 39 40 /** 41 * @brief This function is used to delete a device from whitelist 42 * @param[in] type - device mac address type 43 * @param[in] addr - device mac address 44 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 45 */ 46 ble_sts_t ll_whiteList_delete(u8 type, u8 *addr); 47 48 49 /** 50 * @brief This function is used to get whitelist size 51 * @param[out] pointer to size 52 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 53 */ 54 ble_sts_t ll_whiteList_readSize(u8 *returnPublicAddrListSize) ; 55 56 57 #endif /* LL_WHITELIST_H_ */ 58