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"
Include dependency graph for atwinc15x0_internal.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. More... | |
| static bool | _atwinc15x0_is_scanning (const atwinc15x0_t *dev) |
Check if dev is scanning. More... | |
| static void | _atwinc15x0_set_scanning (atwinc15x0_t *dev) |
Set state to indicate that dev is scanning. More... | |
| static bool | _atwinc15x0_is_connecting (const atwinc15x0_t *dev) |
Check if dev is connecting to an AP. More... | |
| static void | _atwinc15x0_set_connecting (atwinc15x0_t *dev) |
Set state to indicate that dev is connecting to an AP. More... | |
| static bool | _atwinc15x0_is_disconnecting (const atwinc15x0_t *dev) |
Check if dev is disconnecting from an AP. More... | |
| static void | _atwinc15x0_set_disconnecting (atwinc15x0_t *dev) |
Set state to indicate that dev is disconnecting from an AP. More... | |
| static bool | _atwinc15x0_is_connected (const atwinc15x0_t *dev) |
Check if dev is connected to an AP. More... | |
| static void | _atwinc15x0_set_connected (atwinc15x0_t *dev) |
Set state to indicate that dev is connected to an AP. More... | |
| static void | _atwinc15x0_set_disconnected (atwinc15x0_t *dev) |
Set state to indicate that dev is disconnected. More... | |
| static bool | _atwinc15x0_is_busy (const atwinc15x0_t *dev) |
Check if dev is currently performing an asynchronous operation. More... | |
| static bool | _atwinc15x0_is_idle (const atwinc15x0_t *dev) |
Check is dev is currently not performing an asynchronous operation. More... | |
| static void | _atwinc15x0_set_idle (atwinc15x0_t *dev) |
| Return from any busy state to corresponding idle state. More... | |
| static void | _atwinc15x0_set_sleeping (atwinc15x0_t *dev) |
Set state to indicate that dev is sleeping. More... | |
| static bool | _atwinc15x0_is_sleeping (const atwinc15x0_t *dev) |
Check if dev is currently sleeping. More... | |
| static void | _atwinc15x0_sta_set_current_ssid (atwinc15x0_t *dev, const char *ssid) |
| Set member of currently connected AP SSID. More... | |
| static const char * | _atwinc15x0_sta_get_current_ssid (const atwinc15x0_t *dev) |
| Get member of currently connected AP. More... | |
| void | atwinc15x0_irq (void) |
| ATWINC15x0 device driver ISR. | |
|
inlinestatic |
Check if dev is currently performing an asynchronous operation.
| [in] | dev | ATWINC15x0 device |
dev is busy dev is not busy Definition at line 208 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 173 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 118 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 149 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 224 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 88 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 262 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 185 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 129 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev is disconnected.
| [in,out] | dev | ATWINC15x0 device |
Definition at line 197 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 159 of file atwinc15x0_internal.h.
|
inlinestatic |
Return from any busy state to corresponding idle state.
| [in] | dev | ATWINC15x0 device |
Definition at line 234 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev is scanning.
| [in,out] | dev | ATWINC15x0 device |
Definition at line 98 of file atwinc15x0_internal.h.
|
inlinestatic |
Set state to indicate that dev is sleeping.
| [in] | dev | ATWINC15x0 device |
Definition at line 250 of file atwinc15x0_internal.h.
|
inlinestatic |
Get member of currently connected AP.
| [in] | dev | ATWINC15x0 device |
Definition at line 290 of file atwinc15x0_internal.h.
|
inlinestatic |
Set member of currently connected AP SSID.
| [in,out] | dev | ATWINC15x0 device |
| [in] | ssid | SSID |
Definition at line 274 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.