Lines Matching refs:conn_handle
678 uint16_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_gap_disconnect() local
679 int err = mp_bluetooth_gap_disconnect(conn_handle); in bluetooth_ble_gap_disconnect()
693 uint16_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_gap_pair() local
694 return bluetooth_handle_errno(mp_bluetooth_gap_pair(conn_handle)); in bluetooth_ble_gap_pair()
699 uint16_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gap_passkey() local
702 return bluetooth_handle_errno(mp_bluetooth_gap_passkey(conn_handle, action, passkey)); in bluetooth_ble_gap_passkey()
733 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gatts_notify() local
739 … int err = mp_bluetooth_gatts_notify_send(conn_handle, value_handle, bufinfo.buf, bufinfo.len); in bluetooth_ble_gatts_notify()
743 int err = mp_bluetooth_gatts_notify(conn_handle, value_handle); in bluetooth_ble_gatts_notify()
751 mp_int_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_gatts_indicate() local
754 int err = mp_bluetooth_gatts_indicate(conn_handle, value_handle); in bluetooth_ble_gatts_indicate()
774 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gattc_discover_services() local
782 return bluetooth_handle_errno(mp_bluetooth_gattc_discover_primary_services(conn_handle, uuid)); in bluetooth_ble_gattc_discover_services()
787 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gattc_discover_characteristics() local
797 …return bluetooth_handle_errno(mp_bluetooth_gattc_discover_characteristics(conn_handle, start_handl… in bluetooth_ble_gattc_discover_characteristics()
803 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gattc_discover_descriptors() local
806 …return bluetooth_handle_errno(mp_bluetooth_gattc_discover_descriptors(conn_handle, start_handle, e… in bluetooth_ble_gattc_discover_descriptors()
812 mp_int_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_gattc_read() local
814 return bluetooth_handle_errno(mp_bluetooth_gattc_read(conn_handle, value_handle)); in bluetooth_ble_gattc_read()
819 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_gattc_write() local
829 …return bluetooth_handle_errno(mp_bluetooth_gattc_write(conn_handle, value_handle, bufinfo.buf, &le… in bluetooth_ble_gattc_write()
835 uint16_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_gattc_exchange_mtu() local
836 return bluetooth_handle_errno(mp_bluetooth_gattc_exchange_mtu(conn_handle)); in bluetooth_ble_gattc_exchange_mtu()
853 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_l2cap_connect() local
856 return bluetooth_handle_errno(mp_bluetooth_l2cap_connect(conn_handle, psm, mtu)); in bluetooth_ble_l2cap_connect()
862 mp_int_t conn_handle = mp_obj_get_int(conn_handle_in); in bluetooth_ble_l2cap_disconnect() local
864 return bluetooth_handle_errno(mp_bluetooth_l2cap_disconnect(conn_handle, cid)); in bluetooth_ble_l2cap_disconnect()
869 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_l2cap_send() local
874 …bluetooth_handle_errno(mp_bluetooth_l2cap_send(conn_handle, cid, bufinfo.buf, bufinfo.len, &stalle… in bluetooth_ble_l2cap_send()
881 mp_int_t conn_handle = mp_obj_get_int(args[1]); in bluetooth_ble_l2cap_recvinto() local
887 … bluetooth_handle_errno(mp_bluetooth_l2cap_recvinto(conn_handle, cid, bufinfo.buf, &bufinfo.len)); in bluetooth_ble_l2cap_recvinto()
1172 void mp_bluetooth_gap_on_connected_disconnected(uint8_t event, uint16_t conn_handle, uint8_t addr_t… in mp_bluetooth_gap_on_connected_disconnected() argument
1173 mp_int_t args[] = {conn_handle, addr_type}; in mp_bluetooth_gap_on_connected_disconnected()
1177 void mp_bluetooth_gap_on_connection_update(uint16_t conn_handle, uint16_t conn_interval, uint16_t c… in mp_bluetooth_gap_on_connection_update() argument
1178 mp_int_t args[] = {conn_handle, conn_interval, conn_latency, supervision_timeout, status}; in mp_bluetooth_gap_on_connection_update()
1183 void mp_bluetooth_gatts_on_encryption_update(uint16_t conn_handle, bool encrypted, bool authenticat… in mp_bluetooth_gatts_on_encryption_update() argument
1184 mp_int_t args[] = {conn_handle, encrypted, authenticated, bonded, key_size}; in mp_bluetooth_gatts_on_encryption_update()
1209 void mp_bluetooth_gap_on_passkey_action(uint16_t conn_handle, uint8_t action, mp_int_t passkey) { in mp_bluetooth_gap_on_passkey_action() argument
1210 mp_int_t args[] = { conn_handle, action, passkey }; in mp_bluetooth_gap_on_passkey_action()
1215 void mp_bluetooth_gatts_on_write(uint16_t conn_handle, uint16_t value_handle) { in mp_bluetooth_gatts_on_write() argument
1216 mp_int_t args[] = {conn_handle, value_handle}; in mp_bluetooth_gatts_on_write()
1220 void mp_bluetooth_gatts_on_indicate_complete(uint16_t conn_handle, uint16_t value_handle, uint8_t s… in mp_bluetooth_gatts_on_indicate_complete() argument
1221 mp_int_t args[] = {conn_handle, value_handle, status}; in mp_bluetooth_gatts_on_indicate_complete()
1225 mp_int_t mp_bluetooth_gatts_on_read_request(uint16_t conn_handle, uint16_t value_handle) { in mp_bluetooth_gatts_on_read_request() argument
1226 mp_int_t args[] = {conn_handle, value_handle}; in mp_bluetooth_gatts_on_read_request()
1234 void mp_bluetooth_gatts_on_mtu_exchanged(uint16_t conn_handle, uint16_t value) { in mp_bluetooth_gatts_on_mtu_exchanged() argument
1235 mp_int_t args[] = {conn_handle, value}; in mp_bluetooth_gatts_on_mtu_exchanged()
1240 mp_int_t mp_bluetooth_on_l2cap_accept(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t ou… in mp_bluetooth_on_l2cap_accept() argument
1241 mp_int_t args[] = {conn_handle, cid, psm, our_mtu, peer_mtu}; in mp_bluetooth_on_l2cap_accept()
1249 void mp_bluetooth_on_l2cap_connect(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t our_m… in mp_bluetooth_on_l2cap_connect() argument
1250 mp_int_t args[] = {conn_handle, cid, psm, our_mtu, peer_mtu}; in mp_bluetooth_on_l2cap_connect()
1254 void mp_bluetooth_on_l2cap_disconnect(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t st… in mp_bluetooth_on_l2cap_disconnect() argument
1255 mp_int_t args[] = {conn_handle, cid, psm, status}; in mp_bluetooth_on_l2cap_disconnect()
1259 void mp_bluetooth_on_l2cap_send_ready(uint16_t conn_handle, uint16_t cid, uint8_t status) { in mp_bluetooth_on_l2cap_send_ready() argument
1260 mp_int_t args[] = {conn_handle, cid, status}; in mp_bluetooth_on_l2cap_send_ready()
1264 void mp_bluetooth_on_l2cap_recv(uint16_t conn_handle, uint16_t cid) { in mp_bluetooth_on_l2cap_recv() argument
1265 mp_int_t args[] = {conn_handle, cid}; in mp_bluetooth_on_l2cap_recv()
1282 void mp_bluetooth_gattc_on_primary_service_result(uint16_t conn_handle, uint16_t start_handle, uint… in mp_bluetooth_gattc_on_primary_service_result() argument
1283 mp_int_t args[] = {conn_handle, start_handle, end_handle}; in mp_bluetooth_gattc_on_primary_service_result()
1287 void mp_bluetooth_gattc_on_characteristic_result(uint16_t conn_handle, uint16_t def_handle, uint16_… in mp_bluetooth_gattc_on_characteristic_result() argument
1288 mp_int_t args[] = {conn_handle, def_handle, value_handle, properties}; in mp_bluetooth_gattc_on_characteristic_result()
1292 void mp_bluetooth_gattc_on_descriptor_result(uint16_t conn_handle, uint16_t handle, mp_obj_bluetoot… in mp_bluetooth_gattc_on_descriptor_result() argument
1293 mp_int_t args[] = {conn_handle, handle}; in mp_bluetooth_gattc_on_descriptor_result()
1297 void mp_bluetooth_gattc_on_discover_complete(uint8_t event, uint16_t conn_handle, uint16_t status) { in mp_bluetooth_gattc_on_discover_complete() argument
1298 mp_int_t args[] = {conn_handle, status}; in mp_bluetooth_gattc_on_discover_complete()
1302 void mp_bluetooth_gattc_on_data_available(uint8_t event, uint16_t conn_handle, uint16_t value_handl… in mp_bluetooth_gattc_on_data_available() argument
1326 mp_int_t args[] = {conn_handle, value_handle}; in mp_bluetooth_gattc_on_data_available()
1334 void mp_bluetooth_gattc_on_read_write_status(uint8_t event, uint16_t conn_handle, uint16_t value_ha… in mp_bluetooth_gattc_on_read_write_status() argument
1335 mp_int_t args[] = {conn_handle, value_handle, status}; in mp_bluetooth_gattc_on_read_write_status()
1390 void mp_bluetooth_gap_on_connected_disconnected(uint8_t event, uint16_t conn_handle, uint8_t addr_t… in mp_bluetooth_gap_on_connected_disconnected() argument
1394 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gap_on_connected_disconnected()
1403 void mp_bluetooth_gap_on_connection_update(uint16_t conn_handle, uint16_t conn_interval, uint16_t c… in mp_bluetooth_gap_on_connection_update() argument
1407 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gap_on_connection_update()
1416 void mp_bluetooth_gatts_on_write(uint16_t conn_handle, uint16_t value_handle) { in mp_bluetooth_gatts_on_write() argument
1420 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gatts_on_write()
1426 void mp_bluetooth_gatts_on_indicate_complete(uint16_t conn_handle, uint16_t value_handle, uint8_t s… in mp_bluetooth_gatts_on_indicate_complete() argument
1430 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gatts_on_indicate_complete()
1437 mp_int_t mp_bluetooth_gatts_on_read_request(uint16_t conn_handle, uint16_t value_handle) { in mp_bluetooth_gatts_on_read_request() argument
1438 (void)conn_handle; in mp_bluetooth_gatts_on_read_request()
1444 void mp_bluetooth_gatts_on_mtu_exchanged(uint16_t conn_handle, uint16_t value) { in mp_bluetooth_gatts_on_mtu_exchanged() argument
1448 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gatts_on_mtu_exchanged()
1488 void mp_bluetooth_gattc_on_primary_service_result(uint16_t conn_handle, uint16_t start_handle, uint… in mp_bluetooth_gattc_on_primary_service_result() argument
1492 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_primary_service_result()
1500 void mp_bluetooth_gattc_on_characteristic_result(uint16_t conn_handle, uint16_t def_handle, uint16_… in mp_bluetooth_gattc_on_characteristic_result() argument
1504 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_characteristic_result()
1513 void mp_bluetooth_gattc_on_descriptor_result(uint16_t conn_handle, uint16_t handle, mp_obj_bluetoot… in mp_bluetooth_gattc_on_descriptor_result() argument
1517 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_descriptor_result()
1524 void mp_bluetooth_gattc_on_discover_complete(uint8_t event, uint16_t conn_handle, uint16_t status) { in mp_bluetooth_gattc_on_discover_complete() argument
1528 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_discover_complete()
1534 void mp_bluetooth_gattc_on_data_available(uint8_t event, uint16_t conn_handle, uint16_t value_handl… in mp_bluetooth_gattc_on_data_available() argument
1548 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_data_available()
1565 void mp_bluetooth_gattc_on_read_write_status(uint8_t event, uint16_t conn_handle, uint16_t value_ha… in mp_bluetooth_gattc_on_read_write_status() argument
1569 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gattc_on_read_write_status()