/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | tbs.c | 36 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 125 unsigned long call_index; in cmd_tbs_accept() local 128 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept() 135 if (call_index > UINT8_MAX) { in cmd_tbs_accept() 136 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_accept() 141 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept() 146 call_index); in cmd_tbs_accept() 155 unsigned long call_index; in cmd_tbs_terminate() local 158 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate() 165 if (call_index > UINT8_MAX) { in cmd_tbs_terminate() [all …]
|
D | tbs_client.c | 109 unsigned long call_index; in cmd_tbs_client_hold() local 136 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold() 143 if (call_index > UINT8_MAX) { in cmd_tbs_client_hold() 144 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_hold() 149 result = bt_tbs_client_hold_call(default_conn, inst_index, call_index); in cmd_tbs_client_hold() 163 unsigned long call_index; in cmd_tbs_client_retrieve() local 190 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_retrieve() 197 if (call_index > UINT8_MAX) { in cmd_tbs_client_retrieve() 198 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_retrieve() 204 call_index); in cmd_tbs_client_retrieve() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | tbs.h | 213 uint8_t call_index, 226 uint8_t call_index, 247 uint8_t call_index); 288 int bt_tbs_accept(uint8_t call_index); 298 int bt_tbs_hold(uint8_t call_index); 308 int bt_tbs_retrieve(uint8_t call_index); 318 int bt_tbs_terminate(uint8_t call_index); 331 int bt_tbs_originate(uint8_t bearer_index, char *uri, uint8_t *call_index); 352 int bt_tbs_remote_answer(uint8_t call_index); 362 int bt_tbs_remote_hold(uint8_t call_index); [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | tbs.c | 135 static struct bt_tbs_call *lookup_call_in_inst(struct tbs_inst *inst, uint8_t call_index) in lookup_call_in_inst() argument 137 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call_in_inst() 142 if (inst->calls[i].index == call_index) { in lookup_call_in_inst() 156 static struct bt_tbs_call *lookup_call(uint8_t call_index) in lookup_call() argument 160 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call() 164 call = lookup_call_in_inst(>bs_inst, call_index); in lookup_call() 170 call = lookup_call_in_inst(&svc_insts[i], call_index); in lookup_call() 209 static struct tbs_inst *lookup_inst_by_call_index(uint8_t call_index) in lookup_inst_by_call_index() argument 211 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_inst_by_call_index() 215 if (lookup_call_in_inst(>bs_inst, call_index) != NULL) { in lookup_inst_by_call_index() [all …]
|
D | tbs_internal.h | 229 uint8_t call_index; member 234 uint8_t call_index; member 239 uint8_t call_index; member 244 uint8_t call_index; member 269 uint8_t call_index; member 274 uint8_t call_index; member 279 uint8_t call_index; member 285 uint8_t call_index; member 291 uint8_t call_index; member
|
D | tbs_client.c | 299 uint8_t call_index) in call_cp_callback_handler() argument 304 bt_tbs_opcode_str(opcode), call_index); in call_cp_callback_handler() 311 listener->accept_call(conn, err, index, call_index); in call_cp_callback_handler() 318 listener->terminate_call(conn, err, index, call_index); in call_cp_callback_handler() 325 listener->hold_call(conn, err, index, call_index); in call_cp_callback_handler() 332 listener->retrieve_call(conn, err, index, call_index); in call_cp_callback_handler() 339 listener->originate_call(conn, err, index, call_index); in call_cp_callback_handler() 346 listener->join_calls(conn, err, index, call_index); in call_cp_callback_handler() 594 ind_val->call_index); in call_cp_notify_handler() 597 ind_val->opcode, ind_val->call_index); in call_cp_notify_handler() [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_central/src/ |
D | ccp_server.c | 23 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 27 call_index, caller_id); in tbs_originate_call_cb() 31 static void tbs_terminate_call_cb(struct bt_conn *conn, uint8_t call_index, uint8_t reason) in tbs_terminate_call_cb() argument 34 call_index, reason); in tbs_terminate_call_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | tbs_client_test.c | 26 static volatile uint8_t call_index; variable 63 call_index = call_states[0].index; in tbs_client_call_states_cb() 65 printk("call index %u - state %u\n", call_index, call_state); in tbs_client_call_states_cb() 122 uint8_t call_index) in tbs_client_originate_call_cb() argument 124 printk("%s %u:\n", __func__, call_index); in tbs_client_originate_call_cb() 130 uint8_t call_index) in tbs_client_hold_call_cb() argument 138 call_index); in tbs_client_hold_call_cb() 143 uint8_t call_index) in tbs_client_retrieve_call_cb() argument 151 call_index); in tbs_client_retrieve_call_cb() 211 uint8_t inst_index, uint8_t call_index) in tbs_client_terminate_call_cb() argument [all …]
|
D | tbs_test.c | 35 static void tbs_hold_call_cb(struct bt_conn *conn, uint8_t call_index) in tbs_hold_call_cb() argument 37 if (call_index == g_call_index) { in tbs_hold_call_cb() 42 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 45 printk("Placing call to remote with id %u to %s\n", call_index, caller_id); in tbs_originate_call_cb() 46 g_call_index = call_index; in tbs_originate_call_cb() 56 static void tbs_terminate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_terminate_call_cb() argument 59 printk("Terminating call with id %u reason: %u", call_index, reason); in tbs_terminate_call_cb() 64 static void tbs_accept_call_cb(struct bt_conn *conn, uint8_t call_index) in tbs_accept_call_cb() argument 66 printk("Accepting call with index %u\n", call_index); in tbs_accept_call_cb() 70 static void tbs_retrieve_call_cb(struct bt_conn *conn, uint8_t call_index) in tbs_retrieve_call_cb() argument [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | ccp_call_ctrl.c | 49 static void originate_call_cb(struct bt_conn *conn, int err, uint8_t inst_index, uint8_t call_index) in originate_call_cb() argument 61 new_call_index = call_index; in originate_call_cb() 65 uint8_t inst_index, uint8_t call_index) in terminate_call_cb() argument 76 printk("CCP: Call with id %d terminated\n", call_index); in terminate_call_cb()
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | ccp.rst | 182 accept :Accept call <call_index> 183 terminate :Terminate call <call_index> 184 hold :Hold call <call_index> 185 retrieve :Retrieve call <call_index> 191 remote_answer :Simulate remote answer outgoing call <call_index> 192 remote_retrieve :Simulate remote retrieve <call_index> 193 remote_terminate :Simulate remote terminate <call_index> 194 remote_hold :Simulate remote hold <call_index>
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_ccp.c | 22 static uint8_t call_index; variable 214 uint8_t call_index, in tbs_client_termination_reason_cb() argument 218 err, call_index, reason); in tbs_client_termination_reason_cb() 275 static void tbs_client_cp_cb(struct bt_conn *conn, int err, uint8_t inst_index, uint8_t call_index) in tbs_client_cp_cb() argument 724 const uint8_t *call_index; in ccp_join_calls() local 734 call_index = cp->call_index; in ccp_join_calls() 736 err = bt_tbs_client_join_calls(conn, cp->inst_index, call_index, cp->count); in ccp_join_calls() 954 err = bt_tbs_originate(cp->index, uri, &call_index); in tbs_originate() 1094 static bool btp_tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, const char *uri) in btp_tbs_originate_call_cb() argument 1101 static void btp_tbs_call_change_cb(struct bt_conn *conn, uint8_t call_index) in btp_tbs_call_change_cb() argument
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/ |
D | btp_ccp.h | 153 uint8_t call_index[]; member
|