/Zephyr-Core-3.4.0/subsys/bluetooth/audio/shell/ |
D | tbs.c | 27 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 65 unsigned long call_index; in cmd_tbs_accept() local 68 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept() 75 if (call_index > UINT8_MAX) { in cmd_tbs_accept() 76 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_accept() 81 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept() 86 call_index); in cmd_tbs_accept() 95 unsigned long call_index; in cmd_tbs_terminate() local 98 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate() 105 if (call_index > UINT8_MAX) { in cmd_tbs_terminate() [all …]
|
D | tbs_client.c | 116 unsigned long call_index; in cmd_tbs_client_hold() local 143 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold() 150 if (call_index > UINT8_MAX) { in cmd_tbs_client_hold() 151 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_hold() 156 result = bt_tbs_client_hold_call(default_conn, inst_index, call_index); in cmd_tbs_client_hold() 170 unsigned long call_index; in cmd_tbs_client_retrieve() local 197 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_retrieve() 204 if (call_index > UINT8_MAX) { in cmd_tbs_client_retrieve() 205 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_retrieve() 211 call_index); in cmd_tbs_client_retrieve() [all …]
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/audio/src/ |
D | tbs_test.c | 13 static uint8_t call_index; variable 25 static void tbs_hold_call_cb(struct bt_conn *conn, uint8_t call_index) in tbs_hold_call_cb() argument 27 if (call_index == call_id) { in tbs_hold_call_cb() 32 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 35 printk("Placing call to remote with id %u to %s\n", call_index, caller_id); in tbs_originate_call_cb() 36 call_id = call_index; in tbs_originate_call_cb() 46 static void tbs_terminate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_terminate_call_cb() argument 49 printk("Terminating call with id %u reason: %u", call_index, reason); in tbs_terminate_call_cb() 54 static void tbs_accept_call_cb(struct bt_conn *conn, uint8_t call_index) in tbs_accept_call_cb() argument 56 printk("Accepting call with index %u\n", call_index); in tbs_accept_call_cb() [all …]
|
D | tbs_client_test.c | 18 static volatile uint8_t call_index; variable 55 call_index = call_states[0].index; in tbs_client_call_states_cb() 57 printk("call index %u - state %u\n", call_index, call_state); in tbs_client_call_states_cb() 114 uint8_t call_index) in tbs_client_originate_call_cb() argument 116 printk("%s %u:\n", __func__, call_index); in tbs_client_originate_call_cb() 122 uint8_t call_index) in tbs_client_hold_call_cb() argument 130 call_index); in tbs_client_hold_call_cb() 135 uint8_t call_index) in tbs_client_retrieve_call_cb() argument 143 call_index); in tbs_client_retrieve_call_cb() 206 uint8_t inst_index, uint8_t call_index) in tbs_client_terminate_call_cb() argument [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/bluetooth/audio/ |
D | tbs.h | 90 uint8_t call_index, 103 uint8_t call_index, 124 uint8_t call_index); 155 int bt_tbs_accept(uint8_t call_index); 165 int bt_tbs_hold(uint8_t call_index); 175 int bt_tbs_retrieve(uint8_t call_index); 185 int bt_tbs_terminate(uint8_t call_index); 198 int bt_tbs_originate(uint8_t bearer_index, char *uri, uint8_t *call_index); 219 int bt_tbs_remote_answer(uint8_t call_index); 229 int bt_tbs_remote_hold(uint8_t call_index); [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/ |
D | tbs.c | 115 uint8_t call_index) in lookup_call_in_inst() argument 117 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call_in_inst() 122 if (inst->calls[i].index == call_index) { in lookup_call_in_inst() 136 static struct bt_tbs_call *lookup_call(uint8_t call_index) in lookup_call() argument 139 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call() 145 call_index); in lookup_call() 178 static struct tbs_service_inst *lookup_inst_by_call_index(uint8_t call_index) in lookup_inst_by_call_index() argument 180 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_inst_by_call_index() 185 if (lookup_call_in_inst(&svc_insts[i], call_index) != NULL) { in lookup_inst_by_call_index() 280 uint8_t call_index, uint8_t reason) in tbs_set_terminate_reason() argument [all …]
|
D | tbs_internal.h | 222 uint8_t call_index; member 227 uint8_t call_index; member 232 uint8_t call_index; member 237 uint8_t call_index; member 262 uint8_t call_index; member 267 uint8_t call_index; member 272 uint8_t call_index; member 278 uint8_t call_index; member 284 uint8_t call_index; member
|
D | tbs_client.c | 251 uint8_t call_index) in call_cp_callback_handler() argument 256 bt_tbs_opcode_str(opcode), call_index); in call_cp_callback_handler() 298 cp_cb(conn, err, index, call_index); in call_cp_callback_handler() 480 ind_val->call_index); in call_cp_notify_handler() 483 ind_val->opcode, ind_val->call_index); in call_cp_notify_handler() 498 LOG_DBG("ID 0x%02X, reason %s", reason.call_index, in termination_reason_notify_handler() 503 reason.call_index, reason.reason); in termination_reason_notify_handler() 792 uint8_t call_index, in tbs_client_common_call_control() argument 809 common.call_index = call_index; in tbs_client_common_call_control() 1649 uint8_t call_index) in bt_tbs_client_hold_call() argument [all …]
|
/Zephyr-Core-3.4.0/samples/bluetooth/tmap_central/src/ |
D | ccp_server.c | 21 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, in tbs_originate_call_cb() argument 25 call_index, caller_id); in tbs_originate_call_cb() 29 static void tbs_terminate_call_cb(struct bt_conn *conn, uint8_t call_index, uint8_t reason) in tbs_terminate_call_cb() argument 32 call_index, reason); in tbs_terminate_call_cb()
|
/Zephyr-Core-3.4.0/samples/bluetooth/tmap_peripheral/src/ |
D | ccp_call_ctrl.c | 47 static void originate_call_cb(struct bt_conn *conn, int err, uint8_t inst_index, uint8_t call_index) in originate_call_cb() argument 59 new_call_index = call_index; in originate_call_cb() 63 uint8_t inst_index, uint8_t call_index) in terminate_call_cb() argument 74 printk("CCP: Call with id %d terminated\n", call_index); in terminate_call_cb()
|
/Zephyr-Core-3.4.0/doc/connectivity/bluetooth/api/shell/ |
D | ccp.rst | 180 accept :Accept call <call_index> 181 terminate :Terminate call <call_index> 182 hold :Hold call <call_index> 183 retrieve :Retrieve call <call_index> 189 remote_answer :Simulate remote answer outgoing call <call_index> 190 remote_retrieve :Simulate remote retrieve <call_index> 191 remote_terminate :Simulate remote terminate <call_index> 192 remote_hold :Simulate remote hold <call_index>
|