19#ifndef ATWINC15X0_INTERNAL_H
20#define ATWINC15X0_INTERNAL_H
25#include "driver/include/m2m_types.h"
44#define ATWINC1510_SCAN_SLOTS_MIN 2
49#define ATWINC1510_SCAN_SLOTS_DEF M2M_SCAN_DEFAULT_NUM_SLOTS
54#define ATWINC1510_SCAN_SLOTS_MAX 255
59#define ATWINC1510_SCAN_SLOT_TIME_MS_MIN 10
64#define ATWINC1510_SCAN_SLOT_TIME_MS_DEF M2M_SCAN_DEFAULT_SLOT_TIME
69#define ATWINC1510_SCAN_SLOT_TIME_MS_MAX 250
74#define ATWINC1510_SCAN_PROBES_NUMOF_DEF M2M_SCAN_DEFAULT_NUM_PROBE
79#define ATWINC1510_SCAN_THRESHOLD_DBM_DEF (-99)
276 (void)dev; (void)ssid;
277#if IS_USED(MODULE_ATWINC15X0_DYNAMIC_CONNECT)
293#if IS_USED(MODULE_ATWINC15X0_DYNAMIC_CONNECT)
#define assert(cond)
abort the program if assertion is false
Netdev Driver for the Microchip ATWINC15x0 WiFi Module.
@ ATWINC15X0_STATE_DISCONNECTED_SCANNING
Scanning state when disconnected.
@ ATWINC15X0_STATE_CONNECTED_CONNECTING
Connecting state where disconnect event is not yet received.
@ ATWINC15X0_STATE_DISCONNECTED
Disconnect state.
@ ATWINC15X0_STATE_SLEEP
Sleep state.
@ ATWINC15X0_STATE_CONNECTED
Connected state.
@ ATWINC15X0_STATE_DISCONNECTING
Disconnect received when connected before.
@ ATWINC15X0_STATE_DISCONNECTED_CONNECTING
Connecting state where disconnected before.
@ ATWINC15X0_STATE_CONNECTED_SCANNING
Scanning state when connected.
static bool _atwinc15x0_is_idle(const atwinc15x0_t *dev)
Check is dev is currently not performing an asynchronous operation.
static void _atwinc15x0_sta_set_current_ssid(atwinc15x0_t *dev, const char *ssid)
Set member of currently connected AP SSID.
static bool _atwinc15x0_is_sleeping(const atwinc15x0_t *dev)
Check if dev is currently sleeping.
static bool _atwinc15x0_is_scanning(const atwinc15x0_t *dev)
Check if dev is scanning.
static const char * _atwinc15x0_sta_get_current_ssid(const atwinc15x0_t *dev)
Get member of currently connected AP.
void atwinc15x0_irq(void)
ATWINC15x0 device driver ISR.
static void _atwinc15x0_set_connecting(atwinc15x0_t *dev)
Set state to indicate that dev is connecting to an AP.
static void _atwinc15x0_set_sleeping(atwinc15x0_t *dev)
Set state to indicate that dev is sleeping.
static void _atwinc15x0_set_disconnected(atwinc15x0_t *dev)
Set state to indicate that dev is disconnected.
static bool _atwinc15x0_is_connecting(const atwinc15x0_t *dev)
Check if dev is connecting to an AP.
static void _atwinc15x0_set_scanning(atwinc15x0_t *dev)
Set state to indicate that dev is scanning.
static bool _atwinc15x0_is_connected(const atwinc15x0_t *dev)
Check if dev is connected to an AP.
static void _atwinc15x0_set_idle(atwinc15x0_t *dev)
Return from any busy state to corresponding idle state.
static void _atwinc15x0_set_disconnecting(atwinc15x0_t *dev)
Set state to indicate that dev is disconnecting from an AP.
static bool _atwinc15x0_is_disconnecting(const atwinc15x0_t *dev)
Check if dev is disconnecting from an AP.
static void _atwinc15x0_set_connected(atwinc15x0_t *dev)
Set state to indicate that dev is connected to an AP.
atwinc15x0_t * atwinc15x0
Reference to the single ATWINC15x0 device instance.
static bool _atwinc15x0_is_busy(const atwinc15x0_t *dev)
Check if dev is currently performing an asynchronous operation.
ATWINC15x0 device descriptor type.
atwinc15x0_state_t state
Device state.
char ssid[WIFI_SSID_LEN_MAX+1]
SSID of current AP.