/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415#pragma once1617#include <AP_Param/AP_Param.h>18#include "AP_DAC_config.h"1920class AP_DAC_Params {21public:22static const struct AP_Param::GroupInfo var_info[];2324AP_DAC_Params(void);2526CLASS_NO_COPY(AP_DAC_Params);2728// DAC types29enum class Type : uint8_t {30NONE = 0,31#if AP_DAC_TIX3204_ENABLED32TIx3204 = 1,33#endif34#if AP_DAC_MCP40D1X_ENABLED35MCP40D1x = 2,36#endif37};3839AP_Enum<Type> type; // 0=disabled, others see frontend enum TYPE40AP_Int8 bus; // I2C bus number41AP_Int8 bus_address; // I2C address42AP_Float voltage_reference;43AP_Float voltage;44};454647