precision-converters-firmware
|
Header file for CN0586 supporting APIs. More...
Go to the source code of this file.
Classes | |
struct | cn0586_dev |
cn0586 CFTL structure. More... | |
Enumerations | |
enum | cn0586_range { HVOUT_0V_100V , HVOUT_M100V_100V , HVOUT_M50V_50V , HVOUT_0V_200V , NUM_OF_HVOUT_RANGES } |
CN0586 HVOUT Range options. More... | |
enum | cn0586_hvout_state { HVOUT_DISABLED , HVOUT_ENABLED , NUM_OF_HVOUT_STATES } |
CN0586 HVOUT State options. More... | |
Functions | |
int32_t | cn0586_init (struct cn0586_dev **dev, struct ad5754r_dev *ad5754r_device) |
Initialize the CFTL. Power up channels A, B, D. More... | |
int32_t | cn0586_set_hvout_range (struct cn0586_dev *dev, enum cn0586_range range) |
Set HVOUT range for the CFTL. More... | |
int32_t | cn0586_set_hvout_volts (struct cn0586_dev *dev, float volts) |
Set HVOUT volts for the CFTL. More... | |
int32_t | cn0586_get_hvout_volts (struct cn0586_dev *dev) |
Get HVOUT volts for the CFTL. More... | |
Header file for CN0586 supporting APIs.
Copyright (c) 2024 Analog Devices, Inc.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
enum cn0586_hvout_state |
enum cn0586_range |
int32_t cn0586_get_hvout_volts | ( | struct cn0586_dev * | dev | ) |
Get HVOUT volts for the CFTL.
dev[in,out] | - The CFTL device structure. |
int32_t cn0586_init | ( | struct cn0586_dev ** | dev, |
struct ad5754r_dev * | ad5754r_device | ||
) |
Initialize the CFTL. Power up channels A, B, D.
dev[in,out] | - cn0586 device structure. |
ad5754r_device[in,out] | - Pointer to ad5754r device structure |
int32_t cn0586_set_hvout_range | ( | struct cn0586_dev * | dev, |
enum cn0586_range | range | ||
) |
Set HVOUT range for the CFTL.
dev[in,out] | - cn0586 device structure. |
range[in] | - hvout range to be applied |
int32_t cn0586_set_hvout_volts | ( | struct cn0586_dev * | dev, |
float | volts | ||
) |
Set HVOUT volts for the CFTL.
dev[in,out] | - The CFTL device structure. |
volts[in] | - Volts to appear at hvout when enabled. |