Files
kunlun/plc/halmac/inc/mac_data.h
2024-09-28 14:24:04 +08:00

68 lines
2.2 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_DATA_H
#define MAC_DATA_H
#include "iot_config.h"
#include "os_types.h"
#include "iot_pkt_api.h"
#include "os_utils.h"
#include "mac_msdu.h"
#include "mac_pdev.h"
#include "mac_vdev.h"
#ifdef __cplusplus
extern "C" {
#endif
uint32_t mac_send_msdu_ex(pdevid_t pdev_id, vdevid_t vdev_id,
iot_pkt_t* msdu_buf, mac_tx_info *tx_info);
uint32_t mac_send_msdu_ex_internal(pdevid_t pdev_id, vdevid_t vdev_id,
iot_pkt_t* msdu_buf, mac_tx_info *tx_info);
uint32_t mac_data_rx_msdu(mac_vdev_t *vdev, iot_pkt_t *msdu_buf);
#if HPLC_RF_DEV_SUPPORT
/**
*@brief mac_send_rf_msdu_ex_internal mac send rf msdu handle.
*@param pdev_id [pdev id]
*@param vdev_id [vdev id]
*@param msdu_buf [msdu buf]
*@param tx_info [tx info]
*@exception [none.]
*@return ret [hang success or not]
*/
uint32_t mac_send_rf_msdu_ex_internal(pdevid_t pdev_id, vdevid_t vdev_id,
iot_pkt_t* msdu_buf, mac_tx_info *tx_info);
#else /* HPLC_RF_DEV_SUPPORT */
#define mac_send_rf_msdu_ex_internal(pdev_id, vdev_id, msdu_buf, tx_info) \
ERR_NOSUPP; \
do { \
(void)msdu_buf; (void)pdev_id; (void)vdev_id; (void)tx_info; \
} while(0)
#endif /* HPLC_RF_DEV_SUPPORT */
#ifdef __cplusplus
}
#endif
#endif // MAC_DATA_H