no-OS
Macros | Functions
ad9361_util.c File Reference

AD9361 Implementation of Util Driver. More...

#include "ad9361_util.h"
#include "string.h"
#include "no_os_delay.h"
Include dependency graph for ad9361_util.c:

Macros

#define NO_OS_BITS_PER_LONG   32
 

Functions

int32_t clk_prepare_enable (struct no_os_clk *clk)
 clk_prepare_enable More...
 
uint32_t clk_get_rate (struct ad9361_rf_phy *phy, struct refclk_scale *clk_priv)
 clk_get_rate More...
 
int32_t no_os_clk_set_rate (struct ad9361_rf_phy *phy, struct refclk_scale *clk_priv, uint32_t rate)
 clk_set_rate More...
 
uint32_t int_sqrt (uint32_t x)
 int_sqrt More...
 
int32_t ilog2 (int32_t x)
 ilog2 More...
 
uint32_t find_first_bit (uint32_t word)
 find_first_bit More...
 
void * ERR_PTR (long error)
 ERR_PTR. More...
 

Detailed Description

AD9361 Implementation of Util Driver.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2013(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ NO_OS_BITS_PER_LONG

#define NO_OS_BITS_PER_LONG   32

Function Documentation

◆ clk_get_rate()

uint32_t clk_get_rate ( struct ad9361_rf_phy phy,
struct refclk_scale clk_priv 
)

clk_get_rate

Here is the caller graph for this function:

◆ clk_prepare_enable()

int32_t clk_prepare_enable ( struct no_os_clk clk)

clk_prepare_enable

◆ ERR_PTR()

void* ERR_PTR ( long  error)

ERR_PTR.

◆ find_first_bit()

uint32_t find_first_bit ( uint32_t  word)

find_first_bit

◆ ilog2()

int32_t ilog2 ( int32_t  x)

ilog2

◆ int_sqrt()

uint32_t int_sqrt ( uint32_t  x)

int_sqrt

◆ no_os_clk_set_rate()

int32_t no_os_clk_set_rate ( struct ad9361_rf_phy phy,
struct refclk_scale clk_priv,
uint32_t  rate 
)

clk_set_rate