aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_interface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-01 15:16:29 +0000
committerJosh Blum <josh@joshknows.com>2010-04-01 15:16:29 +0000
commit8fd3ce07369a7962dc8eb5ace2007a80ad7dd907 (patch)
treebb4f5c61f8a7809af1c58d5513dc6c3e78c7a5b2 /host/lib/usrp/dboard_interface.cpp
parent58d71729716a688af36ba4a413e6f6ee4729eefc (diff)
parentf1f4865119605c66ffece113a621308d82512d23 (diff)
downloaduhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.tar.gz
uhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.tar.bz2
uhd-8fd3ce07369a7962dc8eb5ace2007a80ad7dd907.zip
Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e
Conflicts: host/include/uhd/usrp/CMakeLists.txt
Diffstat (limited to 'host/lib/usrp/dboard_interface.cpp')
-rw-r--r--host/lib/usrp/dboard_interface.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/host/lib/usrp/dboard_interface.cpp b/host/lib/usrp/dboard_interface.cpp
index f6d6b6456..c40c9b398 100644
--- a/host/lib/usrp/dboard_interface.cpp
+++ b/host/lib/usrp/dboard_interface.cpp
@@ -29,26 +29,25 @@ dboard_interface::~dboard_interface(void){
void dboard_interface::write_spi(
spi_dev_t dev,
- spi_push_t push,
+ spi_edge_t edge,
const byte_vector_t &buf
){
- transact_spi(dev, SPI_LATCH_RISE, push, buf, false); //dont readback
+ transact_spi(dev, edge, buf, false); //dont readback
}
dboard_interface::byte_vector_t dboard_interface::read_spi(
spi_dev_t dev,
- spi_latch_t latch,
+ spi_edge_t edge,
size_t num_bytes
){
byte_vector_t buf(num_bytes, 0x00); //dummy data
- return transact_spi(dev, latch, SPI_PUSH_RISE, buf, true); //readback
+ return transact_spi(dev, edge, buf, true); //readback
}
dboard_interface::byte_vector_t dboard_interface::read_write_spi(
spi_dev_t dev,
- spi_latch_t latch,
- spi_push_t push,
+ spi_edge_t edge,
const byte_vector_t &buf
){
- return transact_spi(dev, latch, push, buf, true); //readback
+ return transact_spi(dev, edge, buf, true); //readback
}