precision-converters-firmware
Variables
ad719x_user_config.c File Reference

User configuration file for AD719X device. More...

#include "app_config.h"
#include "ad719x_user_config.h"
Include dependency graph for ad719x_user_config.c:

Variables

struct no_os_spi_init_param spi_init_params
 
struct no_os_gpio_init_param gpio_cs_init
 
struct no_os_gpio_init_param gpio_miso_init
 
struct no_os_gpio_init_param gpio_sync_init
 
struct ad719x_init_param ad719x_init_params
 

Detailed Description

User configuration file for AD719X device.

Copyright (c) 2021-22,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.

Variable Documentation

◆ ad719x_init_params

struct ad719x_init_param ad719x_init_params
Initial value:
= {
.spi_init = &spi_init_params,
.gpio_miso = &gpio_miso_init,
.sync_pin = &gpio_sync_init,
.current_polarity = POLARITY_CONFIG,
.current_gain = DEFAULT_GAIN,
.data_rate_code = DATA_OUTPUT_RATE_BITS,
.operating_mode = AD719X_MODE_IDLE,
.clock_source = AD719X_INT_CLK_4_92_MHZ,
.input_mode = INPUT_CONFIG,
.buffer = true,
.bpdsw_mode = false,
.chip_id = AD7193
}
#define POLARITY_CONFIG
Definition: app_config.h:174
#define INPUT_CONFIG
Definition: app_config.h:198
struct no_os_gpio_init_param gpio_sync_init
Definition: ad719x_user_config.c:50
struct no_os_gpio_init_param gpio_miso_init
Definition: ad719x_user_config.c:42
struct no_os_spi_init_param spi_init_params
Definition: ad719x_user_config.c:24
#define DATA_OUTPUT_RATE_BITS
Definition: ad719x_user_config.h:26
#define DEFAULT_GAIN
Definition: ad719x_user_config.h:27

◆ gpio_cs_init

struct no_os_gpio_init_param gpio_cs_init
Initial value:
= {
.number = SPI_CSB,
.port = SPI_CS_PORT,
.platform_ops = &gpio_ops,
.extra = NULL
}
#define gpio_ops
Definition: app_config.h:85
#define SPI_CSB
Definition: app_config_mbed.h:33
#define SPI_CS_PORT
Definition: app_config_mbed.h:70

◆ gpio_miso_init

struct no_os_gpio_init_param gpio_miso_init
Initial value:
= {
.number = RDY_PIN,
.port = RDY_PORT,
.platform_ops = &gpio_ops,
.extra = NULL
}
#define RDY_PORT
Definition: app_config_mbed.h:68
#define RDY_PIN
Definition: app_config_mbed.h:63

◆ gpio_sync_init

struct no_os_gpio_init_param gpio_sync_init
Initial value:
= {
.number = SYNC_PIN,
.port = SYNC_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_sync_init_params
Definition: app_config.h:80
#define SYNC_PIN
Definition: app_config_mbed.h:62
#define SYNC_PORT
Definition: app_config_mbed.h:67

◆ spi_init_params

struct no_os_spi_init_param spi_init_params
Initial value:
= {
.max_speed_hz = MAX_SPI_BAUDRATE,
.chip_select = SPI_CSB,
.device_id = SPI_DEVICE_ID,
.mode = NO_OS_SPI_MODE_3,
.platform_ops = &spi_ops,
}
#define spi_ops
Definition: app_config.h:86
#define spi_extra_init_params
Definition: app_config.h:80
#define SPI_DEVICE_ID
Definition: app_config_mbed.h:70
#define MAX_SPI_BAUDRATE
Definition: app_config_mbed.h:31