![]() |
no-OS
|
Voltage input with interrupt example code for ad74416h-pmdz project. More...
#include "common_data.h"#include "ad74416h.h"#include "no_os_delay.h"#include "no_os_print_log.h"#include "no_os_gpio.h"#include "no_os_irq.h"#include <math.h>Functions | |
| void | adc_rdy_event_handler () |
| int | gpio_adc_rdy_init () |
| int | example_main () |
| Voltage input irq example main execution. | |
Variables | |
| struct no_os_gpio_desc * | adc_rdy_gpio_desc |
| struct no_os_irq_ctrl_desc * | adc_rdy_irq_desc |
| struct ad74416h_desc * | ad74416h_desc |
| volatile uint8_t | send_result_to_uart = 0 |
| volatile uint32_t | adc_value = 0 |
Voltage input with interrupt example code for ad74416h-pmdz project.
Copyright 2025(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| void adc_rdy_event_handler | ( | ) |
| int example_main | ( | void | ) |
Voltage input irq example main execution.
Basic example main execution.
Basic example main executiont.
IIO descriptor and initialization parameter.
IIO app.
Declaring iio_devices structure
Initializing IIO app init param.
Initializing IIO app.
Running the IIO app (use iio_info or osc in terminal).
Set the threshold voltage to 5V
The comparator output will be available on the GPO_A pin
Set the DAC output on channel C to 5V
Measure input current on channel D
| int gpio_adc_rdy_init | ( | ) |
| struct ad74416h_desc* ad74416h_desc |
| struct no_os_gpio_desc* adc_rdy_gpio_desc |
| struct no_os_irq_ctrl_desc* adc_rdy_irq_desc |
| volatile uint32_t adc_value = 0 |
| volatile uint8_t send_result_to_uart = 0 |