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