precision-converters-firmware
Variables
ad7091r_user_config.c File Reference

User configurations for AD7091R No-OS driver. More...

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

Variables

struct no_os_gpio_init_param cnvst_params
 
struct no_os_gpio_init_param reset_params
 
struct no_os_spi_init_param spi_params
 
struct ad7091r8_init_param ad7091r_init_params
 

Detailed Description

User configurations for AD7091R No-OS driver.

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.

Variable Documentation

◆ ad7091r_init_params

struct ad7091r8_init_param ad7091r_init_params
Initial value:
= {
.device_id = ACTIVE_DEVICE_ID,
.spi_init = &spi_params,
.vref_mv = ADC_VREF_MV,
.gpio_convst = &cnvst_params,
.gpio_reset = &reset_params,
.sleep_mode = AD7091R8_SLEEP_MODE_1
}
#define ACTIVE_DEVICE_ID
Definition: app_config.h:82
struct no_os_spi_init_param spi_params
Definition: ad7091r_user_config.c:45
struct no_os_gpio_init_param reset_params
Definition: ad7091r_user_config.c:37
struct no_os_gpio_init_param cnvst_params
Definition: ad7091r_user_config.c:29

◆ cnvst_params

struct no_os_gpio_init_param cnvst_params
Initial value:
= {
.number = CNV_PIN,
.port = CNV_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition: app_config.h:85
#define CNV_PIN
Definition: app_config_mbed.h:39
#define CNV_PORT
Definition: app_config_stm32.h:50
#define cnv_gpio_extra_init_param
Definition: app_config_stm32.h:104

◆ reset_params

struct no_os_gpio_init_param reset_params
Initial value:
= {
.number = RESET_PIN,
.port = RESET_PORT,
.platform_ops = &gpio_ops,
}
#define RESET_PIN
Definition: app_config_mbed.h:41
#define RESET_PORT
Definition: app_config_mbed.h:49
#define reset_gpio_extra_init_param
Definition: app_config_stm32.h:105

◆ spi_params

struct no_os_spi_init_param spi_params
Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = MAX_SPI_SCLK,
.chip_select = SPI_CSB,
.mode = NO_OS_SPI_MODE_0,
.platform_ops = &spi_ops,
}
#define spi_ops
Definition: app_config.h:86
#define spi_extra_init_params
Definition: app_config.h:80
#define SPI_CSB
Definition: app_config_mbed.h:33
#define SPI_DEVICE_ID
Definition: app_config_mbed.h:70
#define MAX_SPI_SCLK
Definition: app_config_mbed.h:72