projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add bidirectional channel configuration -- remote device is not ACKing sent Configura...
[pub/lufa.git]
/
Demos
/
Host
/
Incomplete
/
BluetoothHost
/
Lib
/
BluetoothHCICommands.h
diff --git
a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
index
f64bba0
..
9c1adf0
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
+++ b/
Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
@@
-94,13
+94,13
@@
\r
uint8_t ParameterLength;
\r
uint8_t Parameters[];
\r
\r
uint8_t ParameterLength;
\r
uint8_t Parameters[];
\r
- } B
luetooth
_HCICommand_Header_t;
\r
+ } B
T
_HCICommand_Header_t;
\r
\r
typedef struct
\r
{
\r
uint8_t EventCode;
\r
uint8_t ParameterLength;
\r
\r
typedef struct
\r
{
\r
uint8_t EventCode;
\r
uint8_t ParameterLength;
\r
- } B
luetooth
_HCIEvent_Header_t;
\r
+ } B
T
_HCIEvent_Header_t;
\r
\r
typedef struct
\r
{
\r
\r
typedef struct
\r
{
\r
@@
-112,14
+112,14
@@
int OCF : 10;
\r
int OGF : 6;
\r
} OpCode;
\r
int OCF : 10;
\r
int OGF : 6;
\r
} OpCode;
\r
- } B
luetooth
_HCIEvent_CommandStatus_t;
\r
+ } B
T
_HCIEvent_CommandStatus_t;
\r
\r
typedef struct
\r
{
\r
uint8_t HCLPacketsAllowable;
\r
uint16_t Opcode;
\r
uint8_t ReturnParams[];
\r
\r
typedef struct
\r
{
\r
uint8_t HCLPacketsAllowable;
\r
uint16_t Opcode;
\r
uint8_t ReturnParams[];
\r
- } B
luetooth
_HCIEvent_CommandComplete_t;
\r
+ } B
T
_HCIEvent_CommandComplete_t;
\r
\r
typedef struct
\r
{
\r
\r
typedef struct
\r
{
\r
@@
-127,7
+127,7
@@
uint8_t ClassOfDevice_Service;
\r
uint16_t ClassOfDevice_MajorMinor;
\r
uint8_t LinkType;
\r
uint8_t ClassOfDevice_Service;
\r
uint16_t ClassOfDevice_MajorMinor;
\r
uint8_t LinkType;
\r
- } B
luetooth
_HCIEvent_ConnectionRequest_t;
\r
+ } B
T
_HCIEvent_ConnectionRequest_t;
\r
\r
typedef struct
\r
{
\r
\r
typedef struct
\r
{
\r
@@
-136,34
+136,34
@@
uint8_t RemoteAddress[6];
\r
uint8_t LinkType;
\r
uint8_t EncryptionEnabled;
\r
uint8_t RemoteAddress[6];
\r
uint8_t LinkType;
\r
uint8_t EncryptionEnabled;
\r
- } B
luetooth
_HCIEvent_ConnectionComplete_t;
\r
+ } B
T
_HCIEvent_ConnectionComplete_t;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
- } B
luetooth_HCIEvent_PinCodeRequest
_t;
\r
+ } B
T_HCIEvent_PinCodeReq
_t;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t SlaveRole;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t SlaveRole;
\r
- } B
luetooth_HCICommand_AcceptConnectionRequest
_t;
\r
+ } B
T_HCICommand_AcceptConnectionReq
_t;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t Reason;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t Reason;
\r
- } B
luetooth_HCICommand_RejectConnectionRequest
_t;
\r
+ } B
T_HCICommand_RejectConnectionReq
_t;
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t PINCodeLength;
\r
char PINCode[16];
\r
\r
typedef struct
\r
{
\r
uint8_t RemoteAddress[6];
\r
uint8_t PINCodeLength;
\r
char PINCode[16];
\r
- } B
luetooth_HCICommand_PinCodeResponse
_t;
\r
+ } B
T_HCICommand_PinCodeResp
_t;
\r
\r
/* Enums: */
\r
\r
/* Enums: */
\r
- enum B
luetooth
_ScanEnable_Modes_t
\r
+ enum B
T
_ScanEnable_Modes_t
\r
{
\r
BT_SCANMODE_NoScansEnabled = 0,
\r
BT_SCANMODE_InquiryScanOnly = 1,
\r
{
\r
BT_SCANMODE_NoScansEnabled = 0,
\r
BT_SCANMODE_InquiryScanOnly = 1,
\r
@@
-171,7
+171,7
@@
BT_SCANMODE_InquiryAndPageScans = 3,
\r
};
\r
\r
BT_SCANMODE_InquiryAndPageScans = 3,
\r
};
\r
\r
- enum B
luetoothStack_
States_t
\r
+ enum B
T_HCI
States_t
\r
{
\r
Bluetooth_ProcessEvents = 0,
\r
Bluetooth_Init = 1,
\r
{
\r
Bluetooth_ProcessEvents = 0,
\r
Bluetooth_Init = 1,
\r
@@
-188,8
+188,7
@@
extern uint8_t Bluetooth_HCIProcessingState;
\r
\r
/* Function Prototypes: */
\r
extern uint8_t Bluetooth_HCIProcessingState;
\r
\r
/* Function Prototypes: */
\r
- void Bluetooth_ProcessHCICommands(void);
\r
- void Bluetooth_ProcessHCIEvents(void);
\r
+ void Bluetooth_HCITask(void);
\r
\r
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
\r
static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);
\r
\r
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
\r
static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);
\r