Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
avrcp.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2015-2016 Intel Corporation
7 * Copyright (C) 2024 Xiaomi Corporation
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_
13#define ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
20struct bt_avrcp;
21
26
35 void (*connected)(struct bt_avrcp *avrcp);
43 void (*disconnected)(struct bt_avrcp *avrcp);
51 void (*unit_info_rsp)(struct bt_avrcp *avrcp, struct bt_avrcp_unit_info_rsp *rsp);
52};
53
65struct bt_avrcp *bt_avrcp_connect(struct bt_conn *conn);
66
75int bt_avrcp_disconnect(struct bt_avrcp *avrcp);
76
85int bt_avrcp_register_cb(const struct bt_avrcp_cb *cb);
86
95int bt_avrcp_get_unit_info(struct bt_avrcp *avrcp);
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_ */
int bt_avrcp_get_unit_info(struct bt_avrcp *avrcp)
Get AVRCP Unit Info.
struct bt_avrcp * bt_avrcp_connect(struct bt_conn *conn)
Connect AVRCP.
int bt_avrcp_register_cb(const struct bt_avrcp_cb *cb)
Register callback.
int bt_avrcp_disconnect(struct bt_avrcp *avrcp)
Disconnect AVRCP.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Definition avrcp.h:27
void(* connected)(struct bt_avrcp *avrcp)
An AVRCP connection has been established.
Definition avrcp.h:35
void(* disconnected)(struct bt_avrcp *avrcp)
An AVRCP connection has been disconnected.
Definition avrcp.h:43
void(* unit_info_rsp)(struct bt_avrcp *avrcp, struct bt_avrcp_unit_info_rsp *rsp)
Callback function for bt_avrcp_get_unit_info()
Definition avrcp.h:51
Definition avrcp.h:22
uint32_t company_id
Definition avrcp.h:24
uint8_t unit_type
Definition avrcp.h:23