Example Program for EVAL-AD7606

Dependencies:   platform_drivers

Committer:
Kjansen45
Date:
Mon Oct 19 07:54:56 2020 +0000
Revision:
5:42b1eeef29d9
Parent:
1:819ac9aa5667
Child:
6:32de160dce43
Repository update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mahphalke 1:819ac9aa5667 1 /***************************************************************************//**
mahphalke 1:819ac9aa5667 2 * @file iio_ad7606.h
mahphalke 1:819ac9aa5667 3 * @brief Header file of iio_ad7606
mahphalke 1:819ac9aa5667 4 ********************************************************************************
mahphalke 1:819ac9aa5667 5 * Copyright (c) 2020 Analog Devices, Inc.
mahphalke 1:819ac9aa5667 6 *
mahphalke 1:819ac9aa5667 7 * All rights reserved.
mahphalke 1:819ac9aa5667 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
mahphalke 1:819ac9aa5667 9 * By using this software you agree to the terms of the associated
mahphalke 1:819ac9aa5667 10 * Analog Devices Software License Agreement.
mahphalke 1:819ac9aa5667 11 *******************************************************************************/
mahphalke 1:819ac9aa5667 12 #ifndef IIO_AD7606_H_
mahphalke 1:819ac9aa5667 13 #define IIO_AD7606_H_
mahphalke 1:819ac9aa5667 14
mahphalke 1:819ac9aa5667 15 /******************************************************************************/
mahphalke 1:819ac9aa5667 16 /***************************** Include Files **********************************/
mahphalke 1:819ac9aa5667 17 /******************************************************************************/
mahphalke 1:819ac9aa5667 18
mahphalke 1:819ac9aa5667 19 #include <stdio.h>
mahphalke 1:819ac9aa5667 20 #include <stdbool.h>
mahphalke 1:819ac9aa5667 21 #include "iio.h"
mahphalke 1:819ac9aa5667 22 #include "iio_types.h"
mahphalke 1:819ac9aa5667 23
mahphalke 1:819ac9aa5667 24 /******************************************************************************/
mahphalke 1:819ac9aa5667 25 /****************************** Macros ****************************************/
mahphalke 1:819ac9aa5667 26 /******************************************************************************/
mahphalke 1:819ac9aa5667 27
mahphalke 1:819ac9aa5667 28 /******************************************************************************/
mahphalke 1:819ac9aa5667 29 /*************************** Types Declarations *******************************/
mahphalke 1:819ac9aa5667 30 /******************************************************************************/
mahphalke 1:819ac9aa5667 31
mahphalke 1:819ac9aa5667 32 /**
mahphalke 1:819ac9aa5667 33 * @struct iio_ad7606_init_param
mahphalke 1:819ac9aa5667 34 * @brief Device configuration structure.
mahphalke 1:819ac9aa5667 35 */
mahphalke 1:819ac9aa5667 36 struct iio_ad7606_init_param {
mahphalke 1:819ac9aa5667 37 /** ad7606 device instance pointer */
mahphalke 1:819ac9aa5667 38 struct ad7606_dev *ad7606_phy;
mahphalke 1:819ac9aa5667 39 };
mahphalke 1:819ac9aa5667 40
mahphalke 1:819ac9aa5667 41 /**
mahphalke 1:819ac9aa5667 42 * @struct iio_ad7606_desc
mahphalke 1:819ac9aa5667 43 * @brief Structure holding IIO descriptor.
mahphalke 1:819ac9aa5667 44 */
mahphalke 1:819ac9aa5667 45 struct iio_ad7606_desc {
mahphalke 1:819ac9aa5667 46 /** iio_interface instance pointer */
mahphalke 1:819ac9aa5667 47 struct iio_interface *iio_interface;
mahphalke 1:819ac9aa5667 48 };
mahphalke 1:819ac9aa5667 49
mahphalke 1:819ac9aa5667 50 /******************************************************************************/
mahphalke 1:819ac9aa5667 51 /************************ Functions Declarations ******************************/
mahphalke 1:819ac9aa5667 52 /******************************************************************************/
mahphalke 1:819ac9aa5667 53
mahphalke 1:819ac9aa5667 54 /* Init AD7606 IIO interface */
mahphalke 1:819ac9aa5667 55 int32_t iio_ad7606_init(struct iio_ad7606_desc **desc,
mahphalke 1:819ac9aa5667 56 struct iio_ad7606_init_param *init);
mahphalke 1:819ac9aa5667 57
mahphalke 1:819ac9aa5667 58 /* Free the resources allocated for IIO device */
mahphalke 1:819ac9aa5667 59 int32_t iio_ad7606_remove(struct iio_ad7606_desc *desc);
mahphalke 1:819ac9aa5667 60
mahphalke 1:819ac9aa5667 61 /* Init the IIO interface */
mahphalke 1:819ac9aa5667 62 int32_t ad7606_iio_initialize(void);
mahphalke 1:819ac9aa5667 63
mahphalke 1:819ac9aa5667 64 /* Run the IIO event handler */
mahphalke 1:819ac9aa5667 65 void ad7606_iio_event_handler(void);
mahphalke 1:819ac9aa5667 66
mahphalke 1:819ac9aa5667 67 /* Init the IIO application */
mahphalke 1:819ac9aa5667 68 int32_t ad7606_app_initialize(void);
mahphalke 1:819ac9aa5667 69
mahphalke 1:819ac9aa5667 70 #endif /* IIO_AD7606_H_ */