2019-08-03 10:39:03 +08:00
|
|
|
/*
|
2021-03-12 00:09:55 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2019-08-03 10:39:03 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2019-01-25 winner micro
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DRV_ONESHOT_H__
|
|
|
|
#define DRV_ONESHOT_H__
|
|
|
|
|
|
|
|
typedef enum{
|
2021-03-12 00:09:55 +08:00
|
|
|
WM_UDP,
|
2019-08-03 10:39:03 +08:00
|
|
|
WM_APSOCKET,
|
2021-03-12 00:09:55 +08:00
|
|
|
WM_APWEB
|
2019-08-03 10:39:03 +08:00
|
|
|
}WM_ONESHOT_MODE;
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (*wm_oneshot_callback)(int state, unsigned char *ssid, unsigned char *key);
|
|
|
|
|
|
|
|
extern int wm_oneshot_start(WM_ONESHOT_MODE mode, wm_oneshot_callback callback);
|
|
|
|
extern int wm_oneshot_stop(void);
|
|
|
|
extern int wm_oneshot_get(void);
|
|
|
|
|
|
|
|
#endif
|