/* * Copyright (C) 2022-2024, Xiaohua Semiconductor Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2023-05-12 CDT first version */ #ifndef __DRV_DAC_H__ #define __DRV_DAC_H__ /******************************************************************************* * Include files ******************************************************************************/ /* C binding of definitions if building with C++ compiler */ #ifdef __cplusplus extern "C" { #endif /******************************************************************************* * Global type definitions ('typedef') ******************************************************************************/ struct dac_dev_init_params { char name[8]; uint16_t vref; /*!< Specifies the ADC reference voltage, unit is mv */ uint16_t data_align; /*!