This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LMX1205: How to programmatically control LMX1205 via USB2ANY API (DLL or .NET library)?

Part Number: LMX1205
Other Parts Discussed in Thread: USB2ANY

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 and TIDP.SAA2.dll in C:\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:

  1. Which DLL is the correct one for programmatic access to USB2ANY in C#/.NET?

    • Is it TIDP.SAA.dll or TIDP.SAA2.dll?

    • Does it include TIUsbAdapters, Write_Block(), etc.?

  2. 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)

  3. If no official .NET API is available, is there a C API (header + DLL) we can call with DllImport to perform SPI writes?

  4. 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.