Contiki-NG
Files | Functions

Files

file  rf-ble.c
 Implementation of the CC13xx/CC26xx RF BLE driver.
 
file  rf-ble.h
 Header file for the CC13xx/CC26xx BLE driver.
 

Functions

void rf_ble_set_tx_power (radio_value_t power)
 Set TX power for BLE advertisements. More...
 
void rf_ble_beacon_single (uint8_t channel, uint8_t *data, uint8_t len)
 Transmit a single BLE advertisement in one or more advertisement channels. More...
 

Detailed Description

Function Documentation

◆ rf_ble_beacon_single()

void rf_ble_beacon_single ( uint8_t  channel,
uint8_t *  data,
uint8_t  len 
)

Transmit a single BLE advertisement in one or more advertisement channels.

Parameters
channelBitmask of advertisement channels to be used: use BLE_ADV_CHANNEL_37 for channel 37, BLE_ADV_CHANNEL_38 for channel 38, BLE_ADV_CHANNEL_39 for channel 39, or any 'or' combination of those
dataA pointer to the advertisement data buffer
lenThe length of the advertisement data. If more than BLE_ADV_MAX_SIZE, the first BLE_ADV_MAX_SIZE bytes will be used.

Transmits a given advertisement payload once in one or any arbitrary combination of advertisement channels.

Definition at line 308 of file rf-ble.c.

◆ rf_ble_set_tx_power()

void rf_ble_set_tx_power ( radio_value_t  power)

Set TX power for BLE advertisements.

Parameters
powerThe 'at least' TX power in dBm, values avove 5 dBm will be ignored

Set TX power to 'at least' power dBm. This works with a lookup table. If the value of 'power' does not exist in the lookup table, TXPOWER will be set to the immediately higher available value

Definition at line 205 of file rf-ble.c.