62#ifndef LR1110_WIFI_N_RESULTS_MAX_PER_CHUNK
77#define LR1110_WIFI_N_RESULTS_MAX_PER_CHUNK LR1110_WIFI_MAX_RESULTS
121 uint8_t max_results, uint8_t nb_scan_per_channel, uint16_t timeout_in_ms,
bool abort_on_timeout );
143 uint8_t nb_max_results, uint8_t nb_scan_per_channel,
144 uint16_t timeout_in_ms,
bool abort_on_timeout );
212 uint16_t timeout_per_channel_ms, uint16_t timeout_per_scan_ms );
250 uint8_t nb_max_results, uint16_t timeout_per_channel_ms,
251 uint16_t timeout_per_scan_ms );
481 bool* rssi_validity, uint8_t* mac_origin_estimation );
529 uint8_t* wifi_data_rate );
Hardware Abstraction Layer (HAL) interface for LR1110.
Register/memory driver definition for LR1110.
Type definitions for LR1110.
err_t lr1110_wifi_reset_cumulative_timing(lriot_t *ctx)
Reset the internal counters of cumulative timing.
err_t lr1110_wifi_get_nb_country_code_results(lriot_t *ctx, uint8_t *nb_country_code_results)
Get size of country code search results.
void lr1110_wifi_parse_frame_type_info(lr1110_wifi_frame_type_info_byte_t frame_type_info, uint8_t *frame_type, lr1110_wifi_frame_sub_type_t *frame_sub_type, bool *to_ds, bool *from_ds)
Retrieve the Frame Type, Frame Subtype, To/From DS fields from a frame info byte.
err_t lr1110_wifi_scan_time_limit(lriot_t *ctx, lr1110_wifi_signal_type_scan_t signal_type, lr1110_wifi_channel_mask_t channels, lr1110_wifi_mode_t scan_mode, uint8_t max_results, uint16_t timeout_per_channel_ms, uint16_t timeout_per_scan_ms)
Start a Wi-Fi passive scan operation with duration stop conditions.
uint8_t lr1110_wifi_extract_channel_from_info_byte(lr1110_wifi_channel_info_byte_t channel_info)
Helper method to retrieve channel from channel info byte.
err_t lr1110_wifi_cfg_timestamp_ap_phone(lriot_t *ctx, uint32_t timestamp_in_s)
Configure the timestamp used to discriminate mobile access points from gateways.
err_t lr1110_wifi_search_country_code(lriot_t *ctx, lr1110_wifi_channel_mask_t channels_mask, uint8_t nb_max_results, uint8_t nb_scan_per_channel, uint16_t timeout_in_ms, bool abort_on_timeout)
Start a Wi-Fi passive scan for country codes extraction.
err_t lr1110_wifi_read_cumulative_timing(lriot_t *ctx, lr1110_wifi_cumulative_timings_t *timing)
Read the internal counters of cumulative timing.
err_t lr1110_wifi_get_nb_results(lriot_t *ctx, uint8_t *nb_results)
Returns the number of results currently available in LR1110.
err_t lr1110_wifi_search_country_code_time_limit(lriot_t *ctx, lr1110_wifi_channel_mask_t channels_mask, uint8_t nb_max_results, uint16_t timeout_per_channel_ms, uint16_t timeout_per_scan_ms)
Start a Wi-Fi passive scan for country codes extraction with duration stop conditions.
err_t lr1110_wifi_read_extended_full_results(lriot_t *ctx, uint8_t start_result_index, uint8_t nb_results, lr1110_wifi_extended_full_result_t *results)
Read extended complete results.
err_t lr1110_wifi_read_country_code_results(lriot_t *ctx, uint8_t start_result_index, uint8_t nb_country_results, lr1110_wifi_country_code_t *country_code_results)
Read country code results.
void lr1110_wifi_parse_channel_info(lr1110_wifi_channel_info_byte_t channel_info, uint8_t *channel, bool *rssi_validity, uint8_t *mac_origin_estimation)
Retreive channel information from channel info byte.
err_t lr1110_wifi_read_basic_mac_type_channel_results(lriot_t *ctx, uint8_t start_result_index, uint8_t nb_results, lr1110_wifi_basic_mac_type_channel_result_t *results)
Read basic MAC, Wi-Fi type and channel results.
uint8_t lr1110_wifi_get_nb_results_max_per_chunk(void)
Return the maximal number of results to read per SPI communication.
bool lr1110_wifi_is_well_formed_utf8_byte_sequence(uint8_t *buffer, uint8_t length)
Helper function to check if a buffer is a well-formed UTF-8 byte sequence.
err_t lr1110_wifi_scan(lriot_t *ctx, lr1110_wifi_signal_type_scan_t signal_type, lr1110_wifi_channel_mask_t channels, lr1110_wifi_mode_t scan_mode, uint8_t max_results, uint8_t nb_scan_per_channel, uint16_t timeout_in_ms, bool abort_on_timeout)
Start a Wi-Fi passive scan operation.
err_t lr1110_wifi_read_basic_complete_results(lriot_t *ctx, uint8_t start_result_index, uint8_t nb_results, lr1110_wifi_basic_complete_result_t *results)
Read basic complete results.
void lr1110_wifi_parse_data_rate_info(lr1110_wifi_datarate_info_byte_t data_rate_info, uint8_t *wifi_signal_type, uint8_t *wifi_data_rate)
Retrieve the data rate information from data rate info byte.
err_t lr1110_wifi_read_version(lriot_t *ctx, lr1110_wifi_version_t *wifi_version)
Get the internal wifi firmware version.
uint8_t lr1110_wifi_extract_signal_type_from_data_rate_info(lr1110_wifi_datarate_info_byte_t data_rate_info)
Helper method to retrieve the signal type from data rate info byte.
Wi-Fi passive scan driver types for LR1110.
uint8_t lr1110_wifi_channel_info_byte_t
Type to store a Wi-Fi channel info byte.
Definition lr1110_wifi_types.h:108
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
uint16_t lr1110_wifi_channel_mask_t
Type to store a Wi-Fi channel mask.
Definition lr1110_wifi_types.h:103
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_signal_type_scan_t
Wi-Fi signal type for passive scanning configuration.
Definition lr1110_wifi_types.h:227
uint8_t lr1110_wifi_frame_sub_type_t
Type to store a Wi-Fi frame sub_type.
Definition lr1110_wifi_types.h:123
Basic complete result structure.
Definition lr1110_wifi_types.h:305
Basic MAC, type, channel result structure.
Definition lr1110_wifi_types.h:321
Wi-Fi country code structure.
Definition lr1110_wifi_types.h:380
Cumulative timings.
Definition lr1110_wifi_types.h:292
Extended full result structure.
Definition lr1110_wifi_types.h:340
Wi-Fi firmware version.
Definition lr1110_wifi_types.h:391
LR IoT Click context object.
Definition lriot.h:273