Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
avrcp_cover_art.h
Go to the documentation of this file.
1
4
5/*
6 * Copyright 2025 NXP
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_COVER_ART_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_COVER_ART_H_
13
20
21#include <stdint.h>
22
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
33struct bt_avrcp_ct;
35struct bt_avrcp_tg;
36
45 struct bt_bip bip;
49 struct bt_avrcp_ct *ct;
51 struct bt_conn *conn;
52};
53
62 struct bt_bip bip;
66 struct bt_avrcp_tg *tg;
68 struct bt_conn *conn;
69};
70
86 void (*l2cap_connected)(struct bt_avrcp_ct *ct, struct bt_avrcp_cover_art_ct *cover_art_ct);
87
96
108 void (*connect)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, uint8_t version,
109 uint16_t mopl, struct net_buf *buf);
110
118 void (*disconnect)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf);
119
127 void (*abort)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf);
128
137 struct net_buf *buf);
138
146 void (*get_image)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf);
147
156 struct net_buf *buf);
157};
158
174 void (*l2cap_connected)(struct bt_avrcp_tg *tg, struct bt_avrcp_cover_art_tg *cover_art_tg);
175
184
193 void (*connect)(struct bt_avrcp_cover_art_tg *tg, uint8_t version, uint16_t mopl,
194 struct net_buf *buf);
195
202 void (*disconnect)(struct bt_avrcp_cover_art_tg *tg, struct net_buf *buf);
203
210 void (*abort)(struct bt_avrcp_cover_art_tg *tg, struct net_buf *buf);
211
219 void (*get_image_properties)(struct bt_avrcp_cover_art_tg *tg, bool final,
220 struct net_buf *buf);
221
229 void (*get_image)(struct bt_avrcp_cover_art_tg *tg, bool final, struct net_buf *buf);
230
238 void (*get_linked_thumbnail)(struct bt_avrcp_cover_art_tg *tg, bool final,
239 struct net_buf *buf);
240};
241
249
257
266int bt_avrcp_cover_art_ct_l2cap_connect(struct bt_avrcp_ct *ct,
267 struct bt_avrcp_cover_art_ct **cover_art_ct, uint16_t psm);
268
276
284
293 struct net_buf_pool *pool);
294
303 struct net_buf_pool *pool);
304
312
321
329
338
347
357 struct net_buf *buf);
358
368 struct net_buf *buf);
369
379 struct net_buf *buf);
380
390 struct net_buf *buf);
391
401 struct net_buf *buf);
402
412 struct net_buf *buf);
413
423 struct net_buf *buf);
424
425#ifdef __cplusplus
426}
427#endif
428
432
433#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_COVER_ART_H_ */
Audio Video Remote Control Profile header.
Bluetooth subsystem core APIs.
int bt_avrcp_cover_art_ct_l2cap_connect(struct bt_avrcp_ct *ct, struct bt_avrcp_cover_art_ct **cover_art_ct, uint16_t psm)
Connect L2CAP channel for AVRCP Cover Art Controller.
int bt_avrcp_cover_art_tg_cb_register(struct bt_avrcp_cover_art_tg_cb *cb)
Register AVRCP Cover Art target callbacks.
int bt_avrcp_cover_art_tg_l2cap_disconnect(struct bt_avrcp_cover_art_tg *tg)
Disconnect L2CAP channel for AVRCP Cover Art Target.
int bt_avrcp_cover_art_tg_abort(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code, struct net_buf *buf)
Send OBEX abort response.
int bt_avrcp_cover_art_ct_get_linked_thumbnail(struct bt_avrcp_cover_art_ct *ct, bool final, struct net_buf *buf)
Send get linked thumbnail request.
int bt_avrcp_cover_art_ct_get_image_properties(struct bt_avrcp_cover_art_ct *ct, bool final, struct net_buf *buf)
Send get image properties request.
int bt_avrcp_cover_art_tg_disconnect(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code)
Send OBEX disconnect response.
int bt_avrcp_cover_art_ct_cb_register(struct bt_avrcp_cover_art_ct_cb *cb)
Register AVRCP Cover Art Controller callbacks.
struct net_buf * bt_avrcp_cover_art_ct_create_pdu(struct bt_avrcp_cover_art_ct *ct, struct net_buf_pool *pool)
Create PDU buffer for AVRCP Cover Art Controller.
int bt_avrcp_cover_art_ct_l2cap_disconnect(struct bt_avrcp_cover_art_ct *ct)
Disconnect L2CAP channel for AVRCP Cover Art Controller.
int bt_avrcp_cover_art_tg_get_image_properties(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code, struct net_buf *buf)
Send get image properties response.
int bt_avrcp_cover_art_ct_connect(struct bt_avrcp_cover_art_ct *ct)
Send OBEX connect request.
int bt_avrcp_cover_art_ct_abort(struct bt_avrcp_cover_art_ct *ct, struct net_buf *buf)
Send OBEX abort request.
int bt_avrcp_cover_art_tg_get_image(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code, struct net_buf *buf)
Send get image response.
int bt_avrcp_cover_art_ct_disconnect(struct bt_avrcp_cover_art_ct *ct)
Send OBEX disconnect request.
int bt_avrcp_cover_art_tg_get_linked_thumbnail(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code, struct net_buf *buf)
Send get linked thumbnail response.
struct net_buf * bt_avrcp_cover_art_tg_create_pdu(struct bt_avrcp_cover_art_tg *tg, struct net_buf_pool *pool)
Create PDU buffer for AVRCP Cover Art Target.
int bt_avrcp_cover_art_tg_connect(struct bt_avrcp_cover_art_tg *tg, uint8_t rsp_code)
Send OBEX connect response.
int bt_avrcp_cover_art_ct_get_image(struct bt_avrcp_cover_art_ct *ct, bool final, struct net_buf *buf)
Send get image request.
Bluetooth L2CAP handling.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
AVRCP Cover Art Controller callback structure.
Definition avrcp_cover_art.h:77
void(* l2cap_disconnected)(struct bt_avrcp_cover_art_ct *ct)
L2CAP disconnected callback.
Definition avrcp_cover_art.h:95
void(* get_linked_thumbnail)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf)
Get linked thumbnail response callback.
Definition avrcp_cover_art.h:155
void(* abort)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf)
OBEX abort response callback.
Definition avrcp_cover_art.h:127
void(* connect)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf)
OBEX connect response callback.
Definition avrcp_cover_art.h:108
void(* get_image_properties)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf)
Get image properties response callback.
Definition avrcp_cover_art.h:136
void(* l2cap_connected)(struct bt_avrcp_ct *ct, struct bt_avrcp_cover_art_ct *cover_art_ct)
L2CAP connected callback.
Definition avrcp_cover_art.h:86
void(* get_image)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf)
Get image response callback.
Definition avrcp_cover_art.h:146
void(* disconnect)(struct bt_avrcp_cover_art_ct *ct, uint8_t rsp_code, struct net_buf *buf)
OBEX disconnect response callback.
Definition avrcp_cover_art.h:118
AVRCP Controller Cover Art structure.
Definition avrcp_cover_art.h:43
struct bt_avrcp_ct * ct
Associated AVRCP controller.
Definition avrcp_cover_art.h:49
struct bt_conn * conn
Bluetooth connection.
Definition avrcp_cover_art.h:51
struct bt_bip bip
Basic Image Profile instance.
Definition avrcp_cover_art.h:45
struct bt_bip_client client
BIP client instance.
Definition avrcp_cover_art.h:47
AVRCP Cover Art Target callback structure.
Definition avrcp_cover_art.h:165
void(* get_image_properties)(struct bt_avrcp_cover_art_tg *tg, bool final, struct net_buf *buf)
Get image properties request callback.
Definition avrcp_cover_art.h:219
void(* connect)(struct bt_avrcp_cover_art_tg *tg, uint8_t version, uint16_t mopl, struct net_buf *buf)
OBEX connect request callback.
Definition avrcp_cover_art.h:193
void(* l2cap_connected)(struct bt_avrcp_tg *tg, struct bt_avrcp_cover_art_tg *cover_art_tg)
L2CAP connected callback.
Definition avrcp_cover_art.h:174
void(* disconnect)(struct bt_avrcp_cover_art_tg *tg, struct net_buf *buf)
OBEX disconnect request callback.
Definition avrcp_cover_art.h:202
void(* get_linked_thumbnail)(struct bt_avrcp_cover_art_tg *tg, bool final, struct net_buf *buf)
Get linked thumbnail request callback.
Definition avrcp_cover_art.h:238
void(* abort)(struct bt_avrcp_cover_art_tg *tg, struct net_buf *buf)
OBEX abort request callback.
Definition avrcp_cover_art.h:210
void(* l2cap_disconnected)(struct bt_avrcp_cover_art_tg *tg)
L2CAP disconnected callback.
Definition avrcp_cover_art.h:183
void(* get_image)(struct bt_avrcp_cover_art_tg *tg, bool final, struct net_buf *buf)
Get image request callback.
Definition avrcp_cover_art.h:229
AVRCP Target Cover Art structure.
Definition avrcp_cover_art.h:60
struct bt_bip_server server
BIP server instance.
Definition avrcp_cover_art.h:64
struct bt_conn * conn
Bluetooth connection.
Definition avrcp_cover_art.h:68
struct bt_bip bip
Basic Image Profile instance.
Definition avrcp_cover_art.h:62
struct bt_avrcp_tg * tg
Associated AVRCP target.
Definition avrcp_cover_art.h:66
BIP client instance structure.
Definition bip.h:905
BIP server instance structure.
Definition bip.h:860
BIP instance structure.
Definition bip.h:386
Network buffer pool representation.
Definition net_buf.h:1079
Network buffer representation.
Definition net_buf.h:1006