summaryrefslogtreecommitdiff
path: root/code/fe310/eos/wifi.h
blob: 3587d1d2342ac96085c189052ba051fb60bb1806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>
#include "event.h"

#define EOS_WIFI_MTYPE_SCAN         0
#define EOS_WIFI_MTYPE_CONNECT      1
#define EOS_WIFI_MTYPE_DISCONNECT   2

#define EOS_WIFI_MAX_MTYPE          3

void eos_wifi_init(void);
void eos_wifi_set_handler(int mtype, eos_evt_fptr_t handler, uint8_t flags);

void eos_wifi_connect(const char *ssid, const char *pass);
void eos_wifi_disconnect(void);