Contiki-NG
|
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... | |
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.
channel | Bitmask 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 |
data | A pointer to the advertisement data buffer |
len | The 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.
void rf_ble_set_tx_power | ( | radio_value_t | power | ) |
Set TX power for BLE advertisements.
power | The '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