quec_led_task.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*================================================================
  2. Copyright (c) 2021, Quectel Wireless Solutions Co., Ltd. All rights reserved.
  3. Quectel Wireless Solutions Proprietary and Confidential.
  4. =================================================================*/
  5. /*=================================================================
  6. EDIT HISTORY FOR MODULE
  7. This section contains comments describing changes made to the module.
  8. Notice that changes are listed in reverse chronological order.
  9. WHEN WHO WHAT, WHERE, WHY
  10. ------------ ------- -------------------------------------------------------------------------------
  11. =================================================================*/
  12. #ifndef QUEC_LED_TASK_H
  13. #define QUEC_LED_TASK_H
  14. #include "quec_common.h"
  15. #include "cfw_event.h"
  16. #include "ql_api_osi.h"
  17. #include "ql_gpio.h"
  18. #ifdef CONFIG_QUEC_PROJECT_FEATURE_LEDCFG
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. typedef struct
  23. {
  24. int period;
  25. int ontime;
  26. } ql_led_cfg_s;
  27. #ifndef CONFIG_QL_OPEN_EXPORT_PKG
  28. extern uint8_t quec_pwm_mode;
  29. extern uint8_t quec_ledmode;
  30. extern uint8_t quec_led_exc;
  31. extern uint8_t netstatus_pin_sel;
  32. extern uint8_t netstatus_gpio_sel;
  33. extern uint8_t netmode_pin_sel;
  34. extern uint8_t netmode_gpio_sel;
  35. extern ql_led_cfg_s ql_led_cfg;
  36. #endif
  37. #ifdef __QUEC_OEM_VER_LT__
  38. typedef enum
  39. {
  40. QUEC_LT_NOT_FIRST_AT,
  41. QUEC_LT_GET_FIRST_AT,
  42. }lt_first_at_status_e;
  43. typedef enum
  44. {
  45. QUEC_LT_NOT_TRANS,
  46. QUEC_LT_IN_TRANS,
  47. }lt_data_trans_status_e;
  48. typedef struct
  49. {
  50. lt_first_at_status_e first_at;
  51. lt_data_trans_status_e data_trans;
  52. unsigned int time_value;
  53. unsigned int blink;
  54. ql_LvlMode gpio_current_lvl;
  55. }ql_oem_lt_param_s;
  56. #endif
  57. void quec_ledcfg_event_send(uint8_t nSim, uint8_t index, uint8_t net_type);
  58. void quec_ledcfg_init(void);
  59. #ifndef CONFIG_QL_OPEN_EXPORT_PKG
  60. void quec_led_func_open(void);
  61. void quec_led_func_close(void);
  62. #endif
  63. #ifdef __cplusplus
  64. } /*"C" */
  65. #endif
  66. #endif /*CONFIG_QUEC_PROJECT_FEATURE_LEDCFG*/
  67. #endif /* QUEC_LED_TASK_H */