no-OS
Loading...
Searching...
No Matches
basic_example.c File Reference

Basic example implementation for ADMT4000. More...

#include "basic_example.h"
#include "common_data.h"
#include "admt4000.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
#include "no_os_uart.h"
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for basic_example.c:

Functions

int example_main ()
 Basic example main function.
 

Detailed Description

Basic example implementation for ADMT4000.

Author
Kister Genesis Jimenez (kiste.nosp@m.r.ji.nosp@m.menez.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ example_main()

int example_main ( void )

Basic example main function.

Basic example main execution.

Basic example main executiont.

This example demonstrates basic ADMT4000 functionality by continuously reading sensor values and displaying them on the console.

Returns
0 in case of success, negative error code otherwise.

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

GPIO Pin Interrupt Controller