71 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /****************************************************************************
 | |
| 
 | |
| Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
 | |
| 
 | |
| This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
 | |
| be copied by any method or incorporated into another program without
 | |
| the express written consent of Aerospace C.Power. This Information or any portion
 | |
| thereof remains the property of Aerospace C.Power. The Information contained herein
 | |
| is believed to be accurate and Aerospace C.Power assumes no responsibility or
 | |
| liability for its use in any way and conveys no license or title under
 | |
| any patent or copyright and makes no representation or warranty that this
 | |
| Information is free from patent or copyright infringement.
 | |
| 
 | |
| ****************************************************************************/
 | |
| #ifndef PLC_SCAN_TBL_H
 | |
| #define PLC_SCAN_TBL_H
 | |
| 
 | |
| #include "os_types.h"
 | |
| #include "iot_config_api.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| /* define count of hplc entry, no more than PLC_SCAN_BAND_MAX_CNT */
 | |
| #if SUPPORT_SMART_GRID
 | |
| #define PLC_SCAN_BAND_DEF_CNT           (6)
 | |
| #else /* SUPPORT_SMART_GRID */
 | |
| #define PLC_SCAN_BAND_DEF_CNT           (5)
 | |
| #endif /* SUPPORT_SMART_GRID */
 | |
| 
 | |
| /* define plc scan band table max count */
 | |
| #define PLC_SCAN_BAND_MAX_CNT           (12)
 | |
| 
 | |
| /* define plc scan minimum dwell time when no network discovered, uint 1s */
 | |
| #define PLC_SCAN_MIN_DWELL_TIME_S       (6)
 | |
| 
 | |
| /* define plc scan maximal dwell time when network discovered, uint 1s */
 | |
| #define PLC_SCAN_MAX_DWELL_TIME_S       (30)
 | |
| 
 | |
| /* define plc scan preferred band dwell time, uint 1s */
 | |
| #define PLC_SCAN_PREFER_DWELL_TIME_S    (90)
 | |
| 
 | |
| /* define plc scan first dwell time, uint 1s */
 | |
| #define PLC_SCAN_FIRST_DWELL_TIME_S     (20)
 | |
| 
 | |
| /* define plc scan cert dwell time, uint 1s */
 | |
| #define PLC_SCAN_CERT_DWELL_TIME_S      (40)
 | |
| 
 | |
| /* guangxi spg first scan band time, unit 1s */
 | |
| #define MAC_SCAN_FIRST_DWELL_SPG_GX_S   (6)
 | |
| 
 | |
| /* hplc scan band config */
 | |
| typedef struct _plc_scan_band {
 | |
|     /* scan band id */
 | |
|     uint8_t band_id;
 | |
|     /* scan band min time, unit 1s */
 | |
|     uint8_t min_time;
 | |
|     /* scan band dwell time, unit 1s */
 | |
|     uint8_t dwell_time;
 | |
| } plc_scan_band_t;
 | |
| 
 | |
| /* table used for hplc band scanning */
 | |
| extern const plc_scan_band_t plc_scan_tbl_glb[PLC_SCAN_BAND_DEF_CNT];
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* PLC_SCAN_TBL_H */
 |