X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/361e1ec1d83d5b6d97890f2a27b9c9ae24e561ee..34e0fed4ca7e2804d4e0ed5f1d36e08dca659ba0:/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h index dd30d5535..d25b7370f 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h @@ -68,8 +68,15 @@ /* Type Defines: */ typedef struct { - uint8_t Address; - uint8_t Control; + unsigned char EA : 1; + unsigned char CR : 1; + unsigned char DLCI : 6; + } RFCOMM_Address_t; + + typedef struct + { + RFCOMM_Address_t Address; + uint8_t Control; } RFCOMM_Header_t; /* Function Prototypes: */ @@ -83,8 +90,8 @@ static void RFCOMM_ProcessDISC(const RFCOMM_Header_t* const FrameHeader, Bluetooth_Channel_t* const Channel); static void RFCOMM_ProcessUIH(const RFCOMM_Header_t* const FrameHeader, Bluetooth_Channel_t* const Channel); - static void RFCOMM_SendFrame(const uint8_t Address, const uint8_t Type, const uint16_t DataLen, - const uint8_t* Data, Bluetooth_Channel_t* const Channel); + static void RFCOMM_SendFrame(const uint8_t DLCI, const bool CommandResponse, const uint8_t Control, + const uint16_t DataLen, const uint8_t* Data, Bluetooth_Channel_t* const Channel); static uint8_t RFCOMM_GetFCSValue(const void* FrameStart, uint16_t Length); static uint16_t RFCOMM_GetFrameDataLength(const uint8_t** BufferPos); #endif