Skip to content

A portable driver for the LMS7002M dual transceiver

Notifications You must be signed in to change notification settings

xtrx-sdr/LMS7002M-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control driver for LMS7002M dual transceiver

The LMS7002M transceiver

The LMS7002M is Lime’s second-generation field programmable RF (FPRF) transceiver IC with extended functionality to cover a greater range of frequencies and applications... http://www.limemicro.com/products/field-programmable-rf-ics-lms7002m/

Driver functionality

This project contains a C driver for control of the LMS7002M transceiver. The driver provides user APIs for tuning frequencies, setting gains, setting filters, setting sample rates, setting stream modes, configuring switches, and calibration. Although this driver can select the streaming mode of the LMS7002M, it does not directly interact with receive or transmit baseband data.

Hardware independent

End applications may access the SPI bus for the LMS7002M in a variety of ways. To ensure that the driver can talk to the LMS7002M independent of the hardware, the caller provides the driver instance with SPI access callback functions. These functions implement the hardware-dependent SPI register access routines.

Using LMS7002M API

The C sources in the src/ directory can be compiled into any C or C++ project. As an alternative, the CMake build exists in the root directory to build a LMS7002M static library and to install header files. A client project can link against this library in standard fashion.

Installation instructions for XTRX

XTRX LMS7002M version use some extensions from original library. If you use LimeSDR along with XTRX it may lead to a conflict, that's why we use alternative library name 'xtrx_lms7002m'

git clone https://github.com/xtrx-sdr/LMS7002M-driver.git
cd LMS7002M-driver
mkdir build; cd build
cmake -DBUILD_SHARED_LIBS=ON -DLIB_LMS7002M_NAME="xtrx_lms7002m" ..
make -j4
sudo make install

Licensing information

Use, modification and distribution is subject to the Apache License Version 2.0. (See accompanying file LICENSE-2.0.txt or copy at https://www.apache.org/licenses/LICENSE-2.0.txt)

Project layout

  • regs/ - LMS7002M register map and register header generator
  • include/ - LMS7002M headers for C driver interface
  • src/ - LMS7002M C sources for implementation details
  • interfaces/ - example SPI interfaces for use in LMS7002M
  • evb7/ - example SoapySDR wrapper using the LMS7002M C driver
  • test/ - simple register access test using the LMS7002M C driver

References

  • Driver based on Programming and Calibration Guide v2.24.0

About

A portable driver for the LMS7002M dual transceiver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 80.4%
  • C++ 16.7%
  • CMake 1.4%
  • Python 1.4%
  • Other 0.1%