Lines Matching +full:read +full:- +full:cmd

7  * Copyright (c) 2020 - 2021 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
66 shell_error(ctx_shell, "Player Name read failed (%d)", err); in mcc_read_player_name_cb()
79 shell_error(ctx_shell, "Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb()
94 shell_error(ctx_shell, "Icon URL read failed (%d)", err); in mcc_read_icon_url_cb()
106 shell_error(ctx_shell, "Track title read failed (%d)", err); in mcc_read_track_title_cb()
128 shell_error(ctx_shell, "Track duration read failed (%d)", err); in mcc_read_track_duration_cb()
140 shell_error(ctx_shell, "Track position read failed (%d)", err); in mcc_read_track_position_cb()
165 shell_error(ctx_shell, "Playback speed read failed (%d)", err); in mcc_read_playback_speed_cb()
190 shell_error(ctx_shell, "Seeking speed read failed (%d)", err); in mcc_read_seeking_speed_cb()
207 "Track Segments Object ID read failed (%d)", err); in mcc_read_segments_obj_id_cb()
224 shell_error(ctx_shell, "Current Track Object ID read failed (%d)", in mcc_read_current_track_obj_id_cb()
257 shell_error(ctx_shell, "Next Track Object ID read failed (%d)", in mcc_read_next_track_obj_id_cb()
295 "Parent Group Object ID read failed (%d)", err); in mcc_read_parent_group_obj_id_cb()
313 "Current Group Object ID read failed (%d)", err); in mcc_read_current_group_obj_id_cb()
343 shell_error(ctx_shell, "Playing order read failed (%d)", err); in mcc_read_playing_order_cb()
369 "Playing orders supported read failed (%d)", err); in mcc_read_playing_orders_supported_cb()
381 shell_error(ctx_shell, "Media State read failed (%d)", err); in mcc_read_media_state_cb()
390 static void mcc_send_cmd_cb(struct bt_conn *conn, int err, const struct mpl_cmd *cmd) in mcc_send_cmd_cb() argument
394 "Command send failed (%d) - opcode: %d, param: %d", in mcc_send_cmd_cb()
395 err, cmd->opcode, cmd->param); in mcc_send_cmd_cb()
399 shell_print(ctx_shell, "Command opcode: %d, param: %d", cmd->opcode, cmd->param); in mcc_send_cmd_cb()
408 "Command notification error (%d) - opcode: %d, result: %d", in mcc_cmd_ntf_cb()
409 err, ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
414 ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
422 shell_error(ctx_shell, "Opcodes supported read failed (%d)", in mcc_read_opcodes_supported_cb()
464 "Search Results Object ID read failed (%d)", err); in mcc_read_search_results_obj_id_cb()
483 shell_error(ctx_shell, "Content Control ID read failed (%d)", err); in mcc_read_content_control_id_cb()
520 "Icon Object read failed (%d)", err); in mcc_icon_object_read_cb()
524 shell_print(ctx_shell, "Icon content (%d octets)", buf->len); in mcc_icon_object_read_cb()
525 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_icon_object_read_cb()
534 "Track Segments Object read failed (%d)", err); in mcc_track_segments_object_read_cb()
538 shell_print(ctx_shell, "Track Segments content (%d octets)", buf->len); in mcc_track_segments_object_read_cb()
539 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_track_segments_object_read_cb()
547 "Current Track Object read failed (%d)", err); in mcc_otc_read_current_track_object_cb()
551 shell_print(ctx_shell, "Current Track content (%d octets)", buf->len); in mcc_otc_read_current_track_object_cb()
552 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_otc_read_current_track_object_cb()
560 "Next Track Object read failed (%d)", err); in mcc_otc_read_next_track_object_cb()
564 shell_print(ctx_shell, "Next Track content (%d octets)", buf->len); in mcc_otc_read_next_track_object_cb()
565 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_otc_read_next_track_object_cb()
573 "Parent Group Object read failed (%d)", err); in mcc_otc_read_parent_group_object_cb()
577 shell_print(ctx_shell, "Parent Group content (%d octets)", buf->len); in mcc_otc_read_parent_group_object_cb()
578 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_otc_read_parent_group_object_cb()
586 "Current Group Object read failed (%d)", err); in mcc_otc_read_current_group_object_cb()
590 shell_print(ctx_shell, "Current Group content (%d octets)", buf->len); in mcc_otc_read_current_group_object_cb()
591 shell_hexdump(ctx_shell, buf->data, buf->len); in mcc_otc_read_current_group_object_cb()
705 return -ENOEXEC; in cmd_mcc_discover_mcs()
809 return -ENOEXEC; in cmd_mcc_set_track_position()
815 return -ENOEXEC; in cmd_mcc_set_track_position()
853 return -ENOEXEC; in cmd_mcc_set_playback_speed()
859 return -ENOEXEC; in cmd_mcc_set_playback_speed()
921 return -ENOEXEC; in cmd_mcc_set_current_track_obj_id()
927 return -ENOEXEC; in cmd_mcc_set_current_track_obj_id()
959 return -ENOEXEC; in cmd_mcc_set_next_track_obj_id()
965 return -ENOEXEC; in cmd_mcc_set_next_track_obj_id()
1009 return -ENOEXEC; in cmd_mcc_set_current_group_obj_id()
1015 return -ENOEXEC; in cmd_mcc_set_current_group_obj_id()
1051 return -ENOEXEC; in cmd_mcc_set_playing_order()
1057 return -ENOEXEC; in cmd_mcc_set_playing_order()
1099 const struct mpl_cmd cmd = { in cmd_mcc_play() local
1106 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_play()
1116 const struct mpl_cmd cmd = { in cmd_mcc_pause() local
1123 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_pause()
1134 const struct mpl_cmd cmd = { in cmd_mcc_fast_rewind() local
1141 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_fast_rewind()
1152 const struct mpl_cmd cmd = { in cmd_mcc_fast_forward() local
1159 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_fast_forward()
1169 const struct mpl_cmd cmd = { in cmd_mcc_stop() local
1176 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_stop()
1187 struct mpl_cmd cmd = { in cmd_mcc_move_relative() local
1205 return -ENOEXEC; in cmd_mcc_move_relative()
1208 cmd.param = (int32_t)offset; in cmd_mcc_move_relative()
1210 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_move_relative()
1221 const struct mpl_cmd cmd = { in cmd_mcc_prev_segment() local
1228 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_prev_segment()
1239 const struct mpl_cmd cmd = { in cmd_mcc_next_segment() local
1246 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_next_segment()
1257 const struct mpl_cmd cmd = { in cmd_mcc_first_segment() local
1264 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_first_segment()
1275 const struct mpl_cmd cmd = { in cmd_mcc_last_segment() local
1282 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_last_segment()
1293 struct mpl_cmd cmd = { in cmd_mcc_goto_segment() local
1311 return -ENOEXEC; in cmd_mcc_goto_segment()
1314 cmd.param = (int32_t)segment; in cmd_mcc_goto_segment()
1316 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_goto_segment()
1326 const struct mpl_cmd cmd = { in cmd_mcc_prev_track() local
1333 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_prev_track()
1343 const struct mpl_cmd cmd = { in cmd_mcc_next_track() local
1350 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_next_track()
1361 const struct mpl_cmd cmd = { in cmd_mcc_first_track() local
1368 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_first_track()
1378 const struct mpl_cmd cmd = { in cmd_mcc_last_track() local
1385 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_last_track()
1395 struct mpl_cmd cmd = { in cmd_mcc_goto_track() local
1413 return -ENOEXEC; in cmd_mcc_goto_track()
1416 cmd.param = (int32_t)track; in cmd_mcc_goto_track()
1418 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_goto_track()
1428 const struct mpl_cmd cmd = { in cmd_mcc_prev_group() local
1435 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_prev_group()
1445 const struct mpl_cmd cmd = { in cmd_mcc_next_group() local
1452 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_next_group()
1463 const struct mpl_cmd cmd = { in cmd_mcc_first_group() local
1470 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_first_group()
1480 const struct mpl_cmd cmd = { in cmd_mcc_last_group() local
1487 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_last_group()
1497 struct mpl_cmd cmd = { in cmd_mcc_goto_group() local
1515 return -ENOEXEC; in cmd_mcc_goto_group()
1518 cmd.param = (int32_t)group; in cmd_mcc_goto_group()
1520 err = bt_mcc_send_cmd(default_conn, &cmd); in cmd_mcc_goto_group()
1554 return -EINVAL; in cmd_mcc_send_search_raw()
1572 /* Testcase MCS/SR/SCP/BV-01-C [Search Control Point], rounds 1 - 9 */ in cmd_mcc_send_search_ioptest()
1583 return -ENOEXEC; in cmd_mcc_send_search_ioptest()
1620 return -ENOEXEC; in cmd_mcc_send_search_ioptest()
1796 return -ENOEXEC; in cmd_mcc_otc_select()
1802 return -ENOEXEC; in cmd_mcc_otc_select()
1954 return -ENOEXEC; in cmd_mcc()
1963 SHELL_CMD_ARG(read_player_name, NULL, "Read Media Player Name",
1966 SHELL_CMD_ARG(read_icon_obj_id, NULL, "Read Icon Object ID",
1970 SHELL_CMD_ARG(read_icon_url, NULL, "Read Icon URL",
1974 SHELL_CMD_ARG(read_track_title, NULL, "Read Track Title",
1978 SHELL_CMD_ARG(read_track_duration, NULL, "Read Track Duration",
1982 SHELL_CMD_ARG(read_track_position, NULL, "Read Track Position",
1990 SHELL_CMD_ARG(read_playback_speed, NULL, "Read Playback Speed",
1998 SHELL_CMD_ARG(read_seeking_speed, NULL, "Read Seeking Speed",
2003 "Read Track Segments Object ID",
2006 "Read Current Track Object ID",
2012 "Read Next Track Object ID",
2018 "Read Current Group Object ID",
2021 "Read Parent Group Object ID",
2028 SHELL_CMD_ARG(read_playing_order, NULL, "Read Playing Order",
2037 "Read Playing Orders Supported",
2041 SHELL_CMD_ARG(read_media_state, NULL, "Read Media State",
2091 SHELL_CMD_ARG(read_opcodes_supported, NULL, "Send the Read Opcodes Supported",
2098 "Send search - IOP test round as input <round number>",
2102 "Send search - IOP test, invalid type value (test)",
2105 "Send search - invalid sci length (test)",
2109 "Read Search Results Object ID",
2113 SHELL_CMD_ARG(read_content_control_id, NULL, "Read Content Control ID",
2117 SHELL_CMD_ARG(ots_read_features, NULL, "Read OTC Features",
2119 SHELL_CMD_ARG(ots_oacp_read, NULL, "Read current object",
2121 SHELL_CMD_ARG(ots_read_metadata, NULL, "Read current object's metadata",
2125 SHELL_CMD_ARG(ots_read_icon_object, NULL, "Read Icon Object",
2128 "Read Track Segments Object",
2131 "Read Current Track Object",
2134 "Read Next Track Object",
2137 "Read Parent Group Object",
2140 "Read Current Group Object",