From c4632d1bc8bbb70f25295affcbced3d591ed5953 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 26 Apr 2019 15:23:51 +0200 Subject: [PATCH] xml-db: add SPI registers --- xml-db/database/SPI.xml | 89 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 xml-db/database/SPI.xml diff --git a/xml-db/database/SPI.xml b/xml-db/database/SPI.xml new file mode 100644 index 0000000..a6555be --- /dev/null +++ b/xml-db/database/SPI.xml @@ -0,0 +1,89 @@ + + + Test + + + + Data to be sent + + + + + Control Chip Select output + + + + + Control optional CLEAR output + + + + + Control SDO output + + Disable automatic control of SDO + + + Invert SDO output + + + + + Control SCK output + + Disable automatic control of SCK, set to '1' + + + Invert SCK output + + + + + Control CS output + + Disable automatic control of CS, set to '1' + + + Invert CS output + + + + + Set the number of bits in each word. Up to 32 + + + + + Period of the SPI clock in units of 20 ns + + + + + Only accesses with 'sudo' bit set are accepted + + + + + + Control registers. Read-only in xml-db because every write to any part triggers sending data. + + Number of words to be sent + + + Toggle CS after each word if enabled + + + Block SPI after sending to read back data + + + Force sending data (when sudo is active) + + + + + + -- 2.43.0