60 lines
1.8 KiB
C
60 lines
1.8 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.
|
||
|
|
|
||
|
|
****************************************************************************/
|
||
|
|
/* common includes */
|
||
|
|
#include "iot_errno.h"
|
||
|
|
#include "iot_io.h"
|
||
|
|
#include "iot_config.h"
|
||
|
|
#include "iot_plc_msg_api.h"
|
||
|
|
|
||
|
|
/* cvg module internal includes */
|
||
|
|
#include "cvg_app.h"
|
||
|
|
#include "cvg_nwm_sta_common.h"
|
||
|
|
#include "cvg_nwm_internal.h"
|
||
|
|
#include "cvg_nwm_ctrl_proto_internal.h"
|
||
|
|
#include "cvg_bwm.h"
|
||
|
|
|
||
|
|
/* public includes */
|
||
|
|
#include "plc_utils.h"
|
||
|
|
#include "plc_fr.h"
|
||
|
|
#include "plc_mpdu_header.h"
|
||
|
|
#include "plc_protocol.h"
|
||
|
|
#include "plc_beacon.h"
|
||
|
|
#include "mac_hplc_ext_api.h"
|
||
|
|
|
||
|
|
#if (PLC_SUPPORT_CCO_ROLE)
|
||
|
|
|
||
|
|
#if (PLC_SUPPORT_EXT_PROTO)
|
||
|
|
|
||
|
|
/* period check of controller protocol */
|
||
|
|
uint8_t cvg_nwm_cco_ctrl_proto_check(cvg_nwm_vdev_t *nwm)
|
||
|
|
{
|
||
|
|
cvg_nwm_ctrl_pcb_t *pcb = nwm->ctrl_pcb;
|
||
|
|
IOT_ASSERT(pcb && pcb->ps_info.role == CVG_NWM_CTRL_PROTO_ROLE_SLA);
|
||
|
|
return cvg_nwm_ctrl_proto_check_slave(nwm);
|
||
|
|
}
|
||
|
|
|
||
|
|
#else /* PLC_SUPPORT_EXT_PROTO */
|
||
|
|
|
||
|
|
uint8_t cvg_nwm_cco_ctrl_proto_check(cvg_nwm_vdev_t *nwm)
|
||
|
|
{
|
||
|
|
(void)nwm;
|
||
|
|
return ERR_NOSUPP;
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif /* PLC_SUPPORT_EXT_PROTO */
|
||
|
|
|
||
|
|
#endif /* PLC_SUPPORT_CCO_ROLE */
|
||
|
|
|