precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations | Functions
ad3530r_support.h File Reference

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

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

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.
 

Detailed Description

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.

Enumeration Type Documentation

◆ ad3530r_ldac_pin_state

Enumerator
AD3530R_LDAC_GPIO_OUTPUT 
AD3530R_LDAC_PWM 

Function Documentation

◆ ad3530r_reconfig_ldac()

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.

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

◆ ad3530r_spi_read_mask()

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.

Parameters
desc[in]- AD3530R 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