no-OS
|
Header file of max538x Family Driver. More...
Go to the source code of this file.
Classes | |
struct | max538x_chip_info |
struct | max538x_dev |
struct | max538x_init_param |
Macros | |
#define | MAX538X_RESOLUTION 0xFF |
Enumerations | |
enum | max538x_type { MAX5380L, MAX5380M, MAX5380N, MAX5380K, MAX5381L, MAX5381M, MAX5381N, MAX5381K, MAX5382L, MAX5382M, MAX5382N, MAX5382K } |
Functions | |
int | max538x_init (struct max538x_dev **device, struct max538x_init_param init_param) |
Initializes the communication peripheral and checks if the device is present. More... | |
int | max538x_remove (struct max538x_dev *dev) |
Free the resources allocated by max538x_init(). More... | |
int | max538x_set_voutput (struct max538x_dev *dev, float vout) |
Sets the DAC output voltage using vout. More... | |
Variables | |
const struct max538x_chip_info | chip_info [] |
Header file of max538x Family Driver.
Copyright 2023(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. 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.
#define MAX538X_RESOLUTION 0xFF |
enum max538x_type |
int max538x_init | ( | struct max538x_dev ** | device, |
struct max538x_init_param | init_param | ||
) |
Initializes the communication peripheral and checks if the device is present.
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int max538x_remove | ( | struct max538x_dev * | dev | ) |
Free the resources allocated by max538x_init().
dev | - The device structure. |
int max538x_set_voutput | ( | struct max538x_dev * | dev, |
float | vout | ||
) |
Sets the DAC output voltage using vout.
dev | - The device structure. |
vout | - voltage output to set. |
const struct max538x_chip_info chip_info[] |