- Bluetooth_ProcessHCICommands();\r
- Bluetooth_ProcessACLPackets();\r
-}\r
-\r
-Bluetooth_Channel_t* Bluetooth_GetChannelData(uint16_t ChannelNumber, bool SearchBySource)\r
-{\r
- for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
- {\r
- Bluetooth_Channel_t* CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
- \r
- uint16_t CurrentChannelNumber = (SearchBySource) ? CurrentChannelStructure->RemoteNumber :\r
- CurrentChannelStructure->LocalNumber;\r
- \r
- if (CurrentChannelNumber == ChannelNumber)\r
- return CurrentChannelStructure;\r
- }\r
-\r
- return NULL;\r