63 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.7 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_SWC_LIB_H
 | |
| #define IOT_SWC_LIB_H
 | |
| 
 | |
| #include "os_types_api.h"
 | |
| #include "iot_config_api.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #if PLC_SUPPORT_CCO_ROLE
 | |
| 
 | |
| /* define short buffer size for swc lib message */
 | |
| #define SWC_LIB_MSG_SHORT_BUF_SIZE          64
 | |
| 
 | |
| /* define long buffer size for swc lib message */
 | |
| #define SWC_LIB_MSG_LONG_BUF_SIZE           1024
 | |
| 
 | |
| #else /* SWC_SUPPORT_CCO_ROLE */
 | |
| 
 | |
| /* define short buffer size for swc lib message */
 | |
| #define SWC_LIB_MSG_SHORT_BUF_SIZE          32
 | |
| 
 | |
| /* define long buffer size for swc lib message */
 | |
| #define SWC_LIB_MSG_LONG_BUF_SIZE           1024
 | |
| 
 | |
| #endif
 | |
| 
 | |
| /**
 | |
|  * @brief   iot_swc_lib_init() - init swc lib module
 | |
|  *
 | |
|  * @retval:   0  --  for success case
 | |
|  * @retval:  otherwise  --  error code
 | |
|  */
 | |
| uint32_t iot_swc_lib_init();
 | |
| 
 | |
| /*
 | |
|  * iot_ipc_lib_deinit() - deinit swc lib module
 | |
|  */
 | |
| void iot_swc_lib_deinit();
 | |
| 
 | |
| 
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* IOT_PLC_LIB_H */ |