projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add RFCOMM channel configuration parsing and channel states to the incomplete Bluetoo...
[pub/USBasp.git]
/
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
68f0cf1
..
5ccfc2d
100644
(file)
--- 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 */
};
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
{
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: */
} RFCOMM_Channel_t;
/* External Variables: */