diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 07:45:09 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 07:45:09 +0000 |
commit | 480da5aab642eb7e5b87e604a55a91bf872b3607 (patch) | |
tree | 248f6f1790322000fb872ae1f6a6e6da70c00799 /Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h | |
parent | 008e0e2e0a13e64e03f27f1c9a008ef201560878 (diff) | |
download | lufa-480da5aab642eb7e5b87e604a55a91bf872b3607.tar.gz lufa-480da5aab642eb7e5b87e604a55a91bf872b3607.tar.bz2 lufa-480da5aab642eb7e5b87e604a55a91bf872b3607.zip |
Add PSM value to the RFCOMM service so that the host knows what PSM to use on channels when trying to access it.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h index 738cc063d..1cfc2b2c0 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.h @@ -136,14 +136,29 @@ */
typedef struct
{
- uint8_t Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */
- uint8_t Size; /**< Size of the inner Data Element sequence */
+ uint8_t Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */
+ uint8_t Size; /**< Size of the inner Data Element sequence */
struct
{
ItemUUID_t UUID; /**< UUID to store in the protocol list Data Element sequence */
} Protocol;
} ItemProtocol_t;
+
+ /** Structure for a list of Data Elements Sequences containing UUID Data Elements and 16-bit PSM values, for service
+ * attributes requiring extended protocol lists.
+ */
+ typedef struct
+ {
+ uint8_t Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */
+ uint8_t Size; /**< Size of the inner Data Element sequence */
+
+ struct
+ {
+ ItemUUID_t UUID; /**< UUID to store in the protocol list Data Element sequence */
+ Item16Bit_t PSM; /**< PSM that is to be used to access the service on created channels */
+ } Protocol;
+ } ItemProtocolPSM_t;
/** Structure for a list of Data Elements containing language encodings, including the language ID, Encoding ID and
* Attribute base offset.
|