/** * * \file * * \brief WINC ATE Test Driver Interface. * * Copyright (c) 2015 - 2017 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The name of Atmel may not be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * \asf_license_stop * */ #ifdef _M2M_ATE_FW_ #ifndef _M2M_ATE_MODE_H_ #define _M2M_ATE_MODE_H_ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* INCLUDES *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ #include "common/include/nm_common.h" #include "driver/include/m2m_types.h" /** \defgroup m2m_ate ATE */ /**@defgroup ATEDefine Defines * @ingroup m2m_ate * @{ */ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* MACROS *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ #define M2M_ATE_MAX_NUM_OF_RATES (20) /*!< Maximum number of all rates (b,g and n) */ #define M2M_ATE_MAX_FRAME_LENGTH (1024) /*!< Maximum number of length for each frame */ #define M2M_ATE_MIN_FRAME_LENGTH (1) /*!< Minimum number of length for each frame */ #define M2M_ATE_SUCCESS (M2M_SUCCESS) /*!< No Error and operation completed successfully. */ #define M2M_ATE_ERR_VALIDATE (M2M_ERR_FAIL) /*!< Error in parameters passed to functions. */ #define M2M_ATE_ERR_TX_ALREADY_RUNNING (-1) /*!< Error in starting a transmission test. Another test is already running and its not allowed to start another ATE * test. */ #define M2M_ATE_ERR_RX_ALREADY_RUNNING (-2) /*!< Error in starting a reception test. Another test is already running and its not allowed to start another ATE test. */ #define M2M_ATE_ERR_UNHANDLED_CASE (-3) /*!< Invalid case. */ #define M2M_ATE_RX_DISABLE_DA 0x0 /*!< Filter selection for received frames: Disable filtering received frames by the destination address. */ #define M2M_ATE_RX_ENABLE_DA 0x1 /*!< Filter selection for received frames: Enable filtering received frames by the destination address. */ #define M2M_ATE_RX_DISABLE_SA 0x0 /*!< Filter selection for received frames: Disable filtering received frames by the source address. */ #define M2M_ATE_RX_ENABLE_SA 0x1 /*!< Filter selection for received frames: Enable filtering received frames by the source address. */ #define M2M_ATE_DISABLE_SELF_MACADDR 0x0 /*!