frameworks_bluetooth/service/stacks/include/sal_debug_interface.h

35 lines
1.3 KiB
C

/****************************************************************************
* Copyright (C) 2024 Xiaomi Corporation
*
* 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.
***************************************************************************/
#ifndef __SAL_DEBUG_INTERFACE_H_
#define __SAL_DEBUG_INTERFACE_H_
#include <stdint.h>
#include "bluetooth.h"
#include "bt_addr.h"
void bt_sal_debug_init(void);
void bt_sal_debug_cleanup(void);
bt_status_t bt_sal_debug_enable(void);
bt_status_t bt_sal_debug_disable(void);
bt_status_t bt_sal_debug_set_log_level(uint32_t level);
bool bt_sal_debug_is_type_support(bt_debug_type_t type);
bt_status_t bt_sal_debug_set_log_enable(bt_debug_type_t type, bool enable);
bt_status_t bt_sal_debug_update_log_mask(int mask);
// #endif
#endif /* __SAL_DEBUG_INTERFACE_V2_H_ */