41 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			41 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. | ||
|  | 
 | ||
|  | ****************************************************************************/ | ||
|  | #ifndef _INCLUDE_DTEST_FTM_COMMAND_H_
 | ||
|  | #define _INCLUDE_DTEST_FTM_COMMAND_H_
 | ||
|  | 
 | ||
|  | #ifdef IOT_FTM_SUPPORT
 | ||
|  | #undef IOT_FTM_SUPPORT
 | ||
|  | #define IOT_FTM_SUPPORT 1
 | ||
|  | #endif
 | ||
|  | 
 | ||
|  | #define IOT_DTEST_COMMAND_BUFFER_LEN    2048
 | ||
|  | 
 | ||
|  | typedef struct _iot_dtest_ftm_global { | ||
|  |     /* pending command id */ | ||
|  |     uint16_t            cmd_id; | ||
|  |     uint16_t            cmd_buf_index; | ||
|  |     uint8_t             *cmd; | ||
|  |     uint8_t             *event; | ||
|  |     uint8_t             cmd_buf[IOT_DTEST_COMMAND_BUFFER_LEN]; | ||
|  |     uint8_t             event_buf[IOT_DTEST_COMMAND_BUFFER_LEN]; | ||
|  | } iot_ftm_dtest_global_t; | ||
|  | 
 | ||
|  | uint32_t dtest_ftm_command_add(uint32_t cid, void *handler); | ||
|  | 
 | ||
|  | void dtest_ftm_command_response(uint32_t moduleid, uint32_t msgid, | ||
|  |     uint8_t *buffer, uint32_t bufferlen); | ||
|  | 
 | ||
|  | #endif
 |