μHAL
ad9510.h
1#ifndef AD9510_H
2#define AD9510_H
3
4#include <modules/fmc_active_clk.h>
5#include <modules/spi.h>
6
7namespace ad9510 {
8
13 spi::Controller spi_regs;
14
15 fmc_active_clk::Core fac_regs;
16 mutable std::optional<struct sdb_device_info> fac_devinfo;
17
18 bool set_reg_ll(uint8_t, uint8_t);
19 bool update_parameters();
20
21 public:
22 Controller(struct pcie_bars &);
23
24 bool match_devinfo(const struct sdb_device_info &);
25 void set_devinfo(const struct sdb_device_info &);
26
27 bool get_reg(uint8_t, uint8_t &, spi::Channel = {0});
28 bool set_reg(uint8_t, uint8_t, spi::Channel = {0});
29
30 bool set_a_div(uint8_t);
31 bool set_b_div(uint16_t);
32 bool set_r_div(uint16_t);
33 bool set_defaults(spi::Channel = {0});
34};
35
36} /* namespace ad9510 */
37
38#endif
Definition: ad9510.h:12
Definition: fmc_active_clk.h:13
Definition: spi.h:36
Definition: pcie-defs.h:19
Definition: sdb-defs.h:7
Definition: spi.h:13