diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2014-08-12 18:28:36 -0700 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2014-08-12 18:28:36 -0700 |
commit | 675350a1d69bafaf76e3723707b23ec1d2830e53 (patch) | |
tree | b16bb60d6a7eaccdde64c04fc86491be81f1438f /host/lib/usrp/common/ad9361_driver/ad9361_platform.h | |
parent | 145f1d7cf7aa94f67c7ba349e29daff9a7d85d54 (diff) | |
download | uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.tar.gz uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.tar.bz2 uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.zip |
b200, ad9361: Cleanup up AD9361 driver
- Removed transaction interface
- Made the driver a C++ class
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_platform.h')
-rw-r--r-- | host/lib/usrp/common/ad9361_driver/ad9361_platform.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_platform.h b/host/lib/usrp/common/ad9361_driver/ad9361_platform.h deleted file mode 100644 index 0444f3159..000000000 --- a/host/lib/usrp/common/ad9361_driver/ad9361_platform.h +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2014 Ettus Research LLC -// - -#ifndef INCLUDED_AD9361_PLATFORM_H -#define INCLUDED_AD9361_PLATFORM_H - -#include <stdint.h> -#include "ad9361_device.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/*! - * Get chip class from handle - */ -ad9361_device_t* get_ad9361_device(uint64_t handle); - -/*! - * Write a register in the AD9361 space - */ -void write_ad9361_reg(ad9361_device_t* device, uint32_t reg, uint8_t val); - -/*! - * Read a register from the AD9361 space - */ -uint8_t read_ad9361_reg(ad9361_device_t* device, uint32_t reg); - -/*! - * Millisecond sleep - */ -void ad9361_msleep(const uint32_t millis); - -/*! - * Pack a double into 2 uint32s - */ -void ad9361_double_pack(const double input, uint32_t output[2]); - -/*! - * Unpack 2 uint32s into a double - */ -double ad9361_double_unpack(const uint32_t input[2]); - -/*! - * Compute the square root of val - */ -double ad9361_sqrt(double val); - -/*! - * Compute the floor of val - */ -int ad9361_floor_to_int(double val); - -/*! - * Compute the ceil of val - */ -int ad9361_ceil_to_int(double val); - -#ifdef __cplusplus -} -#endif - -#endif /* INCLUDED_AD9361_PLATFORM_H */ |