@ -34,7 +34,7 @@ const struct
{
uint8_t Header ;
uint32_t Data ;
} PROGMEM RFCOMM _Attribute_ServiceHandle =
} PROGMEM SerialPort _Attribute_ServiceHandle =
{
( SDP_DATATYPE_UnsignedInt | SDP_DATASIZE_32Bit ) ,
SWAPENDIAN_32 ( 0x00010001 ) ,
@ -45,7 +45,7 @@ const struct
uint8_t Header ;
uint16_t Size ;
ItemUUID_t UUIDList [ ] ;
} PROGMEM RFCOMM _Attribute_ServiceClassIDs =
} PROGMEM SerialPort _Attribute_ServiceClassIDs =
{
( SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit ) ,
SWAPENDIAN_16 ( sizeof ( ItemUUID_t ) * 1 ) ,
@ -56,11 +56,11 @@ const struct
const struct
{
uint8_t Header ;
uint16_t Size ;
uint8_t Header ;
uint16_t Size ;
ItemProtocol_t ProtocolList [ ] ;
} PROGMEM RFCOMM _Attribute_ProtocolDescriptor =
} PROGMEM SerialPort _Attribute_ProtocolDescriptor =
{
( SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit ) ,
SWAPENDIAN_16 ( sizeof ( ItemProtocol_t ) * 2 ) ,
@ -87,7 +87,7 @@ const struct
uint8_t Header ;
uint16_t Size ;
ItemUUID_t UUIDList [ ] ;
} PROGMEM RFCOMM _Attribute_BrowseGroupList =
} PROGMEM SerialPort _Attribute_BrowseGroupList =
{
( SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit ) ,
SWAPENDIAN_16 ( sizeof ( ItemUUID_t ) * 1 ) ,
@ -98,14 +98,14 @@ const struct
const struct
{
uint8_t Header ;
uint8_t Size ;
ItemLang ID_t OffsetList [ ] ;
} PROGMEM RFCOMM _Attribute_LanguageBaseIDOffset =
uint8_t Header ;
uint8_t Size ;
ItemLang Encoding_t LanguageEncodings [ ] ;
} PROGMEM SerialPort _Attribute_LanguageBaseIDOffset =
{
. Header = ( SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit ) ,
. Size = ( sizeof ( ItemLang ID _t) * 1 ) ,
. OffsetList =
. Size = ( sizeof ( ItemLang Encoding _t) * 1 ) ,
. LanguageEncodings =
{
{
{ ( SDP_DATATYPE_UnsignedInt | SDP_DATASIZE_16Bit ) , SWAPENDIAN_16 ( 0x454E ) } ,
@ -120,11 +120,11 @@ const struct
uint8_t Header ;
uint8_t Size ;
char Text [ ] ;
} PROGMEM RFCOMM _Attribute_ServiceName =
} PROGMEM SerialPort _Attribute_ServiceName =
{
( SDP_DATATYPE_String | SDP_DATASIZE_Variable8Bit ) ,
sizeof ( " Serial Port" ) - 1 ,
" Serial Port" ,
sizeof ( " Wireless Serial Port" ) - 1 ,
" Wireless Serial Port" ,
} ;
const struct
@ -132,22 +132,22 @@ const struct
uint8_t Header ;
uint8_t Size ;
char Text [ ] ;
} PROGMEM RFCOMM _Attribute_ServiceDescription =
} PROGMEM SerialPort _Attribute_ServiceDescription =
{
( SDP_DATATYPE_String | SDP_DATASIZE_Variable8Bit ) ,
sizeof ( " Wireless Serial Port Service " ) - 1 ,
" Wireless Serial Port Service " ,
} ;
const ServiceAttributeTable_t PROGMEM RFCOMM _Attribute_Table[ ] =
const ServiceAttributeTable_t PROGMEM SerialPort _Attribute_Table[ ] =
{
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICERECORDHANDLE , . Data = & RFCOMM _Attribute_ServiceHandle } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICECLASSIDS , . Data = & RFCOMM _Attribute_ServiceClassIDs } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_PROTOCOLDESCRIPTORLIST , . Data = & RFCOMM _Attribute_ProtocolDescriptor } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_BROWSEGROUPLIST , . Data = & RFCOMM _Attribute_BrowseGroupList } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_LANGUAGEBASEATTROFFSET , . Data = & RFCOMM _Attribute_LanguageBaseIDOffset} ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICENAME , . Data = & RFCOMM _Attribute_ServiceName } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICEDESCRIPTION , . Data = & RFCOMM _Attribute_ServiceDescription } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICERECORDHANDLE , . Data = & SerialPort _Attribute_ServiceHandle } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICECLASSIDS , . Data = & SerialPort _Attribute_ServiceClassIDs } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_PROTOCOLDESCRIPTORLIST , . Data = & SerialPort _Attribute_ProtocolDescriptor } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_BROWSEGROUPLIST , . Data = & SerialPort _Attribute_BrowseGroupList } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_LANGUAGEBASEATTROFFSET , . Data = & SerialPort _Attribute_LanguageBaseIDOffset} ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICENAME , . Data = & SerialPort _Attribute_ServiceName } ,
{ . AttributeID = SDP_ATTRIBUTE_ID_SERVICEDESCRIPTION , . Data = & SerialPort _Attribute_ServiceDescription } ,
SERVICE_ATTRIBUTE_TABLE_TERMINATOR
} ;