precision-converters-firmware
Loading...
Searching...
No Matches
app_support.h
Go to the documentation of this file.
1/***************************************************************************/
13#ifndef AD405X_SUPPORT_H_
14#define AD405X_SUPPORT_H_
15
16/******************************************************************************/
17/***************************** Include Files **********************************/
18/******************************************************************************/
19#include <stdint.h>
20
21#include "iio.h"
22#include "app_config.h"
23#include "ad405x.h"
24
25/******************************************************************************/
26/********************** Macros and Constants Definition ***********************/
27/******************************************************************************/
28/* Timeout count to avoid stuck into potential infinite loop while checking
29 * for new data whenever the BUSY pin goes low. The actual timeout factor is determined
30 * through 'sampling_frequency' attribute of IIO app, but this period here makes sure
31 * we are not stuck into a forever loop in case data capture is interrupted
32 * or failed in between.
33 * Note: This timeout factor is dependent upon the MCU clock frequency. Below timeout
34 * is tested for SDP-K1 platform @180Mhz default core clock */
35#define BUF_READ_TIMEOUT 0xffffffff
36
37/******************************************************************************/
38/********************** Variables and User Defined Data Types *****************/
39/******************************************************************************/
42 int32_t (*submit)(struct iio_device_data *dev);
44 int32_t (*pre_enable)(void *dev, uint32_t mask);
46 int32_t (*post_disable)(void *dev);
48 int32_t (*trigger_handler)(struct iio_device_data *dev);
49};
50
51extern const struct ad405x_support_desc *support_desc[];
52
53#endif /* AD405X_SUPPORT_H_ */
const struct ad405x_support_desc * support_desc[]
Definition app_support.c:31
Configuration file of nanodac firmware example program.
Definition app_support.h:40
int32_t(* pre_enable)(void *dev, uint32_t mask)
Definition app_support.h:44
int32_t(* post_disable)(void *dev)
Definition app_support.h:46
int32_t(* submit)(struct iio_device_data *dev)
Definition app_support.h:42
int32_t(* trigger_handler)(struct iio_device_data *dev)
Definition app_support.h:48