precision-converters-firmware
Loading...
Searching...
No Matches
Macros | Variables
ad405x_support.c File Reference

Implementation of AD405x support functions. More...

#include <stdint.h>
#include <stdbool.h>
#include "iio.h"
#include "iio_trigger.h"
#include "app_support.h"
#include "ad405x_iio.h"
#include "ad405x_user_config.h"
#include "no_os_error.h"
Include dependency graph for ad405x_support.c:

Macros

#define MAX_LOCAL_BUF_SIZE   64000
 
#define MAX_DMA_NDTR   (no_os_min(65535, MAX_LOCAL_BUF_SIZE/2))
 

Variables

uint8_t local_buf [MAX_LOCAL_BUF_SIZE]
 
struct iio_hw_trig * ad405x_hw_trig_desc
 
uint8_t bytes_per_sample
 
const struct ad405x_support_desc ad405x_support_descriptor
 

Detailed Description

Implementation of AD405x support functions.

This module has all the support file necessary for working of AD405x

Copyright (c) 2025 Analog Devices, Inc.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ MAX_DMA_NDTR

#define MAX_DMA_NDTR   (no_os_min(65535, MAX_LOCAL_BUF_SIZE/2))

◆ MAX_LOCAL_BUF_SIZE

#define MAX_LOCAL_BUF_SIZE   64000

Variable Documentation

◆ ad405x_hw_trig_desc

struct iio_hw_trig* ad405x_hw_trig_desc
extern

◆ ad405x_support_descriptor

const struct ad405x_support_desc ad405x_support_descriptor
Initial value:
= {
.submit = ad405x_submit_windowed,
.pre_enable = ad405x_pre_enable_windowed,
.post_disable = ad405x_post_disable_windowed,
.trigger_handler = NULL
}

◆ bytes_per_sample

uint8_t bytes_per_sample
extern

◆ local_buf

uint8_t local_buf[MAX_LOCAL_BUF_SIZE]