/*
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
Copyright (C) 2016..2019 Thomas Schöpping et al.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
#ifndef AMIROOS_UT_ALLD_TPS6211X_V1_INA219_V1_H
#define AMIROOS_UT_ALLD_TPS6211X_V1_INA219_V1_H
#include
#if ((AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_TPS6211x) && (AMIROLLD_CFG_TPS6211x == 1) && defined(AMIROLLD_CFG_INA219) && (AMIROLLD_CFG_INA219 == 1)) || defined(__DOXYGEN__)
#include
#include
/******************************************************************************/
/* CONSTANTS */
/******************************************************************************/
/******************************************************************************/
/* SETTINGS */
/******************************************************************************/
/******************************************************************************/
/* CHECKS */
/******************************************************************************/
/******************************************************************************/
/* DATA STRUCTURES AND TYPES */
/******************************************************************************/
/**
* @brief Custom data structure for the unit test.
*/
typedef struct {
/**
* @brief TPS62113 driver to use.
*/
TPS6211xDriver* tps6211x;
/**
* @brief INA219 driver to use.
*/
INA219Driver* ina219;
/**
* @brief Timeout value (in us).
*/
apalTime_t timeout;
} ut_tps6211xina219data_t;
/******************************************************************************/
/* MACROS */
/******************************************************************************/
/******************************************************************************/
/* EXTERN DECLARATIONS */
/******************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
aos_utresult_t utAlldTps6211xIna219Func(BaseSequentialStream* stream, aos_unittest_t* ut);
#ifdef __cplusplus
}
#endif
/******************************************************************************/
/* INLINE FUNCTIONS */
/******************************************************************************/
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_TPS6211x) && (AMIROLLD_CFG_TPS6211x == 1) && defined(AMIROLLD_CFG_INA219) && (AMIROLLD_CFG_INA219 == 1) */
#endif /* AMIROOS_UT_ALLD_TPS6211X_V1_INA219_V1_H */