spectral_common.h File Reference
#include <cstdint>
#include <linux/types.h>
Include dependency graph for spectral_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fft_sample_tlv
 
struct  fft_sample_ht20
 
struct  fft_sample_ht20_40
 
struct  fft_sample_ath10k
 

Macros

#define SPECTRAL_HT20_NUM_BINS   56
 
#define SPECTRAL_HT20_40_NUM_BINS   128
 
#define SPECTRAL_ATH10K_MAX_NUM_BINS   256
 

Typedefs

typedef std::uint8_t u8
 
typedef std::int8_t s8
 
typedef std::uint16_t __be16
 

Enumerations

enum  ath_fft_sample_type { ATH_FFT_SAMPLE_HT20 = 1, ATH_FFT_SAMPLE_HT20_40, ATH_FFT_SAMPLE_ATH10K }
 

Functions

struct fft_sample_tlv __attribute__ ((packed))
 

Variables

u8 type
 
__be16 length
 
struct fft_sample_tlv tlv
 
u8 max_exp
 
__be16 freq
 
s8 rssi
 
s8 noise
 
__be16 max_magnitude
 
u8 max_index
 
u8 bitmap_weight
 
__be64 tsf
 
u8 data [SPECTRAL_HT20_NUM_BINS]
 
u8 channel_type
 
s8 lower_rssi
 
s8 upper_rssi
 
s8 lower_noise
 
s8 upper_noise
 
__be16 lower_max_magnitude
 
__be16 upper_max_magnitude
 
u8 lower_max_index
 
u8 upper_max_index
 
u8 lower_bitmap_weight
 
u8 upper_bitmap_weight
 
u8 chan_width_mhz
 
__be16 freq1
 
__be16 freq2
 
__be16 total_gain_db
 
__be16 base_pwr_db
 
u8 relpwr_db
 
u8 avgpwr_db
 

Macro Definition Documentation

◆ SPECTRAL_ATH10K_MAX_NUM_BINS

#define SPECTRAL_ATH10K_MAX_NUM_BINS   256

Definition at line 42 of file spectral_common.h.

◆ SPECTRAL_HT20_40_NUM_BINS

#define SPECTRAL_HT20_40_NUM_BINS   128

Definition at line 37 of file spectral_common.h.

◆ SPECTRAL_HT20_NUM_BINS

#define SPECTRAL_HT20_NUM_BINS   56

Definition at line 36 of file spectral_common.h.

Typedef Documentation

◆ __be16

typedef std::uint16_t __be16

Definition at line 60 of file spectral_common.h.

◆ s8

typedef std::int8_t s8

Definition at line 59 of file spectral_common.h.

◆ u8

typedef std::uint8_t u8

Definition at line 58 of file spectral_common.h.

Enumeration Type Documentation

◆ ath_fft_sample_type

Enumerator
ATH_FFT_SAMPLE_HT20 
ATH_FFT_SAMPLE_HT20_40 
ATH_FFT_SAMPLE_ATH10K 

Definition at line 52 of file spectral_common.h.

Function Documentation

◆ __attribute__()

struct fft_sample_tlv __attribute__ ( (packed)  )

Variable Documentation

◆ avgpwr_db

u8 avgpwr_db

Definition at line 73 of file spectral_common.h.

◆ base_pwr_db

__be16 base_pwr_db

Definition at line 68 of file spectral_common.h.

◆ bitmap_weight

u8 bitmap_weight

Definition at line 71 of file spectral_common.h.

◆ chan_width_mhz

u8 chan_width_mhz

Definition at line 62 of file spectral_common.h.

◆ channel_type

u8 channel_type

Definition at line 63 of file spectral_common.h.

◆ data

u8 data

Definition at line 75 of file spectral_common.h.

◆ freq

__be16 freq

Definition at line 65 of file spectral_common.h.

◆ freq1

__be16 freq1

Definition at line 63 of file spectral_common.h.

◆ freq2

__be16 freq2

Definition at line 64 of file spectral_common.h.

◆ length

__be16 length

Definition at line 62 of file spectral_common.h.

◆ lower_bitmap_weight

u8 lower_bitmap_weight

Definition at line 80 of file spectral_common.h.

◆ lower_max_index

u8 lower_max_index

Definition at line 77 of file spectral_common.h.

◆ lower_max_magnitude

__be16 lower_max_magnitude

Definition at line 74 of file spectral_common.h.

◆ lower_noise

s8 lower_noise

Definition at line 71 of file spectral_common.h.

◆ lower_rssi

s8 lower_rssi

Definition at line 66 of file spectral_common.h.

◆ max_exp

u8 max_exp

Definition at line 63 of file spectral_common.h.

◆ max_index

s8 max_index

Definition at line 70 of file spectral_common.h.

◆ max_magnitude

__be16 max_magnitude

Definition at line 69 of file spectral_common.h.

◆ noise

__be16 noise

Definition at line 67 of file spectral_common.h.

◆ relpwr_db

u8 relpwr_db

Definition at line 72 of file spectral_common.h.

◆ rssi

u8 rssi

Definition at line 66 of file spectral_common.h.

◆ tlv

struct fft_sample_tlv tlv

Definition at line 61 of file spectral_common.h.

◆ total_gain_db

__be16 total_gain_db

Definition at line 67 of file spectral_common.h.

◆ tsf

__be64 tsf

Definition at line 73 of file spectral_common.h.

◆ type

u8 type

Definition at line 61 of file spectral_common.h.

◆ upper_bitmap_weight

u8 upper_bitmap_weight

Definition at line 81 of file spectral_common.h.

◆ upper_max_index

u8 upper_max_index

Definition at line 78 of file spectral_common.h.

◆ upper_max_magnitude

__be16 upper_max_magnitude

Definition at line 75 of file spectral_common.h.

◆ upper_noise

s8 upper_noise

Definition at line 72 of file spectral_common.h.

◆ upper_rssi

s8 upper_rssi

Definition at line 67 of file spectral_common.h.