This library is heavily inspired by https://github.com/TheFidax/Rcn600/ At minimum trying to keep same interface. Main change is, that this one is developed for little more actual processor CH32V003. (with theoretical upgrade to other CH32V.. family, and some STM32.. family)
SUSI (Serial User Standard Interface) is communication standard inside locomotive (train bus) developed by Dietz Elektronik GmbH, adopted by Rail Community and NMRA.
Rail Community adopted this standard as RCN-600, NMRA adopted it as S-9.4.1 (currentely under revision).
This library allows you to use an Arduino board with chip CH32V003F4 (or similar) as a Slave for the SUSI interface.
Library tested on Nano RISC-V CH32V003 (CH32V003F4U6).
To work, you need 2 resistors 470Ω in series on the SUSI lines (Clock and Data).
On procesor CH32V003 Clock must be connicted to pin PC5 (SPI_SCK) and Data must be connected to pin PC6 (SPI_MOSI). Both pins are 5V tolerant (as requested in specification).

Simplified schematic:

The APIs for the library are in the "readme.md" file available under the folder 'src'.
Under the folder "examples" are available examples of using the library.
