ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_driver_error.h"
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | ri_radio_channels_t |
Bitfield to describe related sensor data. More... | |
Typedefs | |
typedef void(* | ri_radio_activity_interrupt_fp_t) (const ri_radio_activity_evt_t evt) |
Type of radio activity interrupt. This is common to all radio modules, i,e, the callback gets called for every radio action. More... | |
Enumerations | |
enum | ri_radio_activity_evt_t { RI_RADIO_BEFORE , RI_RADIO_AFTER } |
radio activity event type. More... | |
enum | ri_radio_modulation_t { RI_RADIO_BLE_125KBPS , RI_RADIO_BLE_1MBPS , RI_RADIO_BLE_2MBPS } |
type of radio modulation to be used. More... | |
Functions | |
uint8_t | ri_radio_num_channels_get (const ri_radio_channels_t channels) |
Check how many radio channels are enabled. More... | |
bool | ri_radio_supports (ri_radio_modulation_t modulation) |
Check if radio supports given modulation. More... | |
rd_status_t | ri_radio_init (const ri_radio_modulation_t modulation) |
Enable radio stack for an user. This function also starts radio activity callbacks internally. More... | |
rd_status_t | ri_radio_uninit () |
Release radio stack. More... | |
rd_status_t | ri_radio_address_get (uint64_t *const address) |
rd_status_t | ri_radio_address_set (uint64_t const address) |
void | ri_radio_activity_callback_set (const ri_radio_activity_interrupt_fp_t handler) |
Setup radio activity interrupt. More... | |
bool | ri_radio_is_init () |
Check if radio is initialized. More... | |
rd_status_t | ri_radio_get_modulation (ri_radio_modulation_t *const p_modulation) |
Get the modulation used by application. More... | |
Commmon definitions and functions for all radio operations.
Definition in file ruuvi_interface_communication_radio.h.