![]() |
no-OS
|
Header file of AD5446 Driver. This driver supporting the following devices: AD5553, AD5543, AD5542A, AD5541A, AD5512A, AD5453, AD5452, AD5451, AD5450, AD5446, AD5444. More...
Classes | |
| struct | ad5446_chip_info |
| struct | ad5446_dev |
| struct | ad5446_init_param |
Macros | |
| #define | AD5446_CTRL_LOAD_UPDATE 0x0 |
| #define | AD5446_CTRL_ACTIVE_POSEDGE 0x3 |
| #define | AD5446_LDAC_OUT |
| #define | AD5446_LDAC_LOW |
| #define | AD5446_LDAC_HIGH |
| #define | AD5446_CLR_OUT |
| #define | AD5446_CLR_LOW |
| #define | AD5446_CLR_HIGH |
Enumerations | |
| enum | active_clk_t { negedge , posedge } |
| enum | bool_t { false , true } |
| enum | vout_type_t { unipolar , unipolar_inv , bipolar } |
| enum | ad5446_type_t { ID_AD5600 , ID_AD5553 , ID_AD5543 , ID_AD5542A , ID_AD5541A , ID_AD5512A , ID_AD5453 , ID_AD5452 , ID_AD5451 , ID_AD5450 , ID_AD5446 , ID_AD5444 } |
Functions | |
| int8_t | ad5446_init (struct ad5446_dev **device, struct ad5446_init_param init_param) |
| Initialize SPI and Initial Values for AD5446 Board. | |
| int32_t | ad5446_remove (struct ad5446_dev *dev) |
| Free the resources allocated by ad5446_init(). | |
| void | ad5446_set_register (struct ad5446_dev *dev, uint8_t command, uint16_t data) |
| Writes to input register via SPI. | |
| float | ad5446_set_voltage (struct ad5446_dev *dev, float voltage, float vref, enum vout_type_t vout_type) |
| Sets the output voltage. | |
Header file of AD5446 Driver. This driver supporting the following devices: AD5553, AD5543, AD5542A, AD5541A, AD5512A, AD5453, AD5452, AD5451, AD5450, AD5446, AD5444.
Copyright 2013(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define AD5446_CLR_HIGH |
| #define AD5446_CLR_LOW |
| #define AD5446_CLR_OUT |
| #define AD5446_CTRL_ACTIVE_POSEDGE 0x3 |
| #define AD5446_CTRL_LOAD_UPDATE 0x0 |
| #define AD5446_LDAC_HIGH |
| #define AD5446_LDAC_LOW |
| #define AD5446_LDAC_OUT |
| enum active_clk_t |
| enum ad5446_type_t |
| enum bool_t |
| enum vout_type_t |
| int8_t ad5446_init | ( | struct ad5446_dev ** | device, |
| struct ad5446_init_param | init_param ) |
Initialize SPI and Initial Values for AD5446 Board.
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
| int32_t ad5446_remove | ( | struct ad5446_dev * | dev | ) |
Free the resources allocated by ad5446_init().
| dev | - The device structure. |
| void ad5446_set_register | ( | struct ad5446_dev * | dev, |
| uint8_t | command, | ||
| uint16_t | data ) |
Writes to input register via SPI.
| dev | - The device structure. |
| command | - Command to be transmitted to the device. |
| data | - Data to be written in input register. |
| float ad5446_set_voltage | ( | struct ad5446_dev * | dev, |
| float | voltage, | ||
| float | vref, | ||
| enum vout_type_t | vout_type ) |
Sets the output voltage.
| dev | - The device structure. |
| voltage | - The voltage value in volts |
| vref | - The voltage reference used by the device in volts. |
| vout_type | - Voltage output type: unipolar/unipolar_inv/bipolar |