Loading...
Searching...
No Matches
atwinc15x0.h File Reference

Netdev Driver for the Microchip ATWINC15x0 WiFi Module. More...

Detailed Description

Netdev Driver for the Microchip ATWINC15x0 WiFi Module.

Public interface for ATWINC15x0 netdev driver

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file atwinc15x0.h.

#include "bsp/include/nm_bsp.h"
#include "net/ethernet.h"
#include "net/wifi.h"
#include "net/netdev.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "ringbuffer.h"
+ Include dependency graph for atwinc15x0.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  atwinc15x0_params_t
 ATWINC15x0 hardware and global parameters. More...
 
struct  atwinc15x0
 ATWINC15x0 device descriptor type. More...
 
#define CONFIG_ATWINC15X0_RECV_BCAST   (1)
 Enable reception of broadcast frames.
 
#define CONFIG_ATWINC15X0_SCAN_LIST_NUMOF   (3)
 Maximum number of supported entries in a scan result of an ATWINC15x0 transceiver.
 
enum  atwinc15x0_state_t {
  ATWINC15X0_STATE_SLEEP , ATWINC15X0_STATE_DISCONNECTING , ATWINC15X0_STATE_DISCONNECTED , ATWINC15X0_STATE_DISCONNECTED_SCANNING ,
  ATWINC15X0_STATE_DISCONNECTED_CONNECTING , ATWINC15X0_STATE_CONNECTED , ATWINC15X0_STATE_CONNECTED_SCANNING , ATWINC15X0_STATE_CONNECTED_CONNECTING
}
 ATWINC15x0 internal states. More...
 
typedef 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.
 

Macro Definition Documentation

◆ CONFIG_ATWINC15X0_RECV_BCAST

#define CONFIG_ATWINC15X0_RECV_BCAST   (1)

Enable reception of broadcast frames.

     If your application does not rely on receiving broadcast messages
     you can disable this to save power.

Definition at line 42 of file atwinc15x0.h.

◆ CONFIG_ATWINC15X0_SCAN_LIST_NUMOF

#define CONFIG_ATWINC15X0_SCAN_LIST_NUMOF   (3)

Maximum number of supported entries in a scan result of an ATWINC15x0 transceiver.

Definition at line 50 of file atwinc15x0.h.

Enumeration Type Documentation

◆ atwinc15x0_state_t

ATWINC15x0 internal states.

Enumerator
ATWINC15X0_STATE_SLEEP 

Sleep state.

ATWINC15X0_STATE_DISCONNECTING 

Disconnect received when connected before.

ATWINC15X0_STATE_DISCONNECTED 

Disconnect state.

ATWINC15X0_STATE_DISCONNECTED_SCANNING 

Scanning state when disconnected.

ATWINC15X0_STATE_DISCONNECTED_CONNECTING 

Connecting state where disconnected before.

ATWINC15X0_STATE_CONNECTED 

Connected state.

ATWINC15X0_STATE_CONNECTED_SCANNING 

Scanning state when connected.

ATWINC15X0_STATE_CONNECTED_CONNECTING 

Connecting state where disconnect event is not yet received.

Definition at line 69 of file atwinc15x0.h.

Function Documentation

◆ atwinc15x0_setup()

void atwinc15x0_setup ( atwinc15x0_t dev,
const atwinc15x0_params_t params,
uint8_t  idx 
)

Setup the ATWINC15x0 WiFi module.

Parameters
[in]devDevice descriptor
[in]paramsParameters for device initialization
[in]idxIndex in the params struct