@web-font-path: "roboto-debian.css";
v2.2.0 (RP2040)
Loading...
Searching...
No Matches
cyw43_arch.h File Reference
`#include "pico.h"`
`#include "cyw43.h"`
`#include "cyw43_country.h"`
`#include "pico/async_context.h"`
Include dependency graph for cyw43_arch.h:

Go to the source code of this file.

## Macros

#define | PARAM_ASSERTIONS_ENABLED_PICO_CYW43_ARCH 0
#define | PICO_CYW43_ARCH_DEBUG_ENABLED 1
#define | PICO_CYW43_ARCH_DEFAULT_COUNTRY_CODE CYW43_COUNTRY_WORLDWIDE

## Functions

int | cyw43_arch_init (void)
| Initialize the CYW43 architecture.
int | cyw43_arch_init_with_country (uint32_t country)
| Initialize the CYW43 architecture for use in a specific country.
void | cyw43_arch_deinit (void)
| De-initialize the CYW43 architecture.
async_context_t * | cyw43_arch_async_context (void)
| Return the current async_context currently in use by the cyw43_arch code.
void | cyw43_arch_set_async_context (async_context_t *context)
| Set the async_context to be used by the cyw43_arch_init.
async_context_t * | cyw43_arch_init_default_async_context (void)
| Initialize the default async_context for the current cyw43_arch type.
void | cyw43_arch_poll (void)
| Perform any processing required by the `cyw43_driver` or the TCP/IP stack.
void | cyw43_arch_wait_for_work_until (absolute_time_t until)
| Sleep until there is cyw43_driver work to be done.
static void | cyw43_arch_lwip_begin (void)
| Acquire any locks required to call into lwIP.
static void | cyw43_arch_lwip_end (void)
| Release any locks required for calling into lwIP.
static int | cyw43_arch_lwip_protect (int(*func)(void *param), void *param)
| sad Release any locks required for calling into lwIP
uint32_t | cyw43_arch_get_country_code (void)
| Return the country code used to initialize cyw43_arch.
void | cyw43_arch_enable_sta_mode (void)
| Enables Wi-Fi STA (Station) mode.
void | cyw43_arch_disable_sta_mode (void)
| Disables Wi-Fi STA (Station) mode.
void | cyw43_arch_enable_ap_mode (const char *ssid, const char *password, uint32_t auth)
| Enables Wi-Fi AP (Access point) mode.
void | cyw43_arch_disable_ap_mode (void)
| Disables Wi-Fi AP (Access point) mode.
int | cyw43_arch_wifi_connect_blocking (const char *ssid, const char *pw, uint32_t auth)
| Attempt to connect to a wireless access point, blocking until the network is joined or a failure is detected.
int | cyw43_arch_wifi_connect_bssid_blocking (const char *ssid, const uint8_t *bssid, const char *pw, uint32_t auth)
| Attempt to connect to a wireless access point specified by SSID and BSSID, blocking until the network is joined or a failure is detected.
int | cyw43_arch_wifi_connect_timeout_ms (const char *ssid, const char *pw, uint32_t auth, uint32_t timeout)
| Attempt to connect to a wireless access point, blocking until the network is joined, a failure is detected or a timeout occurs.
int | cyw43_arch_wifi_connect_bssid_timeout_ms (const char *ssid, const uint8_t *bssid, const char *pw, uint32_t auth, uint32_t timeout)
| Attempt to connect to a wireless access point specified by SSID and BSSID, blocking until the network is joined, a failure is detected or a timeout occurs.
int | cyw43_arch_wifi_connect_async (const char *ssid, const char *pw, uint32_t auth)
| Start attempting to connect to a wireless access point.
int | cyw43_arch_wifi_connect_bssid_async (const char *ssid, const uint8_t *bssid, const char *pw, uint32_t auth)
| Start attempting to connect to a wireless access point specified by SSID and BSSID.
void | cyw43_arch_gpio_put (uint wl_gpio, bool value)
| Set a GPIO pin on the wireless chip to a given value.
bool | cyw43_arch_gpio_get (uint wl_gpio)
| Read the value of a GPIO pin on the wireless chip.