Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ad9523.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Analog Devices, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
26
27#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_AD9523_H_
28#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_AD9523_H_
29
30#include <stdbool.h>
31#include <stdint.h>
32
33#include <zephyr/device.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
46
48#define AD9523_NUM_CLK_OUT 14
49
57#define AD9523_CLK_OUT(n) ((clock_control_subsys_t)(uintptr_t)((n) + 1))
58
75
92int ad9523_get_status(const struct device *dev, struct ad9523_status *status);
93
109int ad9523_sync(const struct device *dev);
110
112
113#ifdef __cplusplus
114}
115#endif
116
117#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_AD9523_H_ */
Main header file for clock control driver API.
APIs and macros for the Zephyr device model.
int ad9523_sync(const struct device *dev)
Issue a chip-level SYNC.
int ad9523_get_status(const struct device *dev, struct ad9523_status *status)
Read back VCXO/PLL1/PLL2 lock detail.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
PLL, VCXO and VCO status, as read back from the chip.
Definition ad9523.h:60
bool vcxo_locked
True when the VCXO status bit is asserted (readback 0x22C bit 5).
Definition ad9523.h:62
bool pll2_locked
True when PLL2 lock detect is asserted (readback 0x22C bit 1).
Definition ad9523.h:66
bool pll1_bypassed
True when PLL1 is bypassed (single-loop mode).
Definition ad9523.h:71
uint32_t vco_freq
PLL2 VCO frequency in Hz, as solved at init.
Definition ad9523.h:73
bool pll1_locked
True when PLL1 lock detect is asserted (readback 0x22C bit 0).
Definition ad9523.h:64
Runtime device structure (in ROM) per driver instance.
Definition device.h:543