aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_interface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-31 17:43:20 -0700
committerJosh Blum <josh@joshknows.com>2010-03-31 17:43:20 -0700
commit38248b816c75bcf60eca69244d363cae2397ce47 (patch)
tree5d8f7880a89fe8c25e4f1af224ea048293de1bfb /host/lib/usrp/dboard_interface.cpp
parentf7867f4a510eb2b83b1a11bc3f08e3d74e6877ba (diff)
downloaduhd-38248b816c75bcf60eca69244d363cae2397ce47.tar.gz
uhd-38248b816c75bcf60eca69244d363cae2397ce47.tar.bz2
uhd-38248b816c75bcf60eca69244d363cae2397ce47.zip
Refactor ATR part of dboard interface (and some constants).
Added peek and poke to the dude/bro protocol. Started moving more control code through peek and poke. Added usrp_regs.hpp to be like memory map for slave perifs.
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
}