49 lines
1.7 KiB
C
49 lines
1.7 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 CVG_NWM_SPG_H
|
|
#define CVG_NWM_SPG_H
|
|
|
|
/* cvg module includes */
|
|
#include "cvg_nwm.h"
|
|
|
|
/* plc includes */
|
|
#include "plc_mac_header.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief cvg_nwm_mac_header_init_spg() - init mac header for a sof frame
|
|
* @param nwm: nwm vdev pointer
|
|
* @param mac: pointer to the mac header
|
|
* @param dest_tei: tei of the original destination
|
|
* @param send_type: send type of the sof. see SPG_ST_XXX
|
|
* @param bc_direct: broadcast direction. only available when send type is
|
|
* not SPG_ST_UNICAST. see SPG_BCAST_DIR_XXX.
|
|
* @param max_cnt: max send count.
|
|
* @param max_hop: maximum allowed hops.
|
|
*/
|
|
void cvg_nwm_mac_header_init_spg(cvg_vdev_t *vdev, spg_mac_header_t *mac,
|
|
tei_t dest_tei, uint8_t send_type, uint8_t bc_direct,
|
|
uint8_t max_cnt, uint8_t max_hop);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CVG_NWM_SPG_H */ |