55 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.9 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 IOT_APP_PIB_STA_API_H
 | 
						|
#define IOT_APP_PIB_STA_API_H
 | 
						|
 | 
						|
/* os shim includes */
 | 
						|
#include "os_utils_api.h"
 | 
						|
 | 
						|
/* common includes */
 | 
						|
#include "iot_pib_api.h"
 | 
						|
#include "iot_app_pib_api.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
/**
 | 
						|
 * @function_name: iot_app_get_scan_band_in_pib.
 | 
						|
 * @brief : get scan band from pib if scan band is valid, only for sta use.
 | 
						|
 * @param[out] scan_band_bitmap: get scan band bitmaps.
 | 
						|
 * @return success: scan band bitmap size, failed: 0.
 | 
						|
 **/
 | 
						|
uint8_t iot_app_get_scan_band_in_pib(uint8_t **scan_band_bitmap);
 | 
						|
 | 
						|
/**
 | 
						|
 * @function_name: iot_app_save_scan_band_to_pib.
 | 
						|
 * @brief : save scan band bitmap to pib, only for sta use.
 | 
						|
 * @param[in] scan_band:set scan band bitmap.
 | 
						|
 *                      e: scan_band = b0000 0000 0000 0100
 | 
						|
 *                         -> enable band PLC_LIB_FREQ_BAND_2
 | 
						|
 * @param[in] size: size of scan bitmap,
 | 
						|
 *                  need equal to IOT_PLC_BAND_BITMAP_SIZE.
 | 
						|
 * @return success: 0, failed: others .
 | 
						|
 **/
 | 
						|
uint8_t iot_app_save_scan_band_to_pib(uint8_t *scan_band, uint32_t size);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif /* IOT_APP_PIB_STA_API_H */
 |