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
33
42 void (*connected)(struct bt_avrcp *avrcp);
50 void (*disconnected)(struct bt_avrcp *avrcp);
58 void (*unit_info_rsp)(struct bt_avrcp *avrcp, struct bt_avrcp_unit_info_rsp *rsp);
66 void (*subunit_info_rsp)(struct bt_avrcp *avrcp, struct bt_avrcp_subunit_info_rsp *rsp);
67};
68
80struct bt_avrcp *bt_avrcp_connect(struct bt_conn *conn);
81
90int bt_avrcp_disconnect(struct bt_avrcp *avrcp);
91
100int bt_avrcp_register_cb(const struct bt_avrcp_cb *cb);
101
110int bt_avrcp_get_unit_info(struct bt_avrcp *avrcp);
111
121int bt_avrcp_get_subunit_info(struct bt_avrcp *avrcp);
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_ */
int bt_avrcp_get_subunit_info(struct bt_avrcp *avrcp)
Get AVRCP Subunit Info.
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:34
void(* subunit_info_rsp)(struct bt_avrcp *avrcp, struct bt_avrcp_subunit_info_rsp *rsp)
Callback function for bt_avrcp_get_subunit_info().
Definition avrcp.h:66
void(* connected)(struct bt_avrcp *avrcp)
An AVRCP connection has been established.
Definition avrcp.h:42
void(* disconnected)(struct bt_avrcp *avrcp)
An AVRCP connection has been disconnected.
Definition avrcp.h:50
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:58
Definition avrcp.h:27
const uint8_t * extended_subunit_id
contains max_subunit_id items
Definition avrcp.h:31
const uint8_t * extended_subunit_type
contains max_subunit_id items
Definition avrcp.h:30
uint8_t subunit_type
Definition avrcp.h:28
uint8_t max_subunit_id
Definition avrcp.h:29
Definition avrcp.h:22
uint32_t company_id
Definition avrcp.h:24
uint8_t unit_type
Definition avrcp.h:23