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 IChipControllerCallback.idl
31 *
32 * @brief Provides APIs to controller callbcak of the wifi 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 IChipControllerCallback {
50    /**
51     * @brief Obtains the callback for the subsystem restart.
52     *
53     * @param code Indicates the errorcode of the subsystem when it is restarted.
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] OnVendorHalRestart([in] ErrorCode code);
62};
63/** @} */
64