Functions | Variables
sniffer.c File Reference
Sniffer Firmware

Implementation of the Sniffer Firmware. More...

## 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
pcap_pool_t | PcapPool

## Detailed Description

Implementation of the Sniffer Firmware.

## 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.

void scan_update_status | ( | void |  | ) |

Update status in scan mode.

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)

void sniffer_start | ( | sniffer_state_t | state | ) |

Start a new operating state.

Process data received from HIF.

void sniffer_stop | ( | void |  | ) |

Halt current operation and enter state IDLE.

## Variable Documentation

sniffer_context_t ctx

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.