Contiki 3.x
Files | Functions
CC13xx/CC26xx BLE driver

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_beacond_config (clock_time_t interval, const char *name)
 Set the device name to use with the BLE advertisement/beacon daemon. More...
 
uint8_t rf_ble_beacond_start (void)
 Start the BLE advertisement/beacon daemon. More...
 
uint8_t rf_ble_is_active (void)
 Check whether the BLE beacond is currently active. More...
 
void rf_ble_beacond_stop (void)
 Stop the BLE advertisement/beacon daemon.
 

Detailed Description

Function Documentation

void rf_ble_beacond_config ( clock_time_t  interval,
const char *  name 
)

Set the device name to use with the BLE advertisement/beacon daemon.

Parameters
intervalThe interval (ticks) between two consecutive beacon bursts
nameThe device name to advertise

If name is NULL it will be ignored. If interval==0 it will be ignored. Thus, this function can be used to configure a single parameter at a time if so desired.

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

References NULL.

uint8_t rf_ble_beacond_start ( void  )

Start the BLE advertisement/beacon daemon.

Returns
RF_CORE_CMD_OK: Success, RF_CORE_CMD_ERROR: Failure

Before calling this function, the name to advertise must first be set by calling rf_ble_beacond_config(). Otherwise, this function will return an error.

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

References NULL, and process_start().

uint8_t rf_ble_is_active ( void  )

Check whether the BLE beacond is currently active.

Return values
1The radio is in BLE mode
0The BLE daemon is not active, or disabled

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