CH395.H 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __CH395_H__
  2. #define __CH395_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "ql_api_ethernet.h"
  7. typedef enum
  8. {
  9. CH395_APP_CB_TYPE_RESET,
  10. CH395_APP_CB_TYPE_NOTIFY,
  11. CH395_APP_CB_TYPE_MAX
  12. }ch395_app_cb_type_e;
  13. typedef enum
  14. {
  15. CH395_APP_NET_NONE,
  16. CH395_APP_NET_RESETING,
  17. CH395_APP_NET_CONNECTING,
  18. CH395_APP_NET_CONNECTED,
  19. CH395_APP_NET_DISCONNECTED,
  20. CH395_APP_NET_MAX
  21. }ch395_app_net_status_e;
  22. typedef void (*ch395_app_reset_cb_t)(void* ctx);
  23. typedef void (*ch395_app_notify_cb_t)(void* ctx);
  24. typedef void (*ch395_app_gpio_cb_t)(void* ctx);
  25. ch395_app_gpio_cb_t ch395_app_get_gpio_cb(void);
  26. void ch395_app_reset(void);
  27. bool ch395_app_init(void* argv);
  28. bool ch395_app_deinit(void* argv);
  29. bool ch395_app_cb_register(ch395_app_cb_type_e type,void* cb);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif
  34. /************************** endfile **************************************/