Contiki-NG
Loading...
Searching...
No Matches

Implementation of the cc2538 RF driver. More...

#include "contiki.h"
#include "dev/radio.h"
#include "sys/clock.h"
#include "sys/rtimer.h"
#include "net/packetbuf.h"
#include "net/linkaddr.h"
#include "net/netstack.h"
#include "net/mac/tsch/tsch.h"
#include "sys/energest.h"
#include "dev/cc2538-rf.h"
#include "dev/rfcore.h"
#include "dev/sys-ctrl.h"
#include "dev/udma.h"
#include "reg.h"
#include "lib/assert.h"
#include "lib/iq-seeder.h"
#include <string.h>
#include "sys/log.h"

Go to the source code of this file.

Functions

static int on (void)
static int off (void)
static uint8_t get_channel ()
 Get the current operating channel.
static void set_channel (uint8_t channel)
 Set the current operating channel.
static radio_value_t get_pan_id (void)
static void set_pan_id (uint16_t pan)
static radio_value_t get_short_addr (void)
static void set_short_addr (uint16_t addr)
static radio_value_t get_rssi (void)
 Reads the current signal strength (RSSI).
static void get_iq_lsbs (radio_value_t *value)
 Reads the current I/Q data of the received signal.
static void mac_timer_init (void)
static void set_poll_mode (uint8_t enable)
static uint32_t get_sfd_timestamp (void)
static void set_test_mode (uint8_t enable, uint8_t modulated)
static int init (void)
static int prepare (const void *payload, unsigned short payload_len)
static int transmit (unsigned short transmit_len)
static int read (void *buf, unsigned short bufsize)
static radio_result_t get_object (radio_param_t param, void *dest, size_t size)
static radio_result_t set_object (radio_param_t param, const void *src, size_t size)
 PROCESS_THREAD (cc2538_rf_process, ev, data)
 Implementation of the cc2538 RF driver process.
void cc2538_rf_rx_tx_isr (void)
 The cc2538 RF RX/TX ISR.
void cc2538_rf_err_isr (void)
 The cc2538 RF Error ISR.

Variables

const struct radio_driver cc2538_rf_driver
 The NETSTACK data structure for the cc2538 RF driver.

Detailed Description

Implementation of the cc2538 RF driver.

Definition in file cc2538-rf.c.