precision-converters-firmware
Enumerations | Functions
ad7091r_support.h File Reference

AD7091R No-OS driver support functionality headers. More...

#include "ad7091r8.h"
Include dependency graph for ad7091r_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ad7091r_conv_pin_state {
  CNV_GPIO_OUTPUT ,
  CNV_PWM
}
 

Functions

int ad7091r_reconfig_conv (struct ad7091r8_dev *device, enum ad7091r_conv_pin_state pin_state)
 Reconfigure Conversion pin from GPIO output to PWM and vice versa. More...
 

Detailed Description

AD7091R No-OS driver support functionality headers.

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

◆ ad7091r_conv_pin_state

Enumerator
CNV_GPIO_OUTPUT 
CNV_PWM 

Function Documentation

◆ ad7091r_reconfig_conv()

int ad7091r_reconfig_conv ( struct ad7091r8_dev *  device,
enum ad7091r_conv_pin_state  pin_state 
)

Reconfigure Conversion pin from GPIO output to PWM and vice versa.

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