aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-04-06 08:14:08 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-04-06 08:14:08 +0000
commitc77f136661ae0fa779c02ef6efeab95aa4b92068 (patch)
treef01814bcc62d2498f733bc954c364283c0b721aa /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
parentb9c7d196152652df918a822522061c3fe193d273 (diff)
downloadlufa-c77f136661ae0fa779c02ef6efeab95aa4b92068.tar.gz
lufa-c77f136661ae0fa779c02ef6efeab95aa4b92068.tar.bz2
lufa-c77f136661ae0fa779c02ef6efeab95aa4b92068.zip
Add bidirectional channel configuration -- remote device is not ACKing sent Configuration Requests, needs further debugging. Implement Bluetooth spec's channel states.
Use abbreviations for the structure and function names where possible to try to cut down on the code verbosity.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
index f64bba016..9c1adf0f4 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h
@@ -94,13 +94,13 @@
uint8_t ParameterLength;
uint8_t Parameters[];
- } Bluetooth_HCICommand_Header_t;
+ } BT_HCICommand_Header_t;
typedef struct
{
uint8_t EventCode;
uint8_t ParameterLength;
- } Bluetooth_HCIEvent_Header_t;
+ } BT_HCIEvent_Header_t;
typedef struct
{
@@ -112,14 +112,14 @@
int OCF : 10;
int OGF : 6;
} OpCode;
- } Bluetooth_HCIEvent_CommandStatus_t;
+ } BT_HCIEvent_CommandStatus_t;
typedef struct
{
uint8_t HCLPacketsAllowable;
uint16_t Opcode;
uint8_t ReturnParams[];
- } Bluetooth_HCIEvent_CommandComplete_t;
+ } BT_HCIEvent_CommandComplete_t;
typedef struct
{
@@ -127,7 +127,7 @@
uint8_t ClassOfDevice_Service;
uint16_t ClassOfDevice_MajorMinor;
uint8_t LinkType;
- } Bluetooth_HCIEvent_ConnectionRequest_t;
+ } BT_HCIEvent_ConnectionRequest_t;
typedef struct
{
@@ -136,34 +136,34 @@
uint8_t RemoteAddress[6];
uint8_t LinkType;
uint8_t EncryptionEnabled;
- } Bluetooth_HCIEvent_ConnectionComplete_t;
+ } BT_HCIEvent_ConnectionComplete_t;
typedef struct
{
uint8_t RemoteAddress[6];
- } Bluetooth_HCIEvent_PinCodeRequest_t;
+ } BT_HCIEvent_PinCodeReq_t;
typedef struct
{
uint8_t RemoteAddress[6];
uint8_t SlaveRole;
- } Bluetooth_HCICommand_AcceptConnectionRequest_t;
+ } BT_HCICommand_AcceptConnectionReq_t;
typedef struct
{
uint8_t RemoteAddress[6];
uint8_t Reason;
- } Bluetooth_HCICommand_RejectConnectionRequest_t;
+ } BT_HCICommand_RejectConnectionReq_t;
typedef struct
{
uint8_t RemoteAddress[6];
uint8_t PINCodeLength;
char PINCode[16];
- } Bluetooth_HCICommand_PinCodeResponse_t;
+ } BT_HCICommand_PinCodeResp_t;
/* Enums: */
- enum Bluetooth_ScanEnable_Modes_t
+ enum BT_ScanEnable_Modes_t
{
BT_SCANMODE_NoScansEnabled = 0,
BT_SCANMODE_InquiryScanOnly = 1,
@@ -171,7 +171,7 @@
BT_SCANMODE_InquiryAndPageScans = 3,
};
- enum BluetoothStack_States_t
+ enum BT_HCIStates_t
{
Bluetooth_ProcessEvents = 0,
Bluetooth_Init = 1,
@@ -188,8 +188,7 @@
extern uint8_t Bluetooth_HCIProcessingState;
/* Function Prototypes: */
- void Bluetooth_ProcessHCICommands(void);
- void Bluetooth_ProcessHCIEvents(void);
+ void Bluetooth_HCITask(void);
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);