57 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.8 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 MAC_PDEV_API_H
 | |
| #define MAC_PDEV_API_H
 | |
| 
 | |
| /* os shim includes */
 | |
| #include "plc_utils.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| /* get how many pdev mac supported
 | |
|  * pdev_num_returned - the pointer returned about the number
 | |
|  * return 0 for success and non-zero for failure.
 | |
|  */
 | |
| uint32_t mac_get_pdev_num(uint8_t *pdev_num_returned);
 | |
| 
 | |
| /*
 | |
| * mac_set_pdev_cfg - pull a msg to set a pdev's config
 | |
| *
 | |
| * pdev_id - which pdev to config
 | |
| * cfg_struct_ptr - the pointer to the param config structure
 | |
| *
 | |
| * return 0 for success and non-zero for failure.
 | |
| */
 | |
| uint32_t mac_set_pdev_cfg(pdevid_t pdev_id, void *cfg_struct_ptr);
 | |
| 
 | |
| /**
 | |
|  *@brief mac_get_pdev_cfg.      mac get pdev msg.
 | |
|  *@param pdev_id                [which pdev to config]
 | |
|  *@param cfg_struct_ptr         [the pointer to the param config structure]
 | |
|  *@exception                    [none.]
 | |
|  *@return                       [0 for success and non-zero for failure]
 | |
|  */
 | |
| uint32_t mac_get_pdev_cfg(uint8_t pdev_id, void *cfg_struct_ptr);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif
 | |
| 
 |