X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff..55d7e1e65bccd6b4c44802cf971f39eb05e6e57a:/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h index e12c74c76..adad4332f 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h @@ -50,7 +50,11 @@ #include "RFCOMM.h" /* Macros: */ - #define RFCOMM_ + #define RFCOMM_SIGNAL_FC (1 << 1) + #define RFCOMM_SIGNAL_RTC (1 << 2) + #define RFCOMM_SIGNAL_RTR (1 << 3) + #define RFCOMM_SIGNAL_IC (1 << 6) + #define RFCOMM_SIGNAL_DV (1 << 7) /* Enums: */ enum RFCOMM_Control_Commands_t @@ -97,19 +101,26 @@ uint8_t MaxRetransmissions; uint8_t RecoveryWindowSize; } RFCOMM_DPN_Parameters_t; + + typedef struct + { + RFCOMM_Address_t Channel; + uint8_t Signals; + uint8_t BreakSignal; + } RFCOMM_MS_Parameters_t; /* Function Prototypes: */ void RFCOMM_ProcessControlCommand(const uint8_t* Command, Bluetooth_Channel_t* const Channel); #if defined(INCLUDE_FROM_RFCOMM_CONTROL_C) - static void RFCOMM_ProcessTestCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData, - Bluetooth_Channel_t* const Channel); + static void RFCOMM_ProcessTestCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t CommandDataLen, + const uint8_t* CommandData, Bluetooth_Channel_t* const Channel); static void RFCOMM_ProcessFCECommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData, Bluetooth_Channel_t* const Channel); static void RFCOMM_ProcessFCDCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData, Bluetooth_Channel_t* const Channel); - static void RFCOMM_ProcessMSCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData, - Bluetooth_Channel_t* const Channel); + static void RFCOMM_ProcessMSCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t CommandDataLen, + const uint8_t* CommandData, Bluetooth_Channel_t* const Channel); static void RFCOMM_ProcessRPNCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData, Bluetooth_Channel_t* const Channel); static void RFCOMM_ProcessRLSCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData,