Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
app/ad4130_iio.h@2:7b2b268ea49c, 22 months ago (annotated)
- Committer:
- Mahesh Phalke
- Date:
- Wed Jul 20 18:12:00 2022 +0530
- Revision:
- 2:7b2b268ea49c
Initial firmware commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mahesh Phalke |
2:7b2b268ea49c | 1 | /***************************************************************************//** |
Mahesh Phalke |
2:7b2b268ea49c | 2 | * @file ad4130_iio.h |
Mahesh Phalke |
2:7b2b268ea49c | 3 | * @brief Header file of AD4130 IIO interface |
Mahesh Phalke |
2:7b2b268ea49c | 4 | ******************************************************************************** |
Mahesh Phalke |
2:7b2b268ea49c | 5 | * Copyright (c) 2020, 2022 Analog Devices, Inc. |
Mahesh Phalke |
2:7b2b268ea49c | 6 | * |
Mahesh Phalke |
2:7b2b268ea49c | 7 | * All rights reserved. |
Mahesh Phalke |
2:7b2b268ea49c | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Mahesh Phalke |
2:7b2b268ea49c | 9 | * By using this software you agree to the terms of the associated |
Mahesh Phalke |
2:7b2b268ea49c | 10 | * Analog Devices Software License Agreement. |
Mahesh Phalke |
2:7b2b268ea49c | 11 | *******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 12 | #ifndef AD4130_IIO_H_ |
Mahesh Phalke |
2:7b2b268ea49c | 13 | #define AD4130_IIO_H_ |
Mahesh Phalke |
2:7b2b268ea49c | 14 | |
Mahesh Phalke |
2:7b2b268ea49c | 15 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 16 | /***************************** Include Files **********************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 17 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 18 | |
Mahesh Phalke |
2:7b2b268ea49c | 19 | #include <stdio.h> |
Mahesh Phalke |
2:7b2b268ea49c | 20 | #include <stdbool.h> |
Mahesh Phalke |
2:7b2b268ea49c | 21 | #include "iio.h" |
Mahesh Phalke |
2:7b2b268ea49c | 22 | #include "iio_types.h" |
Mahesh Phalke |
2:7b2b268ea49c | 23 | |
Mahesh Phalke |
2:7b2b268ea49c | 24 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 25 | /****************************** Macros ****************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 26 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 27 | |
Mahesh Phalke |
2:7b2b268ea49c | 28 | /* ADC channels assigned to sensors for the measurement |
Mahesh Phalke |
2:7b2b268ea49c | 29 | * (each channel per sensor) */ |
Mahesh Phalke |
2:7b2b268ea49c | 30 | enum sensor_channels { |
Mahesh Phalke |
2:7b2b268ea49c | 31 | SENSOR_CHANNEL0, |
Mahesh Phalke |
2:7b2b268ea49c | 32 | SENSOR_CHANNEL1, |
Mahesh Phalke |
2:7b2b268ea49c | 33 | NUM_OF_SENSOR_CHANNELS |
Mahesh Phalke |
2:7b2b268ea49c | 34 | }; |
Mahesh Phalke |
2:7b2b268ea49c | 35 | |
Mahesh Phalke |
2:7b2b268ea49c | 36 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 37 | /************************ Public Declarations *********************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 38 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 39 | |
Mahesh Phalke |
2:7b2b268ea49c | 40 | /* Init the IIO interface */ |
Mahesh Phalke |
2:7b2b268ea49c | 41 | int32_t ad4130_iio_initialize(void); |
Mahesh Phalke |
2:7b2b268ea49c | 42 | |
Mahesh Phalke |
2:7b2b268ea49c | 43 | /* Run the IIO event handler */ |
Mahesh Phalke |
2:7b2b268ea49c | 44 | void ad4130_iio_event_handler(void); |
Mahesh Phalke |
2:7b2b268ea49c | 45 | |
Mahesh Phalke |
2:7b2b268ea49c | 46 | extern struct ad413x_dev *ad4130_dev_inst; |
Mahesh Phalke |
2:7b2b268ea49c | 47 | |
Mahesh Phalke |
2:7b2b268ea49c | 48 | #endif /* AD4130_IIO_H_ */ |