precision-converters-firmware
Loading...
Searching...
No Matches
Enumerations | Functions
ad5710r_support.h File Reference

AD5710r No-OS driver support header file. More...

#include <stdint.h>
#include "ad5710r.h"
Include dependency graph for ad5710r_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ad5710r_ldac_pin_state {
  AD5710R_LDAC_GPIO_OUTPUT ,
  AD5710R_LDAC_PWM
}
 

Functions

int ad5710r_spi_read_mask (struct ad5710r_desc *desc, uint32_t addr, uint32_t mask, uint16_t *val)
 SPI read from device using a mask.
 
int ad5710r_reconfig_ldac (struct ad5710r_desc *device, enum ad5710r_ldac_pin_state pin_state)
 Reconfigure LDAC pin as either GPIO output or PWM based on the pin_state value.
 

Detailed Description

AD5710r No-OS driver support header file.

Copyright (c) 2024-25 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.

Enumeration Type Documentation

◆ ad5710r_ldac_pin_state

Enumerator
AD5710R_LDAC_GPIO_OUTPUT 
AD5710R_LDAC_PWM 

Function Documentation

◆ ad5710r_reconfig_ldac()

int ad5710r_reconfig_ldac ( struct ad5710r_desc *  device,
enum ad5710r_ldac_pin_state  pin_state 
)

Reconfigure LDAC pin as either GPIO output or PWM based on the pin_state value.

Parameters
device[in]- AD3530r device instance
pin_state[in]- State of conversion pin
Returns
0 in case of success, negative error code otherwise

◆ ad5710r_spi_read_mask()

int ad5710r_spi_read_mask ( struct ad5710r_desc *  desc,
uint32_t  addr,
uint32_t  mask,
uint16_t *  val 
)

SPI read from device using a mask.

Parameters
desc[in]- AD5710R device instance
addr[in]- Register address
mask[in]- Mask for a specific register field
val[in,out]- Register value
Returns
0 in case of success, negative error code otherwise