oneshot.h 564 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-01-25 winner micro
  9. */
  10. #ifndef DRV_ONESHOT_H__
  11. #define DRV_ONESHOT_H__
  12. typedef enum{
  13. WM_UDP,
  14. WM_APSOCKET,
  15. WM_APWEB
  16. }WM_ONESHOT_MODE;
  17. typedef void (*wm_oneshot_callback)(int state, unsigned char *ssid, unsigned char *key);
  18. extern int wm_oneshot_start(WM_ONESHOT_MODE mode, wm_oneshot_callback callback);
  19. extern int wm_oneshot_stop(void);
  20. extern int wm_oneshot_get(void);
  21. #endif