Home
last modified time | relevance | path

Searched refs:a2dp (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/subsys/bluetooth/host/classic/
Da2dp.c84 static int bt_a2dp_get_sep_caps(struct bt_a2dp *a2dp);
86 static void a2dp_reset(struct bt_a2dp *a2dp) in a2dp_reset() argument
88 (void)memset(a2dp, 0, sizeof(struct bt_a2dp)); in a2dp_reset()
130 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_connected() local
132 a2dp->a2dp_state = INTERNAL_STATE_AVDTP_CONNECTED; in a2dp_connected()
135 a2dp_cb->connected(a2dp, 0); in a2dp_connected()
142 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_disconnected() local
146 a2dp_cb->disconnected(a2dp); in a2dp_disconnected()
188 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_set_config_ind() local
244 err = a2dp_cb->config_req(a2dp, ep, &cfg, &stream, &rsp_err_code); in a2dp_set_config_ind()
[all …]
DCMakeLists.txt6 zephyr_library_sources_ifdef(CONFIG_BT_A2DP a2dp.c a2dp_codec_sbc.c)
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/classic/
Da2dp.h361 typedef uint8_t (*bt_a2dp_discover_ep_cb)(struct bt_a2dp *a2dp,
389 void (*connected)(struct bt_a2dp *a2dp, int err);
397 void (*disconnected)(struct bt_a2dp *a2dp);
413 int (*config_req)(struct bt_a2dp *a2dp, struct bt_a2dp_ep *ep,
564 int bt_a2dp_disconnect(struct bt_a2dp *a2dp);
593 int bt_a2dp_discover(struct bt_a2dp *a2dp, struct bt_a2dp_discover_param *param);
606 struct bt_a2dp *a2dp; member
713 int bt_a2dp_stream_config(struct bt_a2dp *a2dp, struct bt_a2dp_stream *stream,
/Zephyr-Core-3.7.0/doc/connectivity/bluetooth/
Dbluetooth-shell.rst450 The :code:`a2dp` command exposes parts of the A2DP API.
455 * Source and Sink sides register a2dp callbacks. using :code:`a2dp register_cb`.
456 …nd Sink sides register stream endpoints. using :code:`a2dp register_ep source sbc` and :code:`a2dp
457 …onnection. It will create the AVDTP Signaling and Media L2CAP channels. using :code:`a2dp connect`.
458 …* Source and Sink side can discover remote device's stream endpoints. using :code:`a2dp discover_p…
459 …re the stream to create the stream after discover remote's endpoints. using :code:`a2dp configure`.
460 * Source or Sink establish the stream. using :code:`a2dp establish`.
461 * Source or Sink start the media. using :code:`a2dp start`.
462 * Source test the media sending. using :code:`a2dp send_media` to send one test packet data.
470 uart:~$ a2dp register_cb
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/shell/
DCMakeLists.txt26 a2dp.c
Da2dp.c289 void app_connected(struct bt_a2dp *a2dp, int err) in app_connected() argument
292 default_a2dp = a2dp; in app_connected()
299 void app_disconnected(struct bt_a2dp *a2dp) in app_disconnected() argument
305 int app_config_req(struct bt_a2dp *a2dp, struct bt_a2dp_ep *ep, in app_config_req() argument
587 static uint8_t bt_a2dp_discover_peer_endpoint_cb(struct bt_a2dp *a2dp, in bt_a2dp_discover_peer_endpoint_cb() argument
715 SHELL_CMD_ARG_REGISTER(a2dp, &a2dp_cmds, "Bluetooth A2DP sh commands",