Add RFCOMM service routine, to send pending configuration requests on RFCOMM channels...
[pub/lufa.git] / Demos / Host / Incomplete / BluetoothHost / Lib / RFCOMMControl.h
index adad433..7928d94 100644 (file)
                #include "RFCOMM.h"\r
                \r
        /* Macros: */\r
-               #define RFCOMM_SIGNAL_FC     (1 << 1)\r
-               #define RFCOMM_SIGNAL_RTC    (1 << 2)\r
-               #define RFCOMM_SIGNAL_RTR    (1 << 3)\r
-               #define RFCOMM_SIGNAL_IC     (1 << 6)\r
-               #define RFCOMM_SIGNAL_DV     (1 << 7)\r
+               #define RFCOMM_SIGNAL_FC               (1 << 1)\r
+               #define RFCOMM_SIGNAL_RTC              (1 << 2)\r
+               #define RFCOMM_SIGNAL_RTR              (1 << 3)\r
+               #define RFCOMM_SIGNAL_IC               (1 << 6)\r
+               #define RFCOMM_SIGNAL_DV               (1 << 7)\r
+               \r
+               #define RFCOMM_CONFIG_REMOTESIGNALS    (1 << 0)\r
+               #define RFCOMM_CONFIG_LOCALSIGNALS     (1 << 1)\r
+               #define RFCOMM_CONFIG_LOCALSIGNALSSENT (1 << 2)\r
 \r
        /* Enums: */\r
                enum RFCOMM_Control_Commands_t\r
                        RFCOMM_Address_t Channel;\r
                        uint8_t          Signals;\r
                        uint8_t          BreakSignal;\r
-               } RFCOMM_MS_Parameters_t;\r
+               } RFCOMM_MSC_Parameters_t;\r
 \r
        /* Function Prototypes: */\r
                void RFCOMM_ProcessControlCommand(const uint8_t* Command, Bluetooth_Channel_t* const Channel);\r
                                                             Bluetooth_Channel_t* const Channel);\r
                        static void RFCOMM_ProcessFCDCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData,\r
                                                             Bluetooth_Channel_t* const Channel);\r
-                       static void RFCOMM_ProcessMSCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t CommandDataLen,\r
-                                                           const uint8_t* CommandData, Bluetooth_Channel_t* const Channel);\r
+                       static void RFCOMM_ProcessMSCCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t CommandDataLen,\r
+                                                            const uint8_t* CommandData, Bluetooth_Channel_t* const Channel);\r
                        static void RFCOMM_ProcessRPNCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData,\r
                                                             Bluetooth_Channel_t* const Channel);\r
                        static void RFCOMM_ProcessRLSCommand(const RFCOMM_Command_t* const CommandHeader, const uint8_t* CommandData,\r