Other Parts Discussed in Thread: USB2ANY, LMX2594
Tool/software:
Hello TI team,
I’m currently using LMX1205 with TICS Pro and a USB2ANY adapter. Using the GUI works fine, but I need to programmatically control the LMX1205 registers (read/write) from my own software.
Here’s what I’m trying to achieve:
-
Send SPI frames (3-byte register writes like
0x04 0x00 0x2D
) directly to the LMX1205 via the USB2ANY adapter. -
Do this without using the TICS Pro GUI, but from a C#/.NET application (or Python if easier).
-
Ideally, call a function like
Write_Block()
or similar that directly sends the SPI command.
I have already installed:
-
Texas Instruments USB Serial Adapter API & Tools
-
I see
TIDP.SAA.dll
andTIDP.SAA2.dll
inC:\Program Files (x86)\Texas Instruments USB Serial Adapter API\Bin
-
I also see
USB2GPIOv2.dll
which I assume is the low-level driver
I tried to reference TIDP.SAA.dll
in a .NET 8.0 console app but the compiler could not find the TIUsbAdapters
class (even though it’s mentioned in the API documentation).
So my questions are:
-
Which DLL is the correct one for programmatic access to USB2ANY in C#/.NET?
-
Is it
TIDP.SAA.dll
orTIDP.SAA2.dll
? -
Does it include
TIUsbAdapters
,Write_Block()
, etc.?
-
-
Can you provide a minimal example (C#, C++, or Python) to:
-
Discover a USB2ANY adapter
-
Open it
-
Send a simple SPI write to the LMX1205 (e.g. write to R4 =
0x002D
)
-
-
If no official .NET API is available, is there a C API (header + DLL) we can call with
DllImport
to perform SPI writes? -
Is there any existing sample code for controlling LMX devices over USB2ANY programmatically (outside of TICS Pro)?
Ultimately, my goal is to write/read LMX1205 registers over SPI in my own automated software without using the TICS GUI.
Any guidance, documentation, or sample code would be greatly appreciated!
Thanks in advance.