no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ad9083.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __AD9083_H__
34#define __AD9083_H__
35
36#include "no_os_gpio.h"
37#include "no_os_spi.h"
38#include "adi_ad9083.h"
39
45 /* SPI */
47 /* GPIO reset */
49 /* GPIO power down */
51 /* Settings selection */
52 uint8_t uc;
53 /* jesd receive clock */
55};
56
61struct ad9083_phy {
62 /* SPI */
64 /* GPIO */
66 /* GPIO power down */
68 /* GPIO reference selection */
70 /* adi ad9083 device*/
71 adi_ad9083_device_t adi_ad9083;
72};
73
74/* Initialize the device. */
75int32_t ad9083_init(struct ad9083_phy **device,
77
78/* Remove the device. */
79int32_t ad9083_remove(struct ad9083_phy *device);
80
81/* Read device register. */
82int32_t ad9083_reg_get(struct ad9083_phy *device, uint32_t reg,
83 uint8_t *readval);
84
85/* Write device register. */
86int32_t ad9083_reg_set(struct ad9083_phy *device, uint32_t reg,
87 uint8_t writeval);
88
89#endif // __AD9083_H__
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int32_t ad9083_reg_set(struct ad9083_phy *device, uint32_t reg, uint8_t writeval)
Write register.
Definition ad9083.c:92
int32_t ad9083_init(struct ad9083_phy **device, struct ad9083_init_param *init_param)
Definition ad9083.c:322
int32_t ad9083_remove(struct ad9083_phy *device)
Free the resources allocated by ad9083_init().
Definition ad9083.c:419
int32_t ad9083_reg_get(struct ad9083_phy *device, uint32_t reg, uint8_t *readval)
Read register.
Definition ad9083.c:67
Header file of GPIO Interface.
Header file of SPI Interface.
Structure holding the parameters for ad9083 initialization.
Definition ad9083.h:44
uint8_t uc
Definition ad9083.h:52
struct no_os_gpio_init_param * gpio_reset
Definition ad9083.h:48
struct no_os_spi_init_param * spi_init
Definition ad9083.h:46
struct no_os_gpio_init_param * gpio_pd
Definition ad9083.h:50
struct no_os_clk * jesd_rx_clk
Definition ad9083.h:54
Structure holding ad9083 descriptor.
Definition ad9083.h:61
struct no_os_gpio_desc * gpio_ref_sel
Definition ad9083.h:69
struct no_os_gpio_desc * gpio_reset
Definition ad9083.h:65
struct no_os_spi_desc * spi_desc
Definition ad9083.h:63
struct no_os_gpio_desc * gpio_pd
Definition ad9083.h:67
adi_ad9083_device_t adi_ad9083
Definition ad9083.h:71
Definition ad9361_util.h:63
Definition no_os_clk.h:58
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128