diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-01 04:30:21 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-01 04:30:21 +0000 |
commit | fd96b288824caaa3ee4e5e03887f016de9df80cf (patch) | |
tree | 05e97d04d4a40f80218e304226e5613ed3106369 /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h | |
parent | a2e6d54336144f7fa3cc1d77f887cc9e20631771 (diff) | |
download | lufa-fd96b288824caaa3ee4e5e03887f016de9df80cf.tar.gz lufa-fd96b288824caaa3ee4e5e03887f016de9df80cf.tar.bz2 lufa-fd96b288824caaa3ee4e5e03887f016de9df80cf.zip |
More improvements to the incomplete BluetoothHost demo - add Disconnection Event processing.
Remove unused macro in the host mode demos for the maximum Configuration Descriptor size.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h index 03a6505cb..4df5861cf 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h @@ -42,6 +42,8 @@ #include "BluetoothClassCodes.h"
/* Macros: */
+ #define BT_HCI_DEBUG(s, ...) printf_P(PSTR("(HCI) " s "\r\n"), __VA_ARGS__)
+
#define OGF_LINK_CONTROL 0x01
#define OGF_CTRLR_BASEBAND 0x03
#define OGF_CTRLR_INFORMATIONAL 0x04
@@ -164,24 +166,23 @@ /* Enums: */
enum Bluetooth_ScanEnable_Modes_t
{
- NoScansEnabled = 0,
- InquiryScanOnly = 1,
- PageScanOnly = 2,
- InquiryAndPageScans = 3,
+ BT_SCANMODE_NoScansEnabled = 0,
+ BT_SCANMODE_InquiryScanOnly = 1,
+ BT_SCANMODE_PageScanOnly = 2,
+ BT_SCANMODE_InquiryAndPageScans = 3,
};
enum BluetoothStack_States_t
{
- Bluetooth_ProcessEvents = 0,
- Bluetooth_Init = 1,
- Bluetooth_Init_Reset = 2,
- Bluetooth_Init_ReadBufferSize = 3,
- Bluetooth_Init_SetLocalName = 4,
- Bluetooth_Init_SetDeviceClass = 5,
- Bluetooth_Init_WriteScanEnable = 6,
- Bluetooth_Conn_AcceptConnection = 7,
- Bluetooth_Conn_RejectConnection = 8,
- Bluetooth_Conn_SendPINCode = 9,
+ Bluetooth_ProcessEvents = 0,
+ Bluetooth_Init = 1,
+ Bluetooth_Init_Reset = 2,
+ Bluetooth_Init_SetLocalName = 3,
+ Bluetooth_Init_SetDeviceClass = 4,
+ Bluetooth_Init_WriteScanEnable = 5,
+ Bluetooth_Conn_AcceptConnection = 6,
+ Bluetooth_Conn_RejectConnection = 7,
+ Bluetooth_Conn_SendPINCode = 8,
};
/* External Variables: */
@@ -192,7 +193,7 @@ void Bluetooth_ProcessHCIEvents(void);
#if defined(INCLUDE_FROM_BLUETOOTHHCICOMMANDS_C)
- static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint8_t ParamLength);
+ static uint8_t Bluetooth_SendHCICommand(void* Parameters, uint16_t ParameterLength);
#endif
#endif
|