| /* |
| * |
| * Copyright (c) 2022 Project CHIP Authors |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| #pragma once |
| |
| #include "FreeRTOS.h" |
| #include "queue.h" |
| #include "semphr.h" |
| #include "sl_wfx.h" |
| #include "task.h" |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| uint8_t sl_wfx_host_get_waited_event(void); |
| sl_status_t wfx_soft_init(void); |
| |
| #ifdef SLEEP_ENABLED |
| sl_status_t sl_wfx_host_switch_to_wirq(void); |
| #endif |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #define SL_WFX_MAX_STATIONS 8 |
| #define SL_WFX_MAX_SCAN_RESULTS 50 |
| |
| typedef struct __attribute__((__packed__)) scan_result_list_s |
| { |
| sl_wfx_ssid_def_t ssid_def; |
| uint8_t mac[SL_WFX_MAC_ADDR_SIZE]; |
| uint16_t channel; |
| sl_wfx_security_mode_bitmask_t security_mode; |
| uint16_t rcpi; |
| } scan_result_list_t; |
| |
| void sl_wfx_host_start_platform_interrupt(void); |
| extern SemaphoreHandle_t wfx_wakeup_sem; |