Add PSM value to the RFCOMM service so that the host knows what PSM to use on channel...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / SDPServices.h
index 738cc06..1cfc2b2 100644 (file)
                 */\r
                typedef struct\r
                {\r
-                       uint8_t     Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */\r
-                       uint8_t     Size; /**< Size of the inner Data Element sequence */\r
+                       uint8_t        Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */\r
+                       uint8_t        Size; /**< Size of the inner Data Element sequence */\r
                        \r
                        struct\r
                        {\r
                                ItemUUID_t UUID; /**< UUID to store in the protocol list Data Element sequence */\r
                        } Protocol;\r
                } ItemProtocol_t;\r
+\r
+               /** Structure for a list of Data Elements Sequences containing UUID Data Elements and 16-bit PSM values, for service\r
+                *  attributes requiring extended protocol lists.\r
+                */\r
+               typedef struct\r
+               {\r
+                       uint8_t         Header; /**< Data Element header, should be (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit) */\r
+                       uint8_t         Size; /**< Size of the inner Data Element sequence */\r
+                       \r
+                       struct\r
+                       {\r
+                               ItemUUID_t  UUID; /**< UUID to store in the protocol list Data Element sequence */\r
+                               Item16Bit_t PSM; /**< PSM that is to be used to access the service on created channels */\r
+                       } Protocol;\r
+               } ItemProtocolPSM_t;\r
                \r
                /** Structure for a list of Data Elements containing language encodings, including the language ID, Encoding ID and\r
                 *  Attribute base offset.\r