/AliOS-Things-master/components/py_engine/tests/multi_bluetooth/ |
A D | ble_l2cap.py | 49 conn_handle, cid, psm, our_mtu, peer_mtu = data 50 print("_IRQ_L2CAP_ACCEPT", psm, our_mtu, peer_mtu) 51 waiting_events[event] = (conn_handle, cid, psm) 53 conn_handle, cid, psm, our_mtu, peer_mtu = data 54 print("_IRQ_L2CAP_CONNECT", psm, our_mtu, peer_mtu) 55 waiting_events[event] = (conn_handle, cid, psm, our_mtu, peer_mtu) 57 conn_handle, cid, psm, status = data 58 print("_IRQ_L2CAP_DISCONNECT", psm, status) 123 conn_handle, cid, psm = wait_for_event(_IRQ_L2CAP_ACCEPT, TIMEOUT_MS) 124 conn_handle, cid, psm, our_mtu, peer_mtu = wait_for_event(_IRQ_L2CAP_CONNECT, TIMEOUT_MS) [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | l2cap.c | 472 req->psm = sys_cpu_to_le16(ch->chan.psm); in l2cap_le_conn_req() 506 req->psm = sys_cpu_to_le16(ch->chan.psm); in l2cap_ecred_conn_req() 720 if (server->psm == psm) { in l2cap_server_lookup_psm() 746 u16_t psm; in bt_l2cap_server_register() local 749 psm <= L2CAP_LE_PSM_DYN_END; psm++) { in bt_l2cap_server_register() 761 server->psm = psm; in bt_l2cap_server_register() 983 (*chan)->psm = server->psm; in l2cap_chan_accept() 1012 psm = sys_le16_to_cpu(req->psm); in le_conn_req() 1088 psm = sys_le16_to_cpu(req->psm); in le_ecred_conn_req() 2366 ch->chan.psm = psm; in l2cap_le_connect() [all …]
|
A D | l2cap_br.c | 491 if (server->psm == psm) { in l2cap_br_server_lookup_psm() 674 u16_t psm, scid, result; in l2cap_br_conn_req() local 681 psm = sys_le16_to_cpu(req->psm); in l2cap_br_conn_req() 1190 u16_t psm) in bt_l2cap_br_chan_connect() argument 1196 if (!psm) { in bt_l2cap_br_chan_connect() 1200 if (chan->psm) { in bt_l2cap_br_chan_connect() 1205 if ((psm & 0x0101) != 0x0001) { in bt_l2cap_br_chan_connect() 1212 psm != L2CAP_BR_PSM_SDP) { in bt_l2cap_br_chan_connect() 1234 chan->psm = psm; in bt_l2cap_br_chan_connect() 1261 req->psm = sys_cpu_to_le16(psm); in bt_l2cap_br_chan_connect() [all …]
|
A D | l2cap_internal.h | 54 u16_t psm; member 159 u16_t psm; member 196 u16_t psm; member 366 u16_t psm);
|
A D | avdtp.c | 291 .psm = BT_L2CAP_PSM_AVDTP, in bt_avdtp_init()
|
A D | rfcomm.c | 1727 .psm = BT_L2CAP_PSM_RFCOMM, in bt_rfcomm_init()
|
A D | sdp.c | 1424 .psm = SDP_PSM, in bt_sdp_init()
|
A D | att.c | 2795 .psm = BT_EATT_PSM, in bt_eatt_init()
|
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/ |
A D | l2cap.h | 107 u16_t psm; member 292 u16_t psm; member 361 struct bt_l2cap_chan **chans, u16_t psm); 382 u16_t psm);
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/ |
A D | bt.c | 1558 if (server[i].psm == 0) { in cmd_l2cap_register() 1569 server[i].psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_register() 1577 server[i].psm = 0; in cmd_l2cap_register() 1588 u16_t psm; in cmd_l2cap_connect() local 1615 psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_connect() 1631 u16_t psm; in cmd_l2cap_disconnect() local 1634 psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_disconnect() 1637 if (l2cap_chan[i].chan.psm == psm) { in cmd_l2cap_disconnect() 1656 u16_t psm = 0; in cmd_l2cap_send() local 1660 psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_send() [all …]
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modbluetooth.h | 397 int mp_bluetooth_l2cap_listen(uint16_t psm, uint16_t mtu); 398 int mp_bluetooth_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu); 474 mp_int_t mp_bluetooth_on_l2cap_accept(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t ou… 475 void mp_bluetooth_on_l2cap_connect(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t our_m… 476 void mp_bluetooth_on_l2cap_disconnect(uint16_t conn_handle, uint16_t cid, uint16_t psm, uint16_t st…
|
A D | modbluetooth.c | 846 mp_int_t psm = mp_obj_get_int(psm_in); in bluetooth_ble_l2cap_listen() local 848 return bluetooth_handle_errno(mp_bluetooth_l2cap_listen(psm, mtu)); in bluetooth_ble_l2cap_listen() 854 mp_int_t psm = mp_obj_get_int(args[2]); in bluetooth_ble_l2cap_connect() local 856 return bluetooth_handle_errno(mp_bluetooth_l2cap_connect(conn_handle, psm, mtu)); in bluetooth_ble_l2cap_connect() 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()
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/ |
A D | bt.c | 2584 if (server[i].psm == 0) { in cmd_l2cap_register() 2603 server[i].psm = 0; in cmd_l2cap_register() 2614 u16_t psm; in cmd_l2cap_connect() local 2641 psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_connect() 2657 u16_t psm; in cmd_l2cap_disconnect() local 2660 psm = strtoul(argv[1], NULL, 16); in cmd_l2cap_disconnect() 2663 if (l2cap_chan[i].chan.psm == psm) { in cmd_l2cap_disconnect() 2682 u16_t psm = 0; in cmd_l2cap_send() local 2696 if (l2cap_chan[i].chan.psm == psm) { in cmd_l2cap_send() 2812 if (br_server.psm) { in cmd_bredr_l2cap_register() [all …]
|
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/ |
A D | modbluetooth_nimble.c | 1480 …mp_bluetooth_on_l2cap_connect(event->connect.conn_handle, info.scid, info.psm, info.our_coc_mtu, i… in l2cap_channel_event() 1482 …mp_bluetooth_on_l2cap_disconnect(event->connect.conn_handle, info.scid, info.psm, event->connect.s… in l2cap_channel_event() 1490 mp_bluetooth_on_l2cap_disconnect(event->disconnect.conn_handle, info.scid, info.psm, 0); in l2cap_channel_event() 1498 …int ret = mp_bluetooth_on_l2cap_accept(event->accept.conn_handle, info.scid, info.psm, info.our_co… in l2cap_channel_event() 1647 int mp_bluetooth_l2cap_listen(uint16_t psm, uint16_t mtu) { in mp_bluetooth_l2cap_listen() argument 1648 DEBUG_printf("mp_bluetooth_l2cap_listen: psm=%d, mtu=%d\n", psm, mtu); in mp_bluetooth_l2cap_listen() 1658 return ble_hs_err_to_errno(ble_l2cap_create_server(psm, mtu, &l2cap_channel_event, chan)); in mp_bluetooth_l2cap_listen() 1661 int mp_bluetooth_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu) { in mp_bluetooth_l2cap_connect() argument 1662 …DEBUG_printf("mp_bluetooth_l2cap_connect: conn_handle=%d, psm=%d, mtu=%d\n", conn_handle, psm, mtu… in mp_bluetooth_l2cap_connect() 1672 …return ble_hs_err_to_errno(ble_l2cap_connect(conn_handle, psm, mtu, sdu_rx, &l2cap_channel_event, … in mp_bluetooth_l2cap_connect()
|
/AliOS-Things-master/components/SDL2/src/render/psp/ |
A D | SDL_render_psp.c | 67 unsigned int psm ; member 990 data->psm = pixelformat; in PSP_CreateRenderer() 996 data->psm = GU_PSM_8888; in PSP_CreateRenderer() 1003 sceGuDrawBuffer(data->psm, data->frontbuffer, PSP_FRAME_BUFFER_WIDTH); in PSP_CreateRenderer()
|
/AliOS-Things-master/components/py_engine/engine/extmod/btstack/ |
A D | modbluetooth_btstack.c | 1431 int mp_bluetooth_l2cap_listen(uint16_t psm, uint16_t mtu) { in mp_bluetooth_l2cap_listen() argument 1432 DEBUG_printf("mp_bluetooth_l2cap_listen: psm=%d, mtu=%d\n", psm, mtu); in mp_bluetooth_l2cap_listen() 1436 int mp_bluetooth_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu) { in mp_bluetooth_l2cap_connect() argument 1437 …DEBUG_printf("mp_bluetooth_l2cap_connect: conn_handle=%d, psm=%d, mtu=%d\n", conn_handle, psm, mtu… in mp_bluetooth_l2cap_connect()
|