uhd/firmware/fx2
Thomas Tsou b3a092055a usrp1: Add SPI transaction command to FX2 firmware
The existing SPI read command is set for half-duplex 8-bit
or 16-bit writes followed by an equivalent sized read.
This patch adds a new command, VRQ_SPI_TRANSACT, which
performs a full-duplex transaction up to 4-bytes. Since the
data buffer of the USB control transfer is not available
for outbound data on IN requests, the 4 bytes of write data
are sent through the request parameters. Enables are sent
in the previsouly unused high byte of the length parameter.
The USB field mappings are shown below. Only rising edge
and MSB operation is supported.

Field (8-bit)           Description
=====                   =====
bmRequestType           0x80 (USB Device IN request)
bRequest                0x83 (VRQ_SPI_TRANSACT)
wValueH                 OUT data(0)
wValueL                 OUT data(1)
wIndexH                 OUT data(2)
wIndexL                 OUT data(3)
wLengthH                SPI enables
wLengthL                Number of bytes to transfer (1-4)

EP0BUF                  IN data
2010-08-13 17:54:01 -07:00
..
config usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
include usrp1: Add SPI transaction command to FX2 firmware 2010-08-13 17:54:01 -07:00
lib usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
src usrp1: Add SPI transaction command to FX2 firmware 2010-08-13 17:54:01 -07:00
.gitignore usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
AUTHORS usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
bootstrap usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
ChangeLog usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
configure.ac usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
COPYING usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
Makefile.am usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
Makefile.common usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
NEWS usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00
README usrp1: Add FX2 firmware files 2010-08-13 12:25:36 -07:00