X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/3125fd5f4fe79b6acc89aea9f51b159db2dfd3ff..1621158c622e8dbe49deaacf88ea3f5b843b54ac:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h index 131c4aaf2..6f1ea6742 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.h @@ -87,13 +87,13 @@ /** Enum for the possible error codes returned by the \ref Bluetooth_SendPacket() function. */ enum BT_SendPacket_ErrorCodes_t { - BT_SENDPACKET_NoError = 0, /**< The packet was sent sucessfully. */ + BT_SENDPACKET_NoError = 0, /**< The packet was sent successfully. */ BT_SENDPACKET_NotConnected = 1, /**< The Bluetooth stack is not currently connected to a remote device. */ BT_SENDPACKET_ChannelNotOpen = 2, /**< The given channel is not currently in the Open state. */ }; /* Type Defines: */ - /** Type define for a Bluetooth ACL channel information structure. This structure contains all the relevent + /** Type define for a Bluetooth ACL channel information structure. This structure contains all the relevant * information on an ACL channel for data transmission and reception by the stack. */ typedef struct @@ -117,7 +117,7 @@ uint16_t ConnectionHandle; /**< Connection handle to the remote device, used internally in the stack. */ uint8_t RemoteAddress[6]; /**< Bluetooth device address of the attached remote device. */ Bluetooth_Channel_t Channels[BLUETOOTH_MAX_OPEN_CHANNELS]; /**< Channel information structures for the connection. */ - uint8_t SignallingIdentifier; /**< Next Signalling Channel unique command sequence identifier. */ + uint8_t SignalingIdentifier; /**< Next Signaling Channel unique command sequence identifier. */ } Bluetooth_Connection_t; /** Local Bluetooth device information structure, for the defining of local device characteristics for the Bluetooth stack. */ @@ -155,11 +155,17 @@ void Bluetooth_ConnectionComplete(void); void Bluetooth_DisconnectionComplete(void); bool Bluetooth_ChannelConnectionRequest(const uint16_t PSM); - void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel); - Bluetooth_Channel_t* Bluetooth_GetChannelData(const uint16_t SearchValue, const uint8_t SearchKey); + void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, + Bluetooth_Channel_t* const ACLChannel); + void Bluetooth_ChannelOpened(Bluetooth_Channel_t* const ACLChannel); + + Bluetooth_Channel_t* Bluetooth_GetChannelData(const uint16_t SearchValue, + const uint8_t SearchKey); Bluetooth_Channel_t* Bluetooth_OpenChannel(const uint16_t PSM); - void Bluetooth_CloseChannel(Bluetooth_Channel_t* const Channel); - uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel); + void Bluetooth_CloseChannel(Bluetooth_Channel_t* const ACLChannel); + uint8_t Bluetooth_SendPacket(void* Data, + uint16_t DataLen, + Bluetooth_Channel_t* const ACLChannel); /* External Variables: */ extern Bluetooth_Device_t Bluetooth_DeviceConfiguration;