sniffer.c File Reference


Detailed Description

Implementation of the Simple Sniffer and Scanner Application.

Definition in file sniffer.c.

Go to the source code of this file.

Functions

int main (void)
 Main function of sniffer application.
void scan_update_status (void)
 Update status in scan mode.
void sniffer_init (void)
 Initialisation of hardware ressources.
void sniffer_start (sniffer_state_t state)
 Start a new operating state.
void sniffer_stop (void)
 Halt current operation and enter state IDLE.

Variables

sniffer_context_t ctx
volatile dbg_t dbg
volatile uint8_t new_frame
static uint8_t rxbuf [MAX_FRAME_SIZE+1]
sniffer_packet_t rxpacket
static time_stamp_t rxstarttime


Function Documentation

int main ( void   ) 

Main function of sniffer application.

The main loop of the application processes the input coming from the HIF and frames and frame data received by the radio transceiver.

Definition at line 193 of file sniffer.c.

void scan_update_status ( void   ) 

Update status in scan mode.

Definition at line 80 of file sniffer_scan.c.

void sniffer_init ( void   ) 

Initialisation of hardware ressources.

This function initializes the following components

  • LED Port
  • Timer Module
  • Host Interface
  • SPI Port for Radio
  • Radio (reset and enter state RX)

Definition at line 78 of file sniffer.c.

void sniffer_start ( sniffer_state_t  state  ) 

Start a new operating state.

Process data received from HIF.

Definition at line 134 of file sniffer.c.

void sniffer_stop ( void   ) 

Halt current operation and enter state IDLE.

Definition at line 160 of file sniffer.c.


Variable Documentation

Note:
In order to get higher performance in frame receiving, this application uses a own implementation of the transceiver interrrupt routine (TRX_IRQ_vect), instead of the callback function from librf23x.a.

Definition at line 52 of file sniffer.c.


This documentation for µracoli was generated on 21 Jan 2010 by  doxygen 1.5.5