63 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			63 lines
		
	
	
		
			2.2 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 MAC_HPLC_EXT_H
							 | 
						||
| 
								 | 
							
								#define MAC_HPLC_EXT_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "mac_vdev.h"
							 | 
						||
| 
								 | 
							
								#include "mac_pdev.h"
							 | 
						||
| 
								 | 
							
								#include "iot_pkt.h"
							 | 
						||
| 
								 | 
							
								#include "os_types.h"
							 | 
						||
| 
								 | 
							
								#include "mac_data_api.h"
							 | 
						||
| 
								 | 
							
								#include "mpdu_header.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifdef __cplusplus
							 | 
						||
| 
								 | 
							
								extern "C" {
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define SYNC_PERIOD_MS          (100)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 *@brief mac_send_ext_frame_internal            send ext frame for ckq
							 | 
						||
| 
								 | 
							
								 *@param ext_type                               send frame type
							 | 
						||
| 
								 | 
							
								 *@param pdev_id                                cur pdev id
							 | 
						||
| 
								 | 
							
								 *@param vdev_id                                cur vdev id
							 | 
						||
| 
								 | 
							
								 *@param tx_info                                mac tx info
							 | 
						||
| 
								 | 
							
								 *@param addr                                   remote mac addr
							 | 
						||
| 
								 | 
							
								 *@param sn                                     sn
							 | 
						||
| 
								 | 
							
								 *@return                                       ok/err
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								uint32_t mac_send_ext_frame_internal(uint8_t ext_type, pdevid_t pdev_id,
							 | 
						||
| 
								 | 
							
								    vdevid_t vdev_id, mac_tx_info *tx_info, uint8_t *addr, uint8_t sn);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 *@brief mac_ckq_rx_and_ppm_sync                rx ext frame for ckq
							 | 
						||
| 
								 | 
							
								 *@param pdev                                   cur pdev
							 | 
						||
| 
								 | 
							
								 *@param vdev                                   cur vdev
							 | 
						||
| 
								 | 
							
								 *@rx_fc_msg                                    rx fc info
							 | 
						||
| 
								 | 
							
								 *@param buf                                    rx buf
							 | 
						||
| 
								 | 
							
								 *@return                                       ok/err
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								uint32_t mac_ckq_rx_and_ppm_sync(mac_pdev_t *pdev, mac_vdev_t *vdev,
							 | 
						||
| 
								 | 
							
								    rx_fc_msg_t *rx_fc_msg, iot_pkt_t *rx_buf);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifdef __cplusplus
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 |