radio_driver Struct Reference
[Radio API]

The structure of a device driver for a radio in Contiki. More...

#include <core/dev/radio.h>

Data Fields

int(* prepare )(const void *payload, unsigned short payload_len)
 Prepare the radio with a packet to be sent.
int(* transmit )(unsigned short transmit_len)
 Send the packet that has previously been prepared.
int(* send )(const void *payload, unsigned short payload_len)
 Prepare & transmit a packet.
int(* read )(void *buf, unsigned short buf_len)
 Read a received packet into a buffer.
int(* channel_clear )(void)
 Perform a Clear-Channel Assessment (CCA) to find out if there is a packet in the air or not.
int(* receiving_packet )(void)
 Check if the radio driver is currently receiving a packet.
int(* pending_packet )(void)
 Check if the radio driver has just received a packet.
int(* on )(void)
 Turn the radio on.
int(* off )(void)
 Turn the radio off.

Detailed Description

The structure of a device driver for a radio in Contiki.

Definition at line 61 of file radio.h.


Field Documentation

Perform a Clear-Channel Assessment (CCA) to find out if there is a packet in the air or not.

int(* radio_driver::off)(void)

Turn the radio off.

int(* radio_driver::on)(void)

Turn the radio on.

int(* radio_driver::prepare)(const void *payload, unsigned short payload_len)

Prepare the radio with a packet to be sent.

int(* radio_driver::read)(void *buf, unsigned short buf_len)

Read a received packet into a buffer.

int(* radio_driver::send)(const void *payload, unsigned short payload_len)

Prepare & transmit a packet.

int(* radio_driver::transmit)(unsigned short transmit_len)

Send the packet that has previously been prepared.


Generated on Mon Apr 11 14:23:58 2011 for Contiki 2.5 by  doxygen 1.6.1