Fix warning when not compiled for UID auto-selection mode.
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.h
index 131c4aa..6f1ea67 100644 (file)
                /** Enum for the possible error codes returned by the \ref Bluetooth_SendPacket() function. */
                enum BT_SendPacket_ErrorCodes_t
                {
                /** 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: */
                        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
                 *  information on an ACL channel for data transmission and reception by the stack.
                 */
                typedef struct
                        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. */
                        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. */
                } Bluetooth_Connection_t;
                
                /** Local Bluetooth device information structure, for the defining of local device characteristics for the Bluetooth stack. */
                void                 Bluetooth_ConnectionComplete(void);
                void                 Bluetooth_DisconnectionComplete(void);
                bool                 Bluetooth_ChannelConnectionRequest(const uint16_t PSM);
                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);
                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;
 
        /* External Variables: */
                extern Bluetooth_Device_t      Bluetooth_DeviceConfiguration;