precision-converters-firmware
|
AD3530r No-OS driver support header file. More...
#include <stdint.h>
#include "ad3530r.h"
Go to the source code of this file.
Enumerations | |
enum | ad3530r_ldac_pin_state { AD3530R_LDAC_GPIO_OUTPUT , AD3530R_LDAC_PWM } |
Functions | |
int | ad3530r_spi_read_mask (struct ad3530r_desc *desc, uint32_t addr, uint32_t mask, uint16_t *val) |
SPI read from device using a mask. | |
int | ad3530r_reconfig_ldac (struct ad3530r_desc *device, enum ad3530r_ldac_pin_state pin_state) |
Reconfigure LDAC pin as either GPIO output or PWM based on the pin_state value. | |
AD3530r No-OS driver support header file.
Copyright (c) 2023-24 Analog Devices, Inc. All rights reserved.
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.
int ad3530r_reconfig_ldac | ( | struct ad3530r_desc * | device, |
enum ad3530r_ldac_pin_state | pin_state | ||
) |
Reconfigure LDAC pin as either GPIO output or PWM based on the pin_state value.
device[in] | - AD3530r device instance |
pin_state[in] | - State of conversion pin |
int ad3530r_spi_read_mask | ( | struct ad3530r_desc * | desc, |
uint32_t | addr, | ||
uint32_t | mask, | ||
uint16_t * | val | ||
) |
SPI read from device using a mask.
desc[in] | - AD3530R device instance |
addr[in] | - Register address |
mask[in] | - Mask for a specific register field |
val[in,out] | - Register value |