aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-06-13 12:37:16 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-06-13 12:37:16 +0000
commit2e3bd79b810eb85f614934aff789902f300683a0 (patch)
tree8a2dca1141986ca6dbaaeaf8747bdc598828e7e8 /Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
parent4b7d8bf5d429b89aa2a2d2e58b5390c33060e48a (diff)
More RFCOMM layer additions - begin to add multiplexer channel state variables.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1332 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
index 8d44c181..69cab494 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMM.h
@@ -55,6 +55,8 @@
#define FRAME_POLL_FINAL (1 << 4)
#define RFCOMM_CONTROL_DLCI 0
+
+ #define RFCOMM_MAX_OPEN_CHANNELS 5
/* Enums: */
/** Enum for the types of RFCOMM frames which can be exchanged on a Bluetooth channel. */
@@ -98,7 +100,13 @@
unsigned char EA : 1;
unsigned char CR : 1;
unsigned char Command : 6;
- } RFCOMM_Command_t;
+ } RFCOMM_Command_t;
+
+ typedef struct
+ {
+ uint8_t DLCI;
+ bool Configured;
+ } RFCOMM_Channel_t;
/* Function Prototypes: */
void RFCOMM_Initialize(void);
@@ -116,8 +124,11 @@
static void RFCOMM_SendFrame(const uint8_t DLCI, const bool CommandResponse, const uint8_t Control,
const uint16_t DataLen, const void* Data, Bluetooth_Channel_t* const Channel);
+
static uint8_t RFCOMM_GetFCSValue(const void* FrameStart, uint8_t Length);
static uint16_t RFCOMM_GetFrameDataLength(const uint8_t* const BufferPos);
+
+ RFCOMM_Channel_t RFCOMM_GetChannelData(const uint8_t DLCI);
#endif
#endif