Analog Devices / Mbed OS EVAL-AD4696

Dependencies:   platform_drivers

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 AD4696 IIO application
00004  *   @details This module invokes the AD4696 IIO interfaces
00005  *            through forever loop.
00006 ********************************************************************************
00007  * Copyright (c) 2021 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 <stdint.h>
00020 #include <assert.h>
00021 
00022 #include "iio_ad4696.h"
00023 #include "error.h"
00024 
00025 /******************************************************************************/
00026 /********************** Macros and Constants Definitions **********************/
00027 /******************************************************************************/
00028 
00029 /******************************************************************************/
00030 /************************ Functions Definitions *******************************/
00031 /******************************************************************************/
00032 
00033 /**
00034  * @brief   Main entry point to application
00035  * @return  none
00036  */
00037 int main(void)
00038 {
00039     /* Initialize the AD4696 IIO interface */
00040     if (ad4696_iio_initialize() == FAILURE) {
00041         assert(false);
00042     }
00043     
00044     while (1) {
00045         /* Monitor the IIO client events */
00046         ad4696_iio_event_handler();
00047     }
00048 }
00049