Add const keyword to the demo function parameters where possible.
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothACLPackets.c
index a8145c4..9f1ec36 100644 (file)
@@ -200,7 +200,7 @@ static void Bluetooth_ProcessIncommingACLPackets(void)
  *\r
  * \return A value from the \ref BT_SendPacket_ErrorCodes_t enum\r
  */\r
-uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel)\r
+uint8_t Bluetooth_SendPacket(void* Data, const uint16_t DataLen, Bluetooth_Channel_t* const Channel)\r
 {\r
        BT_ACL_Header_t        ACLPacketHeader;\r
        BT_DataPacket_Header_t DataHeader;\r
@@ -251,7 +251,7 @@ uint8_t Bluetooth_SendPacket(void* Data, uint16_t DataLen, Bluetooth_Channel_t*
  *\r
  *  \return Pointer to the channel information structure of the opened channel, or NULL if no free channels\r
  */\r
-Bluetooth_Channel_t* Bluetooth_OpenChannel(uint16_t PSM)\r
+Bluetooth_Channel_t* Bluetooth_OpenChannel(const uint16_t PSM)\r
 {\r
        Bluetooth_Channel_t* ChannelData = NULL;\r
 \r
@@ -313,7 +313,7 @@ Bluetooth_Channel_t* Bluetooth_OpenChannel(uint16_t PSM)
  *\r
  * \param[in,out] Channel  Channel information structure of the channel to close\r
  */\r
-void Bluetooth_CloseChannel(Bluetooth_Channel_t* Channel)\r
+void Bluetooth_CloseChannel(Bluetooth_Channel_t* const Channel)\r
 {\r
        /* Don't try to close a non-existing or already closed channel */\r
        if ((Channel == NULL) || (Channel->State == Channel_Closed))\r
@@ -348,7 +348,7 @@ void Bluetooth_CloseChannel(Bluetooth_Channel_t* Channel)
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_ConnectionReq(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_ConnectionReq(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_ConnectionReq_t ConnectionRequest;\r
        \r
@@ -432,7 +432,7 @@ static inline void Bluetooth_Signal_ConnectionReq(BT_Signal_Header_t* SignalComm
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_ConnectionResp(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_ConnectionResp(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_ConnectionResp_t ConnectionResponse;\r
        \r
@@ -463,7 +463,7 @@ static inline void Bluetooth_Signal_ConnectionResp(BT_Signal_Header_t* SignalCom
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_ConfigurationReq(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_ConfigurationReq(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_ConfigurationReq_t ConfigurationRequest;\r
        \r
@@ -550,7 +550,7 @@ static inline void Bluetooth_Signal_ConfigurationReq(BT_Signal_Header_t* SignalC
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_ConfigurationResp(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_ConfigurationResp(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_ConfigurationResp_t ConfigurationResponse;\r
 \r
@@ -594,7 +594,7 @@ static inline void Bluetooth_Signal_ConfigurationResp(BT_Signal_Header_t* Signal
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_DisconnectionReq(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_DisconnectionReq(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_DisconnectionReq_t DisconnectionRequest;\r
        \r
@@ -640,7 +640,7 @@ static inline void Bluetooth_Signal_DisconnectionReq(BT_Signal_Header_t* SignalC
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_DisconnectionResp(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_DisconnectionResp(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_DisconnectionResp_t DisconnectionResponse;\r
        \r
@@ -665,7 +665,7 @@ static inline void Bluetooth_Signal_DisconnectionResp(BT_Signal_Header_t* Signal
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_EchoReq(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_EchoReq(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_ACL_DEBUG(1, "<< L2CAP Echo Request", NULL);\r
        \r
@@ -691,7 +691,7 @@ static inline void Bluetooth_Signal_EchoReq(BT_Signal_Header_t* SignalCommandHea
  *\r
  *  \param[in]  SignalCommandHeader  Pointer to the start of the received packet's Signal Command header\r
  */\r
-static inline void Bluetooth_Signal_InformationReq(BT_Signal_Header_t* SignalCommandHeader)\r
+static inline void Bluetooth_Signal_InformationReq(const BT_Signal_Header_t* const SignalCommandHeader)\r
 {\r
        BT_Signal_InformationReq_t InformationRequest;\r
 \r