Header file of ADF4371 Driver.
More...
#include <stdint.h>
#include "no_os_spi.h"
Header file of ADF4371 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
◆ adf4371_clk_recalc_rate_chan()
| int32_t adf4371_clk_recalc_rate_chan |
( |
struct adf4371_dev * | dev, |
|
|
uint32_t | chan, |
|
|
uint64_t * | rate ) |
Recalculate rate corresponding to a channel.
- Parameters
-
| dev | - The device structure. |
| chan | - Channel number. |
| rate | - Channel rate. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ adf4371_clk_round_rate_dev()
| int32_t adf4371_clk_round_rate_dev |
( |
struct adf4371_dev * | dev, |
|
|
uint64_t | rate, |
|
|
uint64_t * | rounded_rate ) |
Calculate closest possible rate
- Parameters
-
| dev | - The device structure |
| rate | - The desired rate. |
| rounded_rate | - The closest possible rate of desired rate. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ adf4371_clk_set_rate_chan()
| int32_t adf4371_clk_set_rate_chan |
( |
struct adf4371_dev * | dev, |
|
|
uint32_t | chan, |
|
|
uint64_t | rate ) |
Set channel rate.
- Parameters
-
| dev | - The device structure. |
| chan | - Channel number. |
| rate | - Channel rate. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ adf4371_init()
Initialize the device.
- Parameters
-
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ adf4371_remove()
Remove the device - release resources.
- Parameters
-
| device | - The device structure. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ adf4371_clk_ops