ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_communication_radio.c
Go to the documentation of this file.
2 #if RI_RADIO_ENABLED
3 #include <stdint.h>
4 
5 uint8_t ri_radio_num_channels_get (const ri_radio_channels_t channels)
6 {
7  return channels.channel_37 + channels.channel_38 + channels.channel_39;
8 }
9 
10 #endif
uint8_t ri_radio_num_channels_get(const ri_radio_channels_t channels)
Check how many radio channels are enabled.
Bitfield to describe related sensor data.
uint8_t channel_37
BLE channel 37, 2402 MHz.
uint8_t channel_39
BLE channel 39, 2480 MHz.
uint8_t channel_38
BLE channel 38, 2426 MHz.