28#define BURST_DATA_CAPTURE 0
29#define CONTINUOUS_DATA_CAPTURE 1
30#define FIFO_DATA_CAPTURE 2
33#define USER_DEFAULT_CONFIG 0
34#define RTD_2WIRE_CONFIG 1
35#define RTD_3WIRE_CONFIG 2
36#define RTD_4WIRE_CONFIG 3
37#define THERMISTOR_CONFIG 4
38#define THERMOCOUPLE_CONFIG 5
39#define LOADCELL_CONFIG 6
40#define NOISE_TEST_CONFIG 7
41#define POWER_TEST_CONFIG 8
47#define IIO_CLIENT_REMOTE 1
48#define IIO_CLIENT_LOCAL 2
57#define ACTIVE_DEVICE_NAME "ad4130-8"
60#define AD4130_WLCSP_PACKAGE_TYPE
64#if !defined(ACTIVE_PLATFORM)
65#define ACTIVE_PLATFORM STM32_PLATFORM
69#if !defined(ACTIVE_IIO_CLIENT)
70#define ACTIVE_IIO_CLIENT IIO_CLIENT_REMOTE
74#if !defined(ACTIVE_DEMO_MODE_CONFIG)
75#define ACTIVE_DEMO_MODE_CONFIG USER_DEFAULT_CONFIG
81#if defined(FIFO_MODE_MCU_POWER_SAVING_ENABLED)
83#define DATA_CAPTURE_MODE FIFO_DATA_CAPTURE
85#if !defined(DATA_CAPTURE_MODE)
87#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
94#if !defined(USE_PHY_COM_PORT)
95#define USE_VIRTUAL_COM_PORT
98#if (ACTIVE_PLATFORM == STM32_PLATFORM)
100#define HW_CARRIER_NAME TARGET_NAME
102#define vcom_extra_init_params stm32_vcom_extra_init_params
103#define uart_extra_init_params stm32_uart_extra_init_params
104#define spi_extra_init_params stm32_spi_extra_init_params
105#define i2c_extra_init_params stm32_i2c_extra_init_params
106#define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params
107#define trigger_gpio_extra_init_params stm32_trigger_gpio_extra_init_params
108#define trigger_gpio_ops stm32_gpio_ops
109#define irq_ops stm32_irq_ops
110#define gpio_ops stm32_gpio_ops
111#define spi_ops stm32_spi_ops
112#define i2c_ops stm32_i2c_ops
113#define uart_ops stm32_uart_ops
115#define vcom_ops stm32_usb_uart_ops
117#define trigger_gpio_irq_ops stm32_gpio_irq_ops
118#define trigger_gpio_handle 0
119#define TRIGGER_GPIO_PORT CNV_PORT_NUM
120#define TRIGGER_GPIO_PIN CNV_PIN_NUM
121#define TRIGGER_INT_ID CNV_PIN_NUM
123#error "No/Invalid active platform selected"
127#define HW_MEZZANINE_NAME "EV-AD4130WASDZ-U1"
131#if (ACTIVE_DEMO_MODE_CONFIG == USER_DEFAULT_CONFIG)
133#define ad4130_init_params ad4130_user_config_params
134#elif ((ACTIVE_DEMO_MODE_CONFIG == RTD_2WIRE_CONFIG) || \
135(ACTIVE_DEMO_MODE_CONFIG == RTD_3WIRE_CONFIG) || \
136(ACTIVE_DEMO_MODE_CONFIG == RTD_4WIRE_CONFIG))
138#define ad4130_init_params ad4130_rtd_config_params
139#elif (ACTIVE_DEMO_MODE_CONFIG == THERMISTOR_CONFIG)
141#define ad4130_init_params ad4130_thermistor_config_params
142#elif (ACTIVE_DEMO_MODE_CONFIG == THERMOCOUPLE_CONFIG)
144#define ad4130_init_params ad4130_thermocouple_config_params
145#elif (ACTIVE_DEMO_MODE_CONFIG == LOADCELL_CONFIG)
147#define ad4130_init_params ad4130_loadcell_config_params
148#elif (ACTIVE_DEMO_MODE_CONFIG == NOISE_TEST_CONFIG)
150#define ad4130_init_params ad4130_noise_test_config_params
151#elif (ACTIVE_DEMO_MODE_CONFIG == POWER_TEST_CONFIG)
153#define ad4130_init_params ad4130_power_test_config_params
156#define ad4130_init_params ad4130_user_config_params
157#warning "No/Invalid active demo config selected, user config used as default"
161#define ADC_RESOLUTION 24
172#define ADC_DIFFERENTIAL_CHNS 8
173#define ADC_PSEUDO_DIFF_CHNS 16
176#define AD4130_REFIN1_VOLTAGE 2.5
177#define AD4130_REFIN2_VOLTAGE 2.5
178#define AD4130_AVDD_VOLTAGE 3.3
179#define AD4170_2_5V_INT_REF_VOLTAGE 2.5
180#define AD4170_1_25V_INT_REF_VOLTAGE 1.25
183#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
186#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
189#define FIRMWARE_NAME "ad4130_iio"
191#define DEVICE_NAME "DEV_AD4130"
193#if !defined(PLATFORM_NAME)
194#define PLATFORM_NAME HW_CARRIER_NAME
200#define VIRTUAL_COM_PORT_VID 0x0456
201#define VIRTUAL_COM_PORT_PID 0xb66c
203#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
206#if defined(USE_PHY_COM_PORT)
208#if (ACTIVE_IIO_CLIENT == IIO_CLIENT_REMOTE)
209#define CONSOLE_STDIO_PORT_AVAILABLE
213#define CONSOLE_STDIO_PORT_AVAILABLE
217#define IIO_UART_BAUD_RATE (230400)
struct no_os_irq_ctrl_desc * trigger_irq_desc
Definition app_config.c:103
int32_t init_system(void)
Initialize the system peripherals.
Definition app_config.c:185
struct no_os_uart_desc * uart_desc
Definition app_config.c:97
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:170
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_gpio_desc * trigger_gpio_desc
Definition app_config.c:164
struct no_os_gpio_init_param trigger_gpio_param
Definition app_config.c:98
bool is_eeprom_valid_dev_addr_detected(void)
Return the flag indicating if valid EEPROM address is detected.
Definition common.c:183
void ad4130_fifo_event_handler(void *ctx)
This is an ISR (Interrupt Service Routine) to monitor FIFO data available event. This function is exp...
Definition ad4130_iio.c:1371
uint8_t get_eeprom_detected_dev_addr(void)
Get the EEPROM device address detected by firmware.
Definition common.c:192
Header for AD4130 loadcell user configuration file.
Header for AD4130 noise test user configuration file.
Header for AD4130 power test user configuration file.
Header for AD4130 RTD user configuration file.
Header for AD4130 thermistors user configuration file.
Header for AD4130 thermocouple user configuration file.
Header for AD4130 user configuration file.
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.