28 lines
602 B
C
28 lines
602 B
C
#ifndef _PICOW_WIFI_OPERATOR_H
|
|
#define _PICOW_WIFI_OPERATOR_H
|
|
|
|
#include "Config.h"
|
|
|
|
/**
|
|
* @brief WiFi operator mode.
|
|
* Set in initialisation
|
|
*/
|
|
enum wifi_operator_mode_t {
|
|
WIFI_OPERATOR_MODE_UNINITIALIZED,
|
|
WIFI_OPERATOR_MODE_ACCESS_POINT,
|
|
WIFI_OPERATOR_MODE_STATION
|
|
};
|
|
|
|
/**
|
|
* @brief Init the WiFi operator with the given mode.
|
|
*
|
|
* @param mode Mode to initialise the wifi operator to.
|
|
*/
|
|
int wifi_operator_init(enum wifi_operator_mode_t mode);
|
|
|
|
/**
|
|
* @brief Exit the WiFi operator and reset to default parameters.
|
|
*/
|
|
int wifi_operator_exit(void);
|
|
|
|
#endif // _PICOW_WIFI_OPERATOR_H
|