X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/a2e6d54336144f7fa3cc1d77f887cc9e20631771..fd96b288824caaa3ee4e5e03887f016de9df80cf:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.h?ds=inline 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