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 "jesd204.h"
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.
SPDX-License-Identifier: BSD-3-Clause
◆ AD9081_FFH_CHAN_SEL_1GPIO_MODE
| #define AD9081_FFH_CHAN_SEL_1GPIO_MODE 1 /* 1: profile_pins[0] is used. Pin level control {3'b0, profile_pins[0]} */ |
◆ AD9081_FFH_CHAN_SEL_2GPIO_MODE
| #define AD9081_FFH_CHAN_SEL_2GPIO_MODE 2 /* 2: profile_pins[1 :0] are used. Pin level control {2'b0, profile_pins[1:0]} */ |
◆ AD9081_FFH_CHAN_SEL_3GPIO_MODE
| #define AD9081_FFH_CHAN_SEL_3GPIO_MODE 3 /* 3: profile_pins[2 :0] are used. Pin level control {1'b0, profile_pins[2:0]} */ |
◆ AD9081_FFH_CHAN_SEL_4GPIO_MODE
| #define AD9081_FFH_CHAN_SEL_4GPIO_MODE 4 /* 4: profile_pins[3 :0] are used. Pin level control { profile_pins[3:0]} */ |
◆ AD9081_FFH_CHAN_SEL_FHT_EXP_MODE
| #define AD9081_FFH_CHAN_SEL_FHT_EXP_MODE 12 /* 12: FHT expire based control - increment internal counter when FHT is expired. */ |
◆ AD9081_FFH_CHAN_SEL_GPIO0_EDGE_MODE
| #define AD9081_FFH_CHAN_SEL_GPIO0_EDGE_MODE 8 /* 8: profile_pins[0] Pin edge control- increment internal counter when rising edge of profile_pins[0] Pin. */ |
◆ AD9081_FFH_CHAN_SEL_GPIO1_EDGE_MODE
| #define AD9081_FFH_CHAN_SEL_GPIO1_EDGE_MODE 9 /* 9: profile_pins[1] Pin edge control- increment internal counter when rising edge of profile_pins[1] Pin. */ |
◆ AD9081_FFH_CHAN_SEL_GPIO2_EDGE_MODE
| #define AD9081_FFH_CHAN_SEL_GPIO2_EDGE_MODE 10 /* 10: profile_pins[2] Pin edge control- increment internal counter when rising edge of profile_pins[2] Pin. */ |
◆ AD9081_FFH_CHAN_SEL_GPIO3_EDGE_MODE
| #define AD9081_FFH_CHAN_SEL_GPIO3_EDGE_MODE 11 /* 11: profile_pins[3] Pin edge control- increment internal counter when rising edge of profile_pins[3] Pin. */ |
◆ AD9081_FFH_CHAN_SEL_REG_MODE
| #define AD9081_FFH_CHAN_SEL_REG_MODE 0 /* 0: Register Map control (Use ddc_nco_regmap_chan_sel) */ |
◆ AD9081_PERI_SEL_GPIO10
| #define AD9081_PERI_SEL_GPIO10 6 |
◆ AD9081_PERI_SEL_GPIO6
| #define AD9081_PERI_SEL_GPIO6 2 |
◆ AD9081_PERI_SEL_GPIO7
| #define AD9081_PERI_SEL_GPIO7 3 |
◆ AD9081_PERI_SEL_GPIO8
| #define AD9081_PERI_SEL_GPIO8 4 |
◆ AD9081_PERI_SEL_GPIO9
| #define AD9081_PERI_SEL_GPIO9 5 |
◆ AD9081_PERI_SEL_SYNCINB1_N
| #define AD9081_PERI_SEL_SYNCINB1_N 8 |
◆ AD9081_PERI_SEL_SYNCINB1_P
| #define AD9081_PERI_SEL_SYNCINB1_P 7 |
◆ DEFRAMER_LINK0_TX
| #define DEFRAMER_LINK0_TX 0 |
◆ DEFRAMER_LINK1_TX
| #define DEFRAMER_LINK1_TX 1 |
◆ FRAMER_LINK0_RX
| #define FRAMER_LINK0_RX 2 |
◆ FRAMER_LINK1_RX
| #define FRAMER_LINK1_RX 3 |
◆ MAX_NUM_CHANNELIZER
| #define MAX_NUM_CHANNELIZER 8 |
◆ MAX_NUM_MAIN_DATAPATHS
| #define MAX_NUM_MAIN_DATAPATHS 4 |
◆ ad9081_init()
Initialize the device.
- Parameters
-
| dev | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad9081_remove()
Remove the device - release resources.
- Parameters
-
| dev | - The device structure. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad9081_work_func()