57 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.6 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.
 | 
						|
 | 
						|
****************************************************************************/
 | 
						|
 | 
						|
/* This file contains the PLC FW features supported
 | 
						|
 * any feature related .c file should include this file
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef IOT_MODULE_H
 | 
						|
#define IOT_MODULE_H
 | 
						|
 | 
						|
/* export includes */
 | 
						|
#include "iot_module_api.h"
 | 
						|
 | 
						|
/* internal includes */
 | 
						|
#include "iot_config.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#if PLC_STATISTICS_ENABLE
 | 
						|
 | 
						|
/* 
 | 
						|
 * iot_get_mid_str - get string for the specified module id
 | 
						|
 * @mid:    module id to be queried
 | 
						|
 *
 | 
						|
 * return:
 | 
						|
 *  pointer to the string. Note that the string may be NULL. the string is
 | 
						|
 *  is read only and must not be changed in anyway.
 | 
						|
 */
 | 
						|
char* iot_get_mid_str(module_id_t mid);
 | 
						|
 | 
						|
#else /* PLC_STATISTICS_ENABLE */
 | 
						|
 | 
						|
#define iot_get_mid_str(mid)    NULL
 | 
						|
 | 
						|
#endif /* PLC_STATISTICS_ENABLE */
 | 
						|
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif // !PLC_MODULE_H
 |