123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- /*================================================================
- Copyright (c) 2021, Quectel Wireless Solutions Co., Ltd. All rights reserved.
- Quectel Wireless Solutions Proprietary and Confidential.
- =================================================================*/
-
- /*=================================================================
- EDIT HISTORY FOR MODULE
- This section contains comments describing changes made to the module.
- Notice that changes are listed in reverse chronological order.
- WHEN WHO WHAT, WHERE, WHY
- ------------ ------- -------------------------------------------------------------------------------
- =================================================================*/
- #ifndef QL_LED_H
- #define QL_LED_H
- #include "ql_api_common.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*===========================================================================
- * Macro Definition
- ===========================================================================*/
- #define QL_LED_ERRCODE_BASE (QL_COMPONENT_BSP_LED<<16)
- /*===========================================================================
- * Enum
- ===========================================================================*/
- /**
- * LED errcode
- */
- typedef enum
- {
- QL_LED_SUCCESS = QL_SUCCESS,
- QL_LED_EXECUTE_ERR = 1|QL_LED_ERRCODE_BASE,
- QL_LED_INVALID_PARAM_ERR,
- QL_LED_CB_NULL_ERR
- }ql_errcode_led;
- /*===========================================================================
- * Struct
- ===========================================================================*/
- /*===========================================================================
- * Typedef
- ===========================================================================*/
- typedef void (*ql_ledcfg_callback)(unsigned int ind_type, uint32_t net_status, uint32_t net_type);
- /*===========================================================================
- * Functions declaration
- ===========================================================================*/
- /**
- * @brief user's led config callback register
- * @param ledcfg_cb : set callback by user
- * @return
- * QL_LED_CB_NULL_ERR
- * QL_LED_SUCCESS
- */
- ql_errcode_led ql_ledcfg_callback_register(ql_ledcfg_callback ledcfg_cb);
- /*****************************************************************
- * Function: ql_led_set_sim
- *
- * Description: Bind the network light to the SIM card
- *
- * Parameters:
- * nSim [in] SIM index, range 0 to 1
- *
- * Return:
- * 0 success
- * other error code
- *
- *****************************************************************/
- ql_errcode_led ql_led_set_sim(uint8 nSim);
- /*****************************************************************
- * Function: ql_led_get_sim
- *
- * Description: get the SIM card that bound to the network light
- *
- * Parameters:
- * nSim [out] SIM index, range 0 to 1
- *
- * Return:
- * 0 success
- * other error code
- *
- *****************************************************************/
- ql_errcode_led ql_led_get_sim(uint8 *nSim);
- #ifdef __cplusplus
- } /*"C" */
- #endif
- #endif /* QL_LED_H */
|