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.
1
#include "
ruuvi_interface_communication_radio.h
"
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
ri_radio_num_channels_get
uint8_t ri_radio_num_channels_get(const ri_radio_channels_t channels)
Check how many radio channels are enabled.
ruuvi_interface_communication_radio.h
ri_radio_channels_t
Bitfield to describe related sensor data.
Definition:
ruuvi_interface_communication_radio.h:51
ri_radio_channels_t::channel_37
uint8_t channel_37
BLE channel 37, 2402 MHz.
Definition:
ruuvi_interface_communication_radio.h:52
ri_radio_channels_t::channel_39
uint8_t channel_39
BLE channel 39, 2480 MHz.
Definition:
ruuvi_interface_communication_radio.h:54
ri_radio_channels_t::channel_38
uint8_t channel_38
BLE channel 38, 2426 MHz.
Definition:
ruuvi_interface_communication_radio.h:53
src
interfaces
communication
ruuvi_interface_communication_radio.c
Generated by
1.9.1