Home
last modified time | relevance | path

Searched refs:call_index (Results 1 – 12 of 12) sorted by relevance

/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dtbs.c27 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 …]
Dtbs_client.c105 unsigned long call_index; in cmd_tbs_client_hold() local
132 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold()
139 if (call_index > UINT8_MAX) { in cmd_tbs_client_hold()
140 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_hold()
145 result = bt_tbs_client_hold_call(default_conn, inst_index, call_index); in cmd_tbs_client_hold()
159 unsigned long call_index; in cmd_tbs_client_retrieve() local
186 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_retrieve()
193 if (call_index > UINT8_MAX) { in cmd_tbs_client_retrieve()
194 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_client_retrieve()
200 call_index); in cmd_tbs_client_retrieve()
[all …]
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dtbs_test.c13 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 …]
Dtbs_client_test.c18 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.5.0/include/zephyr/bluetooth/audio/
Dtbs.h90 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.5.0/subsys/bluetooth/audio/
Dtbs.c114 uint8_t call_index) in lookup_call_in_inst() argument
116 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call_in_inst()
121 if (inst->calls[i].index == call_index) { in lookup_call_in_inst()
135 static struct bt_tbs_call *lookup_call(uint8_t call_index) in lookup_call() argument
138 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_call()
144 call_index); in lookup_call()
177 static struct tbs_service_inst *lookup_inst_by_call_index(uint8_t call_index) in lookup_inst_by_call_index() argument
179 if (call_index == BT_TBS_FREE_CALL_INDEX) { in lookup_inst_by_call_index()
184 if (lookup_call_in_inst(&svc_insts[i], call_index) != NULL) { in lookup_inst_by_call_index()
279 uint8_t call_index, uint8_t reason) in tbs_set_terminate_reason() argument
[all …]
Dtbs_internal.h222 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
Dtbs_client.c277 uint8_t call_index) in call_cp_callback_handler() argument
282 bt_tbs_opcode_str(opcode), call_index); in call_cp_callback_handler()
324 cp_cb(conn, err, index, call_index); in call_cp_callback_handler()
506 ind_val->call_index); in call_cp_notify_handler()
509 ind_val->opcode, ind_val->call_index); in call_cp_notify_handler()
524 LOG_DBG("ID 0x%02X, reason %s", reason.call_index, in termination_reason_notify_handler()
529 reason.call_index, reason.reason); in termination_reason_notify_handler()
834 uint8_t call_index, in tbs_client_common_call_control() argument
851 common.call_index = call_index; in tbs_client_common_call_control()
1742 uint8_t call_index) in bt_tbs_client_hold_call() argument
[all …]
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/
Dccp_server.c21 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.5.0/tests/bluetooth/tester/src/
Dbtp_ccp.c78 uint8_t call_index) in tbs_client_originate_call_cb() argument
80 LOG_DBG("Originate call - err (%u) Call Index (%u)", err, call_index); in tbs_client_originate_call_cb()
96 uint8_t call_index) in tbs_client_terminate_call_cb() argument
98 LOG_DBG("Terminate call - err (%u) Call Index (%u)", err, call_index); in tbs_client_terminate_call_cb()
114 uint8_t call_index) in tbs_client_accept_call_cb() argument
116 LOG_DBG("Accept call - err (%u) Call Index (%u)", err, call_index); in tbs_client_accept_call_cb()
132 uint8_t call_index) in tbs_client_retrieve_call_cb() argument
134 LOG_DBG("Retrieve call - err (%u) Call Index (%u)", err, call_index); in tbs_client_retrieve_call_cb()
198 uint8_t call_index, in tbs_client_termination_reason_cb() argument
202 err, call_index, reason); in tbs_client_termination_reason_cb()
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/
Dccp_call_ctrl.c47 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.5.0/doc/connectivity/bluetooth/api/shell/
Dccp.rst180 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>