-bool CALLBACK_Bluetooth_ConnectionRequest(uint8_t* RemoteAddress)\r
-{\r
- /* Always accept connections from remote devices */\r
- return true;\r
-}\r
-\r
-Bluetooth_Channel_t* Bluetooth_GetChannelData(uint16_t ChannelNumber, bool SearchBySource)\r
-{\r
- Bluetooth_Channel_t* CurrentChannelStructure;\r
-\r
- for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
- {\r
- CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
- \r
- uint16_t CurrentChannelNumber = ((SearchBySource) ? CurrentChannelStructure->RemoteNumber : CurrentChannelStructure->LocalNumber);\r
- \r
- if (CurrentChannelNumber == ChannelNumber)\r
- return CurrentChannelStructure;\r
- }\r
-\r
- return NULL;\r
-}\r
-\r
-Bluetooth_Channel_t* Bluetooth_InitChannelData(uint16_t RemoteChannelNumber, uint16_t PSM)\r
+/** Retrieves the channel information structure with the given local or remote channel number from the channel list.\r
+ *\r
+ * \param[in] SearchValue Value to search for in the channel structure list\r
+ * \param[in] SearchKey Key to search within the channel structure, a CHANNEL_SEARCH_* mask\r
+ *\r
+ * \return Pointer to the matching channel information structure in the channel table if found, NULL otherwise\r
+ */\r
+Bluetooth_Channel_t* Bluetooth_GetChannelData(const uint16_t SearchValue, const uint8_t SearchKey)\r