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

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

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

Go to the source code of this file.

Macros

#define AD579X_ADDRESS_MASK   NO_OS_GENMASK(23, 20)
 

Enumerations

enum  ad579x_ldac_pin_state {
  AD579x_LDAC_GPIO_OUTPUT ,
  AD579x_LDAC_PWM
}
 

Functions

int ad579x_reconfig_ldac (struct ad5791_dev *device, enum ad579x_ldac_pin_state pin_state)
 Reconfigure LDAC pin as GPIO output.
 

Detailed Description

AD579x No-OS driver support header file.

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

Macro Definition Documentation

◆ AD579X_ADDRESS_MASK

#define AD579X_ADDRESS_MASK   NO_OS_GENMASK(23, 20)

Enumeration Type Documentation

◆ ad579x_ldac_pin_state

Enumerator
AD579x_LDAC_GPIO_OUTPUT 
AD579x_LDAC_PWM 

Function Documentation

◆ ad579x_reconfig_ldac()

int ad579x_reconfig_ldac ( struct ad5791_dev *  device,
enum ad579x_ldac_pin_state  pin_state 
)

Reconfigure LDAC pin as GPIO output.

Parameters
device[in]- AD579x device instance
pin_state[in]- State of conversion pin
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function: