no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ad9553.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef AD9553_H_
34#define AD9553_H_
35
36#include "no_os_spi.h"
37
38#define AD9553_SPI_CONFIG 0x000
39#define AD9553_PLL_CHARGE_PUMP_PFD_CTRL 0x00B
40#define AD9553_PLL_CTRL 0x00D
41#define AD9553_P1_DIV_HIGH 0x015
42#define AD9553_P1_DIV_LOW_P2_DIV_HIGH 0x016
43#define AD9553_P2_DIV_LOW 0x017
44#define AD9553_P0_DIV 0x018
45#define AD9553_N_DIV_HIGH 0x012
46#define AD9553_N_DIV_MEDIUM 0x013
47#define AD9553_N_DIV_LOW 0x014
48#define AD9553_REFA_DIV_HIGH 0x01F
49#define AD9553_REFA_DIV_LOW 0x020
50#define AD9553_K_VALUE 0x021
51#define AD9553_REFA_DIFF 0x029
52#define AD9553_OUT1_DRIVER_CTRL 0x032
53#define AD9553_OUT2_DRIVER_CTRL 0x034
54#define AD9553_IO_UPDATE 0x005
55
57 /* SPI */
59};
60
61struct ad9553_dev {
62 /* SPI */
64};
65
66int32_t ad9553_reg_read(struct ad9553_dev *dev, uint16_t reg_addr,
67 uint8_t *reg_data);
68
69int32_t ad9553_reg_write(struct ad9553_dev *dev, uint16_t reg_addr,
70 uint8_t reg_data);
71
72int32_t ad9553_setup(struct ad9553_dev **device,
73 const struct ad9553_init_param *init_param);
74
75int32_t ad9553_remove(struct ad9553_dev *dev);
76
77#endif
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int32_t ad9553_reg_write(struct ad9553_dev *dev, uint16_t reg_addr, uint8_t reg_data)
Write to the ad9553 that is conected to the SPI.
Definition ad9553.c:80
int32_t ad9553_setup(struct ad9553_dev **device, const struct ad9553_init_param *init_param)
Setup the working parameters of the ad9553 chip.
Definition ad9553.c:103
int32_t ad9553_reg_read(struct ad9553_dev *dev, uint16_t reg_addr, uint8_t *reg_data)
Reads from the ad9553 that is contected to the SPI.
Definition ad9553.c:49
int32_t ad9553_remove(struct ad9553_dev *dev)
Free the resources allocated by ad9553_setup().
Definition ad9553.c:227
Header file of SPI Interface.
Definition ad9553.h:61
struct no_os_spi_desc * spi_desc
Definition ad9553.h:63
Definition ad9553.h:56
struct no_os_spi_init_param spi_init
Definition ad9553.h:58
Definition ad9361_util.h:63
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128