23#include "bsp/include/nm_bsp.h"
41#ifndef CONFIG_ATWINC15X0_RECV_BCAST
42#define CONFIG_ATWINC15X0_RECV_BCAST (1)
49#ifndef CONFIG_ATWINC15X0_SCAN_LIST_NUMOF
50#define CONFIG_ATWINC15X0_SCAN_LIST_NUMOF (3)
89#if IS_USED(MODULE_ATWINC15X0_DYNAMIC_CONNECT) || defined(DOXYGEN)
atwinc15x0_state_t
ATWINC15x0 internal states.
@ 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.
struct atwinc15x0 atwinc15x0_t
ATWINC15x0 device descriptor type.
void atwinc15x0_setup(atwinc15x0_t *dev, const atwinc15x0_params_t *params, uint8_t idx)
Setup the ATWINC15x0 WiFi module.
Definitions low-level network driver interface.
Low-level GPIO peripheral driver interface definitions.
Definitions for Ethernet.
#define ETHERNET_ADDR_LEN
Length of an Ethernet address.
#define WIFI_SSID_LEN_MAX
Maximum length of an SSID.
A utility for storing and retrieving byte data using a ring buffer.
Low-level SPI peripheral driver interface definition.
ATWINC15x0 hardware and global parameters.
spi_clk_t spi_clk
SPI clock speed used.
gpio_t chip_en_pin
CHIP_EN pin.
gpio_t reset_pin
RESET_N pin (LOW active)
gpio_t irq_pin
IRQN pin (LOW active)
gpio_t ssn_pin
SPI SS pin (slave select LOW active)
ATWINC15x0 device descriptor type.
int8_t rssi
RSSI last measured by the WiFi module.
uint8_t channel
Channel used for current AP.
atwinc15x0_state_t state
Device state.
tpfNmBspIsr bsp_isr
Board support package ISR
bool bsp_irq_enabled
Board support package interrupt enabled.
netdev_t netdev
Pulls in the netdev fields.
uint8_t * rx_buf
Incoming packet in receive buffer.
uint16_t rx_len
Length of an incoming packet, if there is no packet in the buffer, it is 0.
char ssid[WIFI_SSID_LEN_MAX+1]
SSID of current AP.
atwinc15x0_params_t params
Device initialization parameters.
char ap[ETHERNET_ADDR_LEN]
BSSID of current AP.
Structure to hold driver state.