1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @addtogroup CHIP
18 * @{
19 *
20 * @brief Provides APIs for the upper-layer WLAN service.
21 *
22 * You can use the APIs to manager the wifi chip, init and release the wifi chip, create and remove iface, register callback
23 * get the name and type of the iface, get the support frequencies and set the mode of chip.
24 *
25 * @since 5.0
26 * @version 1.0
27 */
28
29/**
30 * @file IChipIfaceCallback.idl
31 *
32 * @brief Provides APIs to iface callback of the chip.
33 *
34 * @since 5.0
35 * @version 1.0
36 */
37
38/**
39 * @brief Defines the package path of the chip module interface.
40 *
41 * @since 5.0
42 * @version 1.0
43 */
44
45package ohos.hdi.wlan.chip.v1_0;
46
47import ohos.hdi.wlan.chip.v1_0.ChipTypes;
48
49[callback] interface IChipIfaceCallback {
50    /**
51     * @brief Obtains the callback for the scan result event.
52     *
53     * @param event Indicates the scan result event.
54     *
55     * @return Returns <b>0</b> if the operation is successful.
56     * @return Returns a negative value if the operation fails.
57     *
58     * @since 5.0
59     * @version 1.0
60     */
61    [oneway] OnScanResultsCallback([in] unsigned int event);
62
63    /**
64     * @brief Obtains the callback for the rssi change event.
65     * This interface is preferentially used to communicate with the Wi-Fi service.
66     *
67     * @param aerials index.
68     * @param c0Rssi first antenna rssi.
69     * @param c1Rssi second antenna rssi.
70     *
71     * @since 5.0
72     * @version 1.0
73     */
74    [oneway] OnRssiReport([in] int index, [in] int c0Rssi, [in] int c1Rssi);
75};
76/** @} */