aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/adi_ctrl.cpp
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2017-03-27 15:21:55 -0500
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:44 -0800
commit24f5eb8ba5fa1e49a54e813c11dc7768a0be58cf (patch)
tree2fa3694e9898f5410d10c52052c26b7de87e2a6c /mpm/lib/mykonos/adi_ctrl.cpp
parent663b7f05a31fdf2d51c4464eab48c9107498a443 (diff)
downloaduhd-24f5eb8ba5fa1e49a54e813c11dc7768a0be58cf.tar.gz
uhd-24f5eb8ba5fa1e49a54e813c11dc7768a0be58cf.tar.bz2
uhd-24f5eb8ba5fa1e49a54e813c11dc7768a0be58cf.zip
ad9371: whitespace cleanup
Diffstat (limited to 'mpm/lib/mykonos/adi_ctrl.cpp')
-rw-r--r--mpm/lib/mykonos/adi_ctrl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpm/lib/mykonos/adi_ctrl.cpp b/mpm/lib/mykonos/adi_ctrl.cpp
index 305e4f711..fb781ea4c 100644
--- a/mpm/lib/mykonos/adi_ctrl.cpp
+++ b/mpm/lib/mykonos/adi_ctrl.cpp
@@ -30,10 +30,10 @@ ad9371_spiSettings_t::ad9371_spiSettings_t(uhd::spi_iface::sptr uhd_iface) :
{
spi_settings.chipSelectIndex = 0; // set later
spi_settings.writeBitPolarity = 1; // unused
- spi_settings.longInstructionWord = 1;
- spi_settings.MSBFirst = 1;
- spi_settings.CPHA = 0;
- spi_settings.CPOL = 0;
+ spi_settings.longInstructionWord = 1;
+ spi_settings.MSBFirst = 1;
+ spi_settings.CPHA = 0;
+ spi_settings.CPOL = 0;
spi_settings.enSpiStreaming = 0; // unused
spi_settings.autoIncAddrUp = 0; // unused
spi_settings.fourWireMode = 1; // unused
@@ -143,7 +143,7 @@ commonErr_t CMB_SPIReadByte (spiSettings_t *spiSettings, uint16_t addr, uint8_t
ad9371_spiSettings_t *mpm_spi = ad9371_spiSettings_t::make(spiSettings);
uhd::spi_config_t config(_get_edge(*spiSettings));
uint32_t data_word = (0) | (addr << 8);
-
+
try {
*readdata = static_cast<uint8_t>(
mpm_spi->spi_iface->read_spi(spiSettings->chipSelectIndex, config, data_word, 24));