diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-07 00:46:42 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-07 00:46:42 -0700 |
commit | b66a74ff1f629af714e26040b410d472c08be522 (patch) | |
tree | e7a60cb4e3c3d113fd081c8df0d4405eb569f3dc /host/lib/usrp/usrp2/fw_common.h | |
parent | e6151334096167d1d26609f7233105020af91f40 (diff) | |
download | uhd-b66a74ff1f629af714e26040b410d472c08be522.tar.gz uhd-b66a74ff1f629af714e26040b410d472c08be522.tar.bz2 uhd-b66a74ff1f629af714e26040b410d472c08be522.zip |
Reworked the spi part of the dboard interface.
It turns out to be more complicated.
The integer type is better for holding the bits.
The edges can be different, so the spi config hold 2 edge setting for mosi and miso.
Diffstat (limited to 'host/lib/usrp/usrp2/fw_common.h')
-rw-r--r-- | host/lib/usrp/usrp2/fw_common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/fw_common.h b/host/lib/usrp/usrp2/fw_common.h index 019f3b931..b600a2a70 100644 --- a/host/lib/usrp/usrp2/fw_common.h +++ b/host/lib/usrp/usrp2/fw_common.h @@ -110,10 +110,11 @@ typedef struct{ } dboard_ids; struct { _SINS_ uint8_t dev; - _SINS_ uint8_t edge; + _SINS_ uint8_t miso_edge; + _SINS_ uint8_t mosi_edge; _SINS_ uint8_t readback; - _SINS_ uint8_t bytes; - _SINS_ uint8_t data[sizeof(_SINS_ uint32_t)]; + _SINS_ uint32_t data; + _SINS_ uint8_t num_bits; } spi_args; struct { _SINS_ uint8_t addr; |