Add PSM value to the RFCOMM service so that the host knows what PSM to use on channels when trying to access it.
This commit is contained in:
parent
008e0e2e0a
commit
480da5aab6
6 changed files with 57 additions and 56 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue