Internal definitions for the ATWINC15x0 WiFi netdev driver. More...
Internal definitions for the ATWINC15x0 WiFi netdev driver.
Definition in file atwinc15x0_internal.h.
#include <stdbool.h>
#include <string.h>
#include "driver/include/m2m_types.h"
#include "atwinc15x0.h"
Go to the source code of this file.
#define | ATWINC1510_SCAN_SLOTS_MIN 2 |
Minimum number of slots to scan a channel. | |
#define | ATWINC1510_SCAN_SLOTS_DEF M2M_SCAN_DEFAULT_NUM_SLOTS |
Default number of slots to scan a channel. | |
#define | ATWINC1510_SCAN_SLOTS_MAX 255 |
Maximum number of slots to scan a channel. | |
#define | ATWINC1510_SCAN_SLOT_TIME_MS_MIN 10 |
Time in ms to scan a slot in a channel. | |
#define | ATWINC1510_SCAN_SLOT_TIME_MS_DEF M2M_SCAN_DEFAULT_SLOT_TIME |
Default time in ms to scan a slot in a channel. | |
#define | ATWINC1510_SCAN_SLOT_TIME_MS_MAX 250 |
Maximum time in ms to scan a slot in a channel. | |
#define | ATWINC1510_SCAN_PROBES_NUMOF_DEF M2M_SCAN_DEFAULT_NUM_PROBE |
Default number of probes to send to scan a channel. | |
#define | ATWINC1510_SCAN_THRESHOLD_DBM_DEF (-99) |
Default threshold in dbm for an AP to pass. | |
atwinc15x0_t * | atwinc15x0 |
Reference to the single ATWINC15x0 device instance. | |
static bool | _atwinc15x0_is_scanning (const atwinc15x0_t *dev) |
Check if dev is scanning. | |
static void | _atwinc15x0_set_scanning (atwinc15x0_t *dev) |
Set state to indicate that dev is scanning. | |
static bool | _atwinc15x0_is_connecting (const atwinc15x0_t *dev) |
Check if dev is connecting to an AP. | |
static void | _atwinc15x0_set_connecting (atwinc15x0_t *dev) |
Set state to indicate that dev is connecting to an AP. | |
static bool | _atwinc15x0_is_disconnecting (const atwinc15x0_t *dev) |
Check if dev is disconnecting from an AP. | |
static void | _atwinc15x0_set_disconnecting (atwinc15x0_t *dev) |
Set state to indicate that dev is disconnecting from an AP. | |
static bool | _atwinc15x0_is_connected (const atwinc15x0_t *dev) |
Check if dev is connected to an AP. | |
static void | _atwinc15x0_set_connected (atwinc15x0_t *dev) |
Set state to indicate that dev is connected to an AP. | |
static void | _atwinc15x0_set_disconnected (atwinc15x0_t *dev) |
Set state to indicate that dev is disconnected. | |
static bool | _atwinc15x0_is_busy (const atwinc15x0_t *dev) |
Check if dev is currently performing an asynchronous operation. | |
static bool | _atwinc15x0_is_idle (const atwinc15x0_t *dev) |
Check is dev is currently not performing an asynchronous operation. | |
static void | _atwinc15x0_set_idle (atwinc15x0_t *dev) |
Return from any busy state to corresponding idle state. | |
static void | _atwinc15x0_set_sleeping (atwinc15x0_t *dev) |
Set state to indicate that dev is sleeping. | |
static bool | _atwinc15x0_is_sleeping (const atwinc15x0_t *dev) |
Check if dev is currently sleeping. | |
static void | _atwinc15x0_sta_set_current_ssid (atwinc15x0_t *dev, const char *ssid) |
Set member of currently connected AP SSID. | |
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. | |
#define ATWINC1510_SCAN_PROBES_NUMOF_DEF M2M_SCAN_DEFAULT_NUM_PROBE |
Default number of probes to send to scan a channel.
Definition at line 74 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOT_TIME_MS_DEF M2M_SCAN_DEFAULT_SLOT_TIME |
Default time in ms to scan a slot in a channel.
Definition at line 64 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOT_TIME_MS_MAX 250 |
Maximum time in ms to scan a slot in a channel.
Definition at line 69 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOT_TIME_MS_MIN 10 |
Time in ms to scan a slot in a channel.
Definition at line 59 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOTS_DEF M2M_SCAN_DEFAULT_NUM_SLOTS |
Default number of slots to scan a channel.
Definition at line 49 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOTS_MAX 255 |
Maximum number of slots to scan a channel.
Definition at line 54 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_SLOTS_MIN 2 |
Minimum number of slots to scan a channel.
Definition at line 44 of file atwinc15x0_internal.h.
#define ATWINC1510_SCAN_THRESHOLD_DBM_DEF (-99) |
Default threshold in dbm for an AP to pass.
Definition at line 79 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is currently performing an asynchronous operation.
[in] | dev | ATWINC15x0 device |
dev
is busy dev
is not busy Definition at line 209 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is connected to an AP.
[in] | dev | ATWINC15x0 device |
dev
is connected dev
is not connected Definition at line 174 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is connecting to an AP.
[in] | dev | ATWINC15x0 device |
dev
is connecting dev
is not connecting Definition at line 119 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is disconnecting from an AP.
[in] | dev | ATWINC15x0 device |
dev
is disconnecting dev
is not disconnecting Definition at line 150 of file atwinc15x0_internal.h.
|
inlinestatic |
Check is dev
is currently not performing an asynchronous operation.
[in] | dev | ATWINC15x0 device |
dev
is idle dev
is not idle Definition at line 225 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is scanning.
[in] | dev | ATWINC15x0 device |
dev
is scanning dev
is not scanning Definition at line 89 of file atwinc15x0_internal.h.
|
inlinestatic |
Check if dev
is currently sleeping.
[in] | dev | ATWINC15x0 device |
dev
is sleeping dev
is not sleeping Definition at line 263 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is connected to an AP.
[in,out] | dev | ATWINC15x0 device |
Definition at line 186 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is connecting to an AP.
[in,out] | dev | ATWINC15x0 device |
Definition at line 130 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is disconnected.
[in,out] | dev | ATWINC15x0 device |
Definition at line 198 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is disconnecting from an AP.
[in,out] | dev | ATWINC15x0 device |
Definition at line 160 of file atwinc15x0_internal.h.
|
inlinestatic |
Return from any busy state to corresponding idle state.
[in] | dev | ATWINC15x0 device |
Definition at line 235 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is scanning.
[in,out] | dev | ATWINC15x0 device |
Definition at line 99 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev
is sleeping.
[in] | dev | ATWINC15x0 device |
Definition at line 251 of file atwinc15x0_internal.h.
|
inlinestatic |
Get member of currently connected AP.
[in] | dev | ATWINC15x0 device |
Definition at line 291 of file atwinc15x0_internal.h.
|
inlinestatic |
Set member of currently connected AP SSID.
[in,out] | dev | ATWINC15x0 device |
[in] | ssid | SSID |
Definition at line 275 of file atwinc15x0_internal.h.
|
extern |
Reference to the single ATWINC15x0 device instance.
Since the vendor ATWINC15x0 host driver uses many global variables, only a single ATWINC15x0 device can be used. Therefore, the RIOT driver only supports a single instance of an ATWINC15x0 device.