no-OS
Classes | Macros | Functions
ad9081.h File Reference

Header file of AD9081 Driver. More...

#include <stdbool.h>
#include <stdint.h>
#include "no-os/clk.h"
#include "no-os/spi.h"
#include "no-os/gpio.h"
#include "adi_ad9081.h"
Include dependency graph for ad9081.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ad9081_jesd_link
 
struct  dac_settings_cache
 
struct  ad9081_phy
 
struct  link_init_param
 
struct  ad9081_init_param
 

Macros

#define MAX_NUM_MAIN_DATAPATHS   4
 
#define MAX_NUM_CHANNELIZER   8
 

Functions

int32_t ad9081_init (struct ad9081_phy **device, const struct ad9081_init_param *init_param)
 
int32_t ad9081_remove (struct ad9081_phy *device)
 
void ad9081_work_func (struct ad9081_phy *phy)
 

Detailed Description

Header file of AD9081 Driver.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2020(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ MAX_NUM_CHANNELIZER

#define MAX_NUM_CHANNELIZER   8

◆ MAX_NUM_MAIN_DATAPATHS

#define MAX_NUM_MAIN_DATAPATHS   4

Function Documentation

◆ ad9081_init()

int32_t ad9081_init ( struct ad9081_phy **  dev,
const struct ad9081_init_param init_param 
)

Initialize the device.

Parameters
dev- The device structure.
init_param- The structure that contains the device initial parameters.
Returns
SUCCESS in case of success, negative error code otherwise.
Here is the caller graph for this function:

◆ ad9081_remove()

int32_t ad9081_remove ( struct ad9081_phy dev)

Remove the device - release resources.

Parameters
dev- The device structure.
Returns
SUCCESS in case of success, negative error code otherwise.

◆ ad9081_work_func()

void ad9081_work_func ( struct ad9081_phy phy)