42 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/****************************************************************************
 | 
						|
 | 
						|
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_META_BUFFER_HANDLE_H_
 | 
						|
#define _IOT_APP_META_BUFFER_HANDLE_H_
 | 
						|
 | 
						|
/**
 | 
						|
 * @brief iot_meta_put_cmd_to_buf() - put meta cmd to the buffer
 | 
						|
 * @param cmd:point to the meta cmd data
 | 
						|
 * @return: ERR_OK or fail reason
 | 
						|
 */
 | 
						|
uint8_t iot_meta_put_cmd_to_buf(meta_cmd_t *cmd);
 | 
						|
 | 
						|
/**
 | 
						|
 * @brief iot_meta_get_cmd_from_buf() - get meta cmd fromthe buffer
 | 
						|
 * @param meta_data: point to the meta position, the meta data will be copyed to
 | 
						|
    the position
 | 
						|
 * @param datalen: the length of meta space
 | 
						|
 * @return: the length of tlv data is put to the meta space
 | 
						|
 */
 | 
						|
uint16_t iot_meta_get_cmd_from_buf(uint8_t *meta_data, uint16_t datalen);
 | 
						|
 | 
						|
/**
 | 
						|
 * @brief iot_meta_buf_init() - initalize meta buffer
 | 
						|
 * @param module_id: module id
 | 
						|
 * @return: ERR_OK or fail reason
 | 
						|
 */
 | 
						|
uint8_t iot_meta_buf_init(uint16_t module_id);
 | 
						|
 | 
						|
#endif  /* _IOT_APP_META_BUFFER_HANDLE_H_ */ |