aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-06-15 09:32:35 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-06-15 09:32:35 +0000
commit3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff (patch)
tree816f6c01fc561fb9bdf346c433a1915fc61e737d /Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
parentdcedde012341a7cfff88c85203e735e99332627e (diff)
downloadlufa-3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff.tar.gz
lufa-3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff.tar.bz2
lufa-3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff.zip
Add RFCOMM channel configuration parsing and channel states to the incomplete BluetoothHost demo.
Add missing BT_* prefix to the Bluetooth stack's channel state enum values.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
index 68f0cf1fb..5ccfc2d23 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
@@ -69,24 +69,24 @@
RFCOMM_Frame_UIH = 0xEF, /**< Unnumbered Information with Header check Field */
};
- /* Type Defines: */
- typedef struct
- {
- unsigned char EA : 1;
- unsigned char CR : 1;
- unsigned char DLCI : 6;
- } RFCOMM_Address_t;
-
- typedef struct
+ enum RFCOMM_Channel_States_t
{
- RFCOMM_Address_t Address;
- uint8_t Control;
- } RFCOMM_Header_t;
+ RFCOMM_Channel_Closed = 0,
+ RFCOMM_Channel_Create = 1,
+ RFCOMM_Channel_Creating = 2,
+ RFCOMM_Channel_Configure = 3,
+ RFCOMM_Channel_Configuring = 4,
+ RFCOMM_Channel_Open = 5,
+ };
+ /* Type Defines: */
typedef struct
{
- uint8_t DLCI;
- bool Configured;
+ uint8_t DLCI;
+ uint8_t State;
+ uint8_t Priority;
+ bool UseUIFrames;
+ uint16_t RemoteMTU;
} RFCOMM_Channel_t;
/* External Variables: */