no-OS
Loading...
Searching...
No Matches
iio_ad4080.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __IIO_AD4080_H__
35#define __IIO_AD4080_H__
36#include <stddef.h>
37#include <errno.h>
38#include "no_os_irq.h"
39#include "iio.h"
40#include "iio_types.h"
41#include "ad4080.h"
42
43#define AD4080_IIO_APP_DEVICE_NAME_LEN 16
44
45/* Developer notes. We pattern a 15 second around the Max32665 Fthr which has
46 * a core clock of 96Mhz or ~10.4ns.
47 */
48#define AD4080_FIFO_TIMEOUT 1440000000
49
65
78
89
93int iio_ad4080_init(struct iio_ad4080_desc **iio_ad4080,
95
99void iio_ad4080_fini(struct iio_ad4080_desc *iio_ad4080);
100
104int ad4080_device(struct iio_ad4080_desc *iio_ad4080,
105 struct ad4080_dev **ad4080);
106
110int ad4080_iio_device(struct iio_ad4080_desc *iio_ad4080,
111 struct iio_device *iio_device);
112
113#endif /* _IIO_AD4080_H__ */
Header file of AD4080 Driver.
Error macro definition for ARM Compiler.
Header file of iio.
void iio_ad4080_fini(struct iio_ad4080_desc *iio_ad4080)
teardown the ad4080 IIO driver
Definition iio_ad4080.c:1798
#define AD4080_IIO_APP_DEVICE_NAME_LEN
Definition iio_ad4080.h:43
int iio_ad4080_init(struct iio_ad4080_desc **iio_ad4080, struct iio_ad4080_init_param *iio_ad4080_init_param)
Initializes the IIO AD4080 descriptor.
Definition iio_ad4080.c:1740
int ad4080_iio_device(struct iio_ad4080_desc *iio_ad4080, struct iio_device *iio_device)
Initializes the IIO device structure for the AD4080 device.
Definition iio_ad4080.c:1658
int ad4080_device(struct iio_ad4080_desc *iio_ad4080, struct ad4080_dev **ad4080)
Checks if the given pointer is a valid AD4080 IIO descriptor.
Definition iio_ad4080.c:1643
Header file for iio_types.
Header file of IRQ interface.
ad4080 Device structure.
Definition ad4080.h:289
Definition iio_ad4080.h:69
struct ad4080_dev * ad4080
Definition iio_ad4080.h:70
struct iio_ad4080_fifo_struct fifo
Definition iio_ad4080.h:71
char app_device_name[AD4080_IIO_APP_DEVICE_NAME_LEN]
Definition iio_ad4080.h:75
struct no_os_gpio_desc * afe_ctrl
Definition iio_ad4080.h:72
uint32_t app_device_count
Definition iio_ad4080.h:74
unsigned long sampling_frequency_idx
Definition iio_ad4080.h:76
Definition iio_ad4080.h:53
size_t formatted_bufsize
Definition iio_ad4080.h:63
size_t watermark
Definition iio_ad4080.h:59
struct no_os_irq_ctrl_desc * irq_desc
Definition iio_ad4080.h:56
uint8_t * raw_fifo
Definition iio_ad4080.h:60
struct ad4080_dev * ad4080
Definition iio_ad4080.h:54
size_t i_gp
Definition iio_ad4080.h:57
struct no_os_gpio_desc * ff_full
Definition iio_ad4080.h:55
size_t bufsize
Definition iio_ad4080.h:61
uint32_t * formatted_fifo
Definition iio_ad4080.h:62
Structure holding the AD4080 IIO initialization parameter.
Definition iio_ad4080.h:82
struct ad4080_init_param * ad4080_init_param
Definition iio_ad4080.h:83
struct no_os_gpio_init_param * afe_ctrl_init_param
Definition iio_ad4080.h:85
struct no_os_gpio_init_param * ff_full_init_param
Definition iio_ad4080.h:84
size_t i_gp
Definition iio_ad4080.h:86
size_t watermark
Definition iio_ad4080.h:87
Structure holding channels and attributes of a device.
Definition iio_types.h:239
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Definition no_os_irq.h:117