ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ri_adv_scan_t Struct Reference

#include <ruuvi_interface_communication_ble_advertising.h>

Data Fields

uint8_t addr [BLE_MAC_ADDRESS_LENGTH]
 
int8_t rssi
 RSSI of advertisement. More...
 
uint8_t data [RUUVI_COMM_BLE_ADV_SCAN_LENGTH]
 Full payload of the advertisement. More...
 
size_t data_len
 Length of received data. More...
 
bool is_coded_phy
 True if Coded PHY was used. More...
 
uint8_t primary_phy
 
uint8_t secondary_phy
 
uint8_t ch_index
 
int8_t tx_power
 

Detailed Description

Field Documentation

◆ addr

◆ ch_index

uint8_t ch_index

Channel Index on which the last advertising packet is received (0-39).

Definition at line 54 of file ruuvi_interface_communication_ble_advertising.h.

◆ data

Full payload of the advertisement.

Definition at line 44 of file ruuvi_interface_communication_ble_advertising.h.

◆ data_len

size_t data_len

Length of received data.

Definition at line 45 of file ruuvi_interface_communication_ble_advertising.h.

◆ is_coded_phy

bool is_coded_phy

True if Coded PHY was used.

Definition at line 46 of file ruuvi_interface_communication_ble_advertising.h.

◆ primary_phy

uint8_t primary_phy

Indicates the PHY on which the primary advertising packet was received. See BLE_GAP_PHYS.

Definition at line 47 of file ruuvi_interface_communication_ble_advertising.h.

◆ rssi

int8_t rssi

RSSI of advertisement.

Definition at line 43 of file ruuvi_interface_communication_ble_advertising.h.

◆ secondary_phy

uint8_t secondary_phy

Indicates the PHY on which the secondary advertising packet was received. See BLE_GAP_PHYS. This field is set to BLE_GAP_PHY_NOT_SET if no packets were received on a secondary advertising channel.

Definition at line 49 of file ruuvi_interface_communication_ble_advertising.h.

◆ tx_power

int8_t tx_power

TX Power reported by the advertiser in the last packet header received. This field is set to BLE_GAP_POWER_LEVEL_INVALID if the last received packet did not contain the Tx Power field.

Note
TX Power is only included in extended advertising packets.

Definition at line 56 of file ruuvi_interface_communication_ble_advertising.h.


The documentation for this struct was generated from the following file: