35#ifndef LR1110_WIFI_TYPES_H
36#define LR1110_WIFI_TYPES_H
60#define LR1110_WIFI_MAC_ADDRESS_LENGTH ( 6 )
61#define LR1110_WIFI_MAX_RESULTS ( 10 )
62#define LR1110_WIFI_RESULT_SSID_LENGTH ( 32 )
63#define LR1110_WIFI_MAX_COUNTRY_CODE ( 16 )
64#define LR1110_WIFI_STR_COUNTRY_CODE_SIZE ( 2 )
66#define LR1110_WIFI_CHANNEL_1_POS ( 0U )
67#define LR1110_WIFI_CHANNEL_1_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_1_POS )
68#define LR1110_WIFI_CHANNEL_2_POS ( 1U )
69#define LR1110_WIFI_CHANNEL_2_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_2_POS )
70#define LR1110_WIFI_CHANNEL_3_POS ( 2U )
71#define LR1110_WIFI_CHANNEL_3_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_3_POS )
72#define LR1110_WIFI_CHANNEL_4_POS ( 3U )
73#define LR1110_WIFI_CHANNEL_4_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_4_POS )
74#define LR1110_WIFI_CHANNEL_5_POS ( 4U )
75#define LR1110_WIFI_CHANNEL_5_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_5_POS )
76#define LR1110_WIFI_CHANNEL_6_POS ( 5U )
77#define LR1110_WIFI_CHANNEL_6_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_6_POS )
78#define LR1110_WIFI_CHANNEL_7_POS ( 6U )
79#define LR1110_WIFI_CHANNEL_7_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_7_POS )
80#define LR1110_WIFI_CHANNEL_8_POS ( 7U )
81#define LR1110_WIFI_CHANNEL_8_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_8_POS )
82#define LR1110_WIFI_CHANNEL_9_POS ( 8U )
83#define LR1110_WIFI_CHANNEL_9_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_9_POS )
84#define LR1110_WIFI_CHANNEL_10_POS ( 9U )
85#define LR1110_WIFI_CHANNEL_10_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_10_POS )
86#define LR1110_WIFI_CHANNEL_11_POS ( 10U )
87#define LR1110_WIFI_CHANNEL_11_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_11_POS )
88#define LR1110_WIFI_CHANNEL_12_POS ( 11U )
89#define LR1110_WIFI_CHANNEL_12_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_12_POS )
90#define LR1110_WIFI_CHANNEL_13_POS ( 12U )
91#define LR1110_WIFI_CHANNEL_13_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_13_POS )
92#define LR1110_WIFI_CHANNEL_14_POS ( 13U )
93#define LR1110_WIFI_CHANNEL_14_MASK ( 0x01UL << LR1110_WIFI_CHANNEL_14_POS )
#define LR1110_WIFI_STR_COUNTRY_CODE_SIZE
Definition lr1110_wifi_types.h:64
lr1110_wifi_signal_type_result_t
Wi-Fi signal type for passive scan results.
Definition lr1110_wifi_types.h:240
@ LR1110_WIFI_TYPE_RESULT_G
WiFi G.
Definition lr1110_wifi_types.h:242
@ LR1110_WIFI_TYPE_RESULT_N
WiFi N.
Definition lr1110_wifi_types.h:243
@ LR1110_WIFI_TYPE_RESULT_B
WiFi B.
Definition lr1110_wifi_types.h:241
lr1110_wifi_channel_t
Wi-Fi Channels index.
Definition lr1110_wifi_types.h:143
@ LR1110_WIFI_CHANNEL_1
Channel at frequency 2.412 GHz.
Definition lr1110_wifi_types.h:145
@ LR1110_WIFI_CHANNEL_3
Channel at frequency 2.422 GHz.
Definition lr1110_wifi_types.h:147
@ LR1110_WIFI_CHANNEL_10
Channel at frequency 2.457 GHz.
Definition lr1110_wifi_types.h:154
@ LR1110_WIFI_CHANNEL_12
Channel at frequency 2.467 GHz.
Definition lr1110_wifi_types.h:156
@ LR1110_WIFI_CHANNEL_4
Channel at frequency 2.427 GHz.
Definition lr1110_wifi_types.h:148
@ LR1110_WIFI_ALL_CHANNELS
Definition lr1110_wifi_types.h:159
@ LR1110_WIFI_NO_CHANNEL
Definition lr1110_wifi_types.h:144
@ LR1110_WIFI_CHANNEL_6
Channel at frequency 2.437 GHz.
Definition lr1110_wifi_types.h:150
@ LR1110_WIFI_CHANNEL_9
Channel at frequency 2.452 GHz.
Definition lr1110_wifi_types.h:153
@ LR1110_WIFI_CHANNEL_14
Channel at frequency 2.484 GHz.
Definition lr1110_wifi_types.h:158
@ LR1110_WIFI_CHANNEL_2
Channel at frequency 2.417 GHz.
Definition lr1110_wifi_types.h:146
@ LR1110_WIFI_CHANNEL_8
Channel at frequency 2.447 GHz.
Definition lr1110_wifi_types.h:152
@ LR1110_WIFI_CHANNEL_5
Channel at frequency 2.432 GHz.
Definition lr1110_wifi_types.h:149
@ LR1110_WIFI_CHANNEL_7
Channel at frequency 2.442 GHz.
Definition lr1110_wifi_types.h:151
@ LR1110_WIFI_CHANNEL_13
Channel at frequency 2.472 GHz.
Definition lr1110_wifi_types.h:157
@ LR1110_WIFI_CHANNEL_11
Channel at frequency 2.462 GHz.
Definition lr1110_wifi_types.h:155
struct lr1110_wifi_cumulative_timings_s lr1110_wifi_cumulative_timings_t
Cumulative timings.
#define LR1110_WIFI_RESULT_SSID_LENGTH
Definition lr1110_wifi_types.h:62
lr1110_wifi_datarate_t
WiFi theoretical Datarates.
Definition lr1110_wifi_types.h:166
@ LR1110_WIFI_DATARATE_7_2_MBPS
Definition lr1110_wifi_types.h:185
@ LR1110_WIFI_DATARATE_65_2_MBPS
Definition lr1110_wifi_types.h:191
@ LR1110_WIFI_DATARATE_12_MBPS
Definition lr1110_wifi_types.h:171
@ LR1110_WIFI_DATARATE_19_5_MBPS
Definition lr1110_wifi_types.h:179
@ LR1110_WIFI_DATARATE_48_MBPS
Definition lr1110_wifi_types.h:175
@ LR1110_WIFI_DATARATE_65_MBPS
Definition lr1110_wifi_types.h:184
@ LR1110_WIFI_DATARATE_36_MBPS
Definition lr1110_wifi_types.h:174
@ LR1110_WIFI_DATARATE_6_MBPS
Definition lr1110_wifi_types.h:169
@ LR1110_WIFI_DATARATE_9_MBPS
Definition lr1110_wifi_types.h:170
@ LR1110_WIFI_DATARATE_2_MBPS
Definition lr1110_wifi_types.h:168
@ LR1110_WIFI_DATARATE_14_4_MBPS
Definition lr1110_wifi_types.h:186
@ LR1110_WIFI_DATARATE_13_MBPS
Definition lr1110_wifi_types.h:178
@ LR1110_WIFI_DATARATE_58_MBPS
Definition lr1110_wifi_types.h:183
@ LR1110_WIFI_DATARATE_26_MBPS
Definition lr1110_wifi_types.h:180
@ LR1110_WIFI_DATARATE_39_MBPS
Definition lr1110_wifi_types.h:181
@ LR1110_WIFI_DATARATE_24_MBPS
Definition lr1110_wifi_types.h:173
@ LR1110_WIFI_DATARATE_72_2_MBPS
Definition lr1110_wifi_types.h:192
@ LR1110_WIFI_DATARATE_18_MBPS
Definition lr1110_wifi_types.h:172
@ LR1110_WIFI_DATARATE_21_7_MBPS
Definition lr1110_wifi_types.h:187
@ LR1110_WIFI_DATARATE_43_3_MBPS
Definition lr1110_wifi_types.h:189
@ LR1110_WIFI_DATARATE_57_8_MBPS
Definition lr1110_wifi_types.h:190
@ LR1110_WIFI_DATARATE_1_MBPS
Definition lr1110_wifi_types.h:167
@ LR1110_WIFI_DATARATE_28_9_MBPS
Definition lr1110_wifi_types.h:188
@ LR1110_WIFI_DATARATE_6_5_MBPS
Definition lr1110_wifi_types.h:177
@ LR1110_WIFI_DATARATE_54_MBPS
Definition lr1110_wifi_types.h:176
@ LR1110_WIFI_DATARATE_52_MBPS
Definition lr1110_wifi_types.h:182
lr1110_wifi_mac_origin_t
The WiFi MAC address origin.
Definition lr1110_wifi_types.h:211
@ LR1110_WIFI_ORIGIN_BEACON_FIX_AP
MAC address extracted from a packet coming from a fix Access Point.
Definition lr1110_wifi_types.h:212
@ LR1110_WIFI_ORIGIN_BEACON_MOBILE_AP
MAC address extracted from a packet coming from a mobile Access Point.
Definition lr1110_wifi_types.h:213
@ LR1110_WIFI_ORIGIN_UNKNOWN
Impossible to determine the origin of the packet the MAC is extracted from.
Definition lr1110_wifi_types.h:214
uint8_t lr1110_wifi_channel_info_byte_t
Type to store a Wi-Fi channel info byte.
Definition lr1110_wifi_types.h:108
#define LR1110_WIFI_MAC_ADDRESS_LENGTH
Definition lr1110_wifi_types.h:60
uint8_t lr1110_wifi_datarate_info_byte_t
Type to store a Wi-Fi datarate info byte.
Definition lr1110_wifi_types.h:113
lr1110_wifi_mode_t
Wi-Fi capture mode.
Definition lr1110_wifi_types.h:271
@ LR1110_WIFI_SCAN_MODE_UNTIL_SSID
of SSID field (Extended result) - available since firmware 0x0306
Definition lr1110_wifi_types.h:281
@ LR1110_WIFI_SCAN_MODE_BEACON_AND_PKT
Definition lr1110_wifi_types.h:274
@ LR1110_WIFI_SCAN_MODE_FULL_BEACON
Definition lr1110_wifi_types.h:277
@ LR1110_WIFI_SCAN_MODE_BEACON
Exposes Beacons and Probe Responses Access Points frames until Period Beacon field (Basic result)
Definition lr1110_wifi_types.h:272
uint8_t lr1110_wifi_mac_address_t[LR1110_WIFI_MAC_ADDRESS_LENGTH]
Type to store a MAC address.
Definition lr1110_wifi_types.h:137
uint16_t lr1110_wifi_channel_mask_t
Type to store a Wi-Fi channel mask.
Definition lr1110_wifi_types.h:103
struct lr1110_wifi_country_code_s lr1110_wifi_country_code_t
Wi-Fi country code structure.
uint8_t lr1110_wifi_frame_type_info_byte_t
Type to store a Wi-Fi frame type info byte.
Definition lr1110_wifi_types.h:118
lr1110_wifi_result_format_t
Wi-Fi scan result formats.
Definition lr1110_wifi_types.h:370
@ LR1110_WIFI_RESULT_FORMAT_BASIC_MAC_TYPE_CHANNEL
Definition lr1110_wifi_types.h:372
@ LR1110_WIFI_RESULT_FORMAT_BASIC_COMPLETE
Definition lr1110_wifi_types.h:371
@ LR1110_WIFI_RESULT_FORMAT_EXTENDED_FULL
Definition lr1110_wifi_types.h:373
struct lr1110_wifi_version_s lr1110_wifi_version_t
Wi-Fi firmware version.
lr1110_wifi_signal_type_scan_t
Wi-Fi signal type for passive scanning configuration.
Definition lr1110_wifi_types.h:227
@ LR1110_WIFI_TYPE_SCAN_B_G_N
Wi-Fi B and Wi-Fi G/N.
Definition lr1110_wifi_types.h:231
@ LR1110_WIFI_TYPE_SCAN_N
Wi-Fi N.
Definition lr1110_wifi_types.h:230
@ LR1110_WIFI_TYPE_SCAN_G
Wi-Fi G.
Definition lr1110_wifi_types.h:229
@ LR1110_WIFI_TYPE_SCAN_B
Wi-Fi B.
Definition lr1110_wifi_types.h:228
uint8_t lr1110_wifi_frame_sub_type_t
Type to store a Wi-Fi frame sub_type.
Definition lr1110_wifi_types.h:123
lr1110_wifi_frame_type_t
WiFi Frame Types.
Definition lr1110_wifi_types.h:199
@ LR1110_WIFI_FRAME_TYPE_CONTROL
Definition lr1110_wifi_types.h:201
@ LR1110_WIFI_FRAME_TYPE_MANAGEMENT
Definition lr1110_wifi_types.h:200
@ LR1110_WIFI_FRAME_TYPE_DATA
Definition lr1110_wifi_types.h:202
struct lr1110_wifi_fcs_info_byte_s lr1110_wifi_fcs_info_byte_t
Wi-Fi FCS info byte.
struct lr1110_wifi_basic_complete_result_s lr1110_wifi_basic_complete_result_t
Basic complete result structure.
struct lr1110_wifi_basic_mac_type_channel_result_s lr1110_wifi_basic_mac_type_channel_result_t
Basic MAC, type, channel result structure.
Basic complete result structure.
Definition lr1110_wifi_types.h:305
uint16_t beacon_period_tu
Definition lr1110_wifi_types.h:314
lr1110_wifi_mac_address_t mac_address
Definition lr1110_wifi_types.h:310
lr1110_wifi_channel_info_byte_t channel_info_byte
Definition lr1110_wifi_types.h:307
int8_t rssi
Definition lr1110_wifi_types.h:308
lr1110_wifi_frame_type_info_byte_t frame_type_info_byte
Definition lr1110_wifi_types.h:309
lr1110_wifi_datarate_info_byte_t data_rate_info_byte
Definition lr1110_wifi_types.h:306
int16_t phi_offset
Definition lr1110_wifi_types.h:311
uint32_t timestamp_us_high
Indicate the up-time of the Access Point transmitting the Beacon [us] - upper 32bits.
Definition lr1110_wifi_types.h:312
uint32_t timestamp_us_low
Indicate the up-time of the Access Point transmitting the Beacon [us] - lower 32bits.
Definition lr1110_wifi_types.h:313
Basic MAC, type, channel result structure.
Definition lr1110_wifi_types.h:321
lr1110_wifi_mac_address_t mac_address
Definition lr1110_wifi_types.h:325
lr1110_wifi_channel_info_byte_t channel_info_byte
Definition lr1110_wifi_types.h:323
int8_t rssi
Definition lr1110_wifi_types.h:324
lr1110_wifi_datarate_info_byte_t data_rate_info_byte
Definition lr1110_wifi_types.h:322
Wi-Fi country code structure.
Definition lr1110_wifi_types.h:380
lr1110_wifi_mac_address_t mac_address
Definition lr1110_wifi_types.h:384
lr1110_wifi_channel_info_byte_t channel_info_byte
Definition lr1110_wifi_types.h:383
uint8_t io_regulation
Input Output Regulation.
Definition lr1110_wifi_types.h:382
uint8_t country_code[LR1110_WIFI_STR_COUNTRY_CODE_SIZE]
Definition lr1110_wifi_types.h:381
Cumulative timings.
Definition lr1110_wifi_types.h:292
uint32_t demodulation_us
Cumulative time spent during software demodulation.
Definition lr1110_wifi_types.h:296
uint32_t rx_detection_us
Cumulative time spent during NFE or TOA.
Definition lr1110_wifi_types.h:293
uint32_t rx_correlation_us
Cumulative time spent during preamble detection.
Definition lr1110_wifi_types.h:294
uint32_t rx_capture_us
Cumulative time spent during signal acquisition.
Definition lr1110_wifi_types.h:295
Extended full result structure.
Definition lr1110_wifi_types.h:340
uint16_t beacon_period_tu
Definition lr1110_wifi_types.h:355
uint8_t current_channel
Current channel indicated in the Wi-Fi frame.
Definition lr1110_wifi_types.h:359
uint16_t length
Length of MPDU (in microseconds for WiFi B, bytes for WiFi G)
Definition lr1110_wifi_types.h:346
lr1110_wifi_fcs_info_byte_t fcs_check_byte
Definition lr1110_wifi_types.h:362
lr1110_wifi_channel_info_byte_t channel_info_byte
Definition lr1110_wifi_types.h:342
int8_t rssi
Definition lr1110_wifi_types.h:343
uint8_t io_regulation
Input Output Regulation.
Definition lr1110_wifi_types.h:361
uint16_t country_code
Country Code.
Definition lr1110_wifi_types.h:360
uint16_t frame_control
Frame Control structure.
Definition lr1110_wifi_types.h:347
uint16_t seq_control
Sequence Control value.
Definition lr1110_wifi_types.h:356
lr1110_wifi_mac_address_t mac_address_3
Definition lr1110_wifi_types.h:350
lr1110_wifi_datarate_info_byte_t data_rate_info_byte
Definition lr1110_wifi_types.h:341
uint8_t rate
Rate index.
Definition lr1110_wifi_types.h:344
lr1110_wifi_mac_address_t mac_address_2
Definition lr1110_wifi_types.h:349
int16_t phi_offset
Definition lr1110_wifi_types.h:363
uint32_t timestamp_us_high
Definition lr1110_wifi_types.h:351
lr1110_wifi_mac_address_t mac_address_1
Definition lr1110_wifi_types.h:348
uint16_t service
Service value.
Definition lr1110_wifi_types.h:345
uint32_t timestamp_us_low
Definition lr1110_wifi_types.h:353
Wi-Fi FCS info byte.
Definition lr1110_wifi_types.h:129
bool is_fcs_ok
True if the LR1110 has checked the FCS and the check succeeded.
Definition lr1110_wifi_types.h:130
bool is_fcs_checked
True if the LR1110 has checked the FCS.
Definition lr1110_wifi_types.h:131
Wi-Fi firmware version.
Definition lr1110_wifi_types.h:391
uint8_t major
Definition lr1110_wifi_types.h:392
uint8_t minor
Definition lr1110_wifi_types.h:393