Example program for EVAL-AD4130

Dependencies:   tempsensors sdp_k1_sdram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.c Source File

main.c

Go to the documentation of this file.
00001 /***************************************************************************//**
00002  *   @file    main.c
00003  *   @brief   Main module for AD4130 IIO application
00004  *   @details This module invokes the AD4130 IIO interfaces
00005  *            through forever loop.
00006 ********************************************************************************
00007  * Copyright (c) 2020, 2022 Analog Devices, Inc.
00008  *
00009  * All rights reserved.
00010  *
00011  * This software is proprietary to Analog Devices, Inc. and its licensors.
00012  * By using this software you agree to the terms of the associated
00013  * Analog Devices Software License Agreement.
00014 *******************************************************************************/
00015 
00016 /******************************************************************************/
00017 /***************************** Include Files **********************************/
00018 /******************************************************************************/
00019 #include <stdio.h>
00020 #include <stdint.h>
00021 
00022 #include "ad4130_iio.h"
00023 
00024 /******************************************************************************/
00025 /********************** Macros and Constants Definitions **********************/
00026 /******************************************************************************/
00027 
00028 /******************************************************************************/
00029 /************************ Functions Definitions *******************************/
00030 /******************************************************************************/
00031 
00032 /**
00033  * @brief   Main entry point to application
00034  * @return  none
00035  */
00036 int main(void)
00037 {
00038     /* Initialize the AD4130 IIO interface */
00039     if (ad4130_iio_initialize()) {
00040         printf("IIO initialization failure!!\r\n");
00041     }
00042 
00043     while (1) {
00044         /* Monitor the IIO client events */
00045         ad4130_iio_event_handler();
00046     }
00047 }