X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/141d94fa980b6056c1922cbfeb9f5535227331c5..55d7e1e65bccd6b4c44802cf971f39eb05e6e57a:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h index d50f6b480..894c37003 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.h @@ -28,6 +28,11 @@ this software. */ +/** \file + * + * Header file for BluetoothACLPackets.c. + */ + #ifndef _BLUETOOTH_ACLPACKETS_ #define _BLUETOOTH_ACLPACKETS_ @@ -46,15 +51,17 @@ #define BT_ACL_DEBUG(l, s, ...) do { if (ACL_DEBUG_LEVEL >= l) printf_P(PSTR("(ACL) " s "\r\n"), ##__VA_ARGS__); } while (0) #define ACL_DEBUG_LEVEL 0 - /** Lowest possible channel number for L2CAP data channels */ + /** Lowest possible channel number for L2CAP data channels. */ #define BT_CHANNELNUMBER_BASEOFFSET 0x0040 - /** Bluetooth specification defined channel number for signalling commands */ + /** Bluetooth specification defined channel number for signalling commands. */ #define BT_CHANNEL_SIGNALING 0x0001 - /** Bluetooth specification defined channel number for connectionless data */ + /** Bluetooth specification defined channel number for connectionless data. */ #define BT_CHANNEL_CONNECTIONLESS 0x0002 + #define BT_ACL_FIRST_AUTOFLUSH (1 << 13) + #define BT_SIGNAL_COMMAND_REJECT 0x01 #define BT_SIGNAL_CONNECTION_REQUEST 0x02 #define BT_SIGNAL_CONNECTION_RESPONSE 0x03 @@ -82,9 +89,7 @@ #define BT_CONFIGURATION_UNKNOWNOPTIONS 0x0003 #define BT_CONFIG_OPTION_MTU 1 - - #define BT_ACL_FIRST_AUTOFLUSH (1 << 13) - + /* Type Defines: */ /** Bluetooth ACL header structure, common to all ACL data packets. */ typedef struct @@ -93,14 +98,14 @@ uint16_t DataLength; /**< Length of the packet payload, in bytes */ } BT_ACL_Header_t; - /** Bluetooth ACL data packet header structure, for ACL packets containing L2CAP data */ + /** Bluetooth ACL data packet header structure, for ACL packets containing L2CAP data. */ typedef struct { uint16_t PayloadLength; /**< Size of the data payload, in bytes */ uint16_t DestinationChannel; /**< Destination channel in the device the data is directed to */ } BT_DataPacket_Header_t; - /** Bluetooth signalling command header structure, for all ACL packets containing a signalling command */ + /** Bluetooth signalling command header structure, for all ACL packets containing a signalling command. */ typedef struct { uint8_t Code; /**< Signal code, a BT_SIGNAL_* mask value */