bluetooth.h (61f37892ce2f663897f046830ee9796ac9611c6c) | bluetooth.h (dfbc0b0d57a9e6bb708ad5eecb50e3a9de5923e3) |
---|---|
1/* 2 * Copyright (C) 2015 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 658 unchanged lines hidden (view full) --- 667#define L2CAP_REJ_CMD_UNKNOWN 0x0000 668 669// Response Timeout eXpired 670#define L2CAP_RTX_TIMEOUT_MS 10000 671 672// Extended Response Timeout eXpired 673#define L2CAP_ERTX_TIMEOUT_MS 120000 674 | 1/* 2 * Copyright (C) 2015 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 658 unchanged lines hidden (view full) --- 667#define L2CAP_REJ_CMD_UNKNOWN 0x0000 668 669// Response Timeout eXpired 670#define L2CAP_RTX_TIMEOUT_MS 10000 671 672// Extended Response Timeout eXpired 673#define L2CAP_ERTX_TIMEOUT_MS 120000 674 |
675// Fixed PSM numbers | 675// 676// Fixed PSM numbers from https://www.bluetooth.com/specifications/assigned-numbers/logical-link-control 677// 678// @TODO: replace with BLUETOOTH_PROTOCOL_xxx in rest of code |
676#define PSM_SDP BLUETOOTH_PROTOCOL_SDP 677#define PSM_RFCOMM BLUETOOTH_PROTOCOL_RFCOMM 678#define PSM_BNEP BLUETOOTH_PROTOCOL_BNEP | 679#define PSM_SDP BLUETOOTH_PROTOCOL_SDP 680#define PSM_RFCOMM BLUETOOTH_PROTOCOL_RFCOMM 681#define PSM_BNEP BLUETOOTH_PROTOCOL_BNEP |
682// @TODO: scrape PSMs Bluetooth SIG site and put in bluetooth_psm.h or bluetooth_l2cap.h |
|
679#define PSM_HID_CONTROL 0x11 680#define PSM_HID_INTERRUPT 0x13 | 683#define PSM_HID_CONTROL 0x11 684#define PSM_HID_INTERRUPT 0x13 |
685#define PSM_IPSP 0x23 |
|
681 682/** 683 * SDP Protocol 684 */ 685 686 // PDU Types 687typedef enum { 688 SDP_Invalid = 0, --- 458 unchanged lines hidden --- | 686 687/** 688 * SDP Protocol 689 */ 690 691 // PDU Types 692typedef enum { 693 SDP_Invalid = 0, --- 458 unchanged lines hidden --- |