Definition in file sniffer.h.
Go to the source code of this file.
Data Structures | |
| struct | dbg_t |
| struct | scan_result_tag |
| Data structure for scan results. More... | |
| struct | sniffer_context_tag |
| Data structure for internal state variables of the application. More... | |
| struct | sniffer_packet_tag |
Defines | |
| #define | CHANNEL_MAX_OFFSET (TRX_NB_CHANNELS-1) |
| #define | CHANNEL_NEXT_CIRCULAR(x) |
| #define | CHANNEL_OFFSET(x) (x > TRX_MAX_CHANNEL ? TRX_MIN_CHANNEL : (x - TRX_MIN_CHANNEL)) |
| #define | NL "\n\r" |
| #define | SCAN_PERIOD_MS (2000) |
| #define | VERSION "0.1" |
Typedefs | |
| typedef struct scan_result_tag | scan_result_t |
| typedef struct sniffer_context_tag | sniffer_context_t |
| typedef struct sniffer_packet_tag | sniffer_packet_t |
Enumerations | |
| enum | sniffer_state_t { IDLE, EDSCAN, SCAN, SCAN_DONE, SNIFF } |
| Appication States. More... | |
Functions | |
| void | ctrl_process_input (void) |
| void | scan_continue (void) |
| void | scan_init (void) |
| Initialize the scan mode. | |
| static void | scan_update_frame (uint8_t flen, bool crc_ok, uint8_t lqi, uint8_t ed, uint8_t *rxbuf) |
| update the scan table for a channel. | |
| void | sniffer_start (sniffer_state_t state) |
| Process data received from HIF. | |
| void | sniffer_stop (void) |
| Halt current operation and enter state IDLE. | |
Variables | |
| sniffer_context_t | ctx |
| #define CHANNEL_NEXT_CIRCULAR | ( | x | ) |
| enum sniffer_state_t |
| void scan_init | ( | void | ) |
| static void scan_update_frame | ( | uint8_t | flen, | |
| bool | crc_ok, | |||
| uint8_t | lqi, | |||
| uint8_t | ed, | |||
| uint8_t * | rxbuf | |||
| ) | [static] |
| void sniffer_start | ( | sniffer_state_t | state | ) |
| void sniffer_stop | ( | void | ) |
1.5.5