/* * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @addtogroup CHIP * @{ * * @brief Provides APIs for the upper-layer WLAN service. * * You can use the APIs to manager the wifi chip, init and release the wifi chip, create and remove iface, register callback * get the name and type of the iface, get the support frequencies and set the mode of chip. * * @since 5.0 * @version 1.0 */ /** * @file IChipIfaceCallback.idl * * @brief Provides APIs to iface callback of the chip. * * @since 5.0 * @version 1.0 */ /** * @brief Defines the package path of the chip module interface. * * @since 5.0 * @version 1.0 */ package ohos.hdi.wlan.chip.v1_0; import ohos.hdi.wlan.chip.v1_0.ChipTypes; [callback] interface IChipIfaceCallback { /** * @brief Obtains the callback for the scan result event. * * @param event Indicates the scan result event. * * @return Returns 0 if the operation is successful. * @return Returns a negative value if the operation fails. * * @since 5.0 * @version 1.0 */ [oneway] OnScanResultsCallback([in] unsigned int event); /** * @brief Obtains the callback for the rssi change event. * This interface is preferentially used to communicate with the Wi-Fi service. * * @param aerials index. * @param c0Rssi first antenna rssi. * @param c1Rssi second antenna rssi. * * @since 5.0 * @version 1.0 */ [oneway] OnRssiReport([in] int index, [in] int c0Rssi, [in] int c1Rssi); }; /** @} */