Contiki 3.x
Functions
cc2530-rf.c File Reference

    Implementation of the cc2530 RF driver
More...

#include "contiki.h"
#include "dev/radio.h"
#include "dev/cc2530-rf.h"
#include "cc253x.h"
#include "sfr-bits.h"
#include "sys/clock.h"
#include "sys/rtimer.h"
#include "net/packetbuf.h"
#include "net/rime/rimestats.h"
#include "net/linkaddr.h"
#include "net/netstack.h"
#include <string.h>

Go to the source code of this file.

Functions

static uint8_t get_channel ()
 Get the current operating channel. More...
 
static int8_t set_channel (uint8_t channel)
 Set the current operating channel. More...
 
static radio_value_t get_rssi (void)
 Reads the current signal strength (RSSI) More...
 

Detailed Description

    Implementation of the cc2530 RF driver
Author
George Oikonomou - oikon.nosp@m.omou.nosp@m.@user.nosp@m.s.so.nosp@m.urcef.nosp@m.orge.nosp@m..net

Definition in file cc2530-rf.c.

Function Documentation

static uint8_t get_channel ( void  )
static

Get the current operating channel.

Returns
Returns a value in [11,26] representing the current channel

Definition at line 158 of file cc2530-rf.c.

static radio_value_t get_rssi ( void  )
static

Reads the current signal strength (RSSI)

Returns
The current RSSI in dBm

This function reads the current RSSI on the currently configured channel.

Definition at line 222 of file cc2530-rf.c.

static int8_t set_channel ( uint8_t  channel)
static

Set the current operating channel.

Parameters
channelThe desired channel as a value in [11,26]
Returns
Returns a value in [11,26] representing the current channel or a negative value if channel was out of bounds

Definition at line 170 of file cc2530-rf.c.