ql_gpio_internal.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 QL_GPIO_INTERNAL_H
  13. #define QL_GPIO_INTERNAL_H
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /**
  18. * @brief Pin function seclect
  19. * @param pin_num : Pin number
  20. * @param func_sel : seclected Pin function
  21. * @return
  22. * QL_GPIO_INVALID_PARAM_ERR
  23. * QL_GPIO_SUCCESS
  24. */
  25. ql_errcode_gpio ql_pin_set_func_internal(uint8_t pin_num, uint8_t func_sel);
  26. /**
  27. * @brief Pin function set to GPIO
  28. * @param pin_num : Pin number
  29. * @return
  30. * QL_GPIO_INVALID_PARAM_ERR
  31. * QL_GPIO_SUCCESS
  32. */
  33. ql_errcode_gpio ql_pin_set_gpio_internal(uint8_t pin_num);
  34. #ifdef __cplusplus
  35. } /*"C" */
  36. #endif
  37. #endif /* QL_GPIO_INTERNAL_H */