Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

TR1001 radio tranciever device driver
[The ESB Embedded Sensor Board]


Files

file  tr1001.c
 Device driver and packet framing for the RFM-TR1001 radio module.

Defines

#define RXSTATE_READY   0
#define RXSTATE_RECEVING   1
#define RXSTATE_FULL   2
#define SYNCH1   0x3c
#define SYNCH2   0x03
#define RXBUFSIZE   UIP_BUFSIZE
#define TR1001_HDRLEN   sizeof(struct tr1001_hdr)
#define BUF   ((uip_tcpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define OFF   0
#define ON   1
#define NUM_SYNCHBYTES   4
#define LOG()
#define PACKET_DROPPED(bytes)
#define PACKET_ACCEPTED()

Functions

void radio_off (void)
 Turn radio off.
void radio_on (void)
 Turn radio on.
void tr1001_set_txpower (unsigned char p)
void tr1001_init (void)
 interrupt (UART0RX_VECTOR)
 PT_THREAD (tr1001_default_rxhandler_pt(unsigned char incoming_byte))
u8_t tr1001_send (u8_t *packet, u16_t len)
unsigned short tr1001_poll (void)
void tr1001_set_speed (unsigned char speed)
unsigned short tr1001_sstrength (void)

Variables

unsigned char tr1001_rxbuf [RXBUFSIZE]
volatile unsigned char tr1001_rxstate = RXSTATE_READY


Function Documentation

void radio_off void   ) 
 

Turn radio off.

This function turns the radio hardware off.

Definition at line 211 of file tr1001.c.

References OFF.

void radio_on void   ) 
 

Turn radio on.

This function turns the radio hardware on.

Definition at line 223 of file tr1001.c.

References ON.

Referenced by tr1001_init().


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4