cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

JakobVollmer
New Contributor

Hello everybody,

I have a project with my team for which we want to use the CYUSBS234 USB-SPI-Bridge. Unfortunately I only found one C ++ library for it. But we need the library for Ansi C, C # and for Windows console applications.

Are there libraries for this and if so, where can I find them?

Thank you for your feedback

Jakob

0 Likes
1 Solution
MallikaK_22
Moderator
Moderator

Hi Jakob,

We have the library files in CYUSBS234  DVK written in C++ only.

However, I'm attaching a demo project for your reference. It is written in C#. Please note this application is created for I2C. Also, this API will fail if it is configured for CDC. It has to be in vendor mode. 

Regards,

Mallika 

 

Mallika

View solution in original post

0 Likes
4 Replies
MallikaK_22
Moderator
Moderator

Hi Jakob,

We have the library files in CYUSBS234  DVK written in C++ only.

However, I'm attaching a demo project for your reference. It is written in C#. Please note this application is created for I2C. Also, this API will fail if it is configured for CDC. It has to be in vendor mode. 

Regards,

Mallika 

 

Mallika

View solution in original post

0 Likes
JakobVollmer
New Contributor
First of all, thank you for the sample program. 
Unfortunately, in my question I did not specify what we need the library for,
because we want to use the chip as a USB-SPI bridge.

Do you also have an example of an SPI program? Greetings Jakob
0 Likes
Len_CONSULTRON
Honored Contributor II

Jakob,

I don't know if this helps.  I've provided C# source code for a PC terminal (console) program.

It opens a selectable COM port at 115.2Kps 8N1.   However since I provided the source code, it can be changed.

PC-Terminal-Program-with-C-Source-Code 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
MallikaK_22
Moderator
Moderator

Hi Jakob,

Apologies but we don't have a specific example code in C# for SPI implementation. The reference project which I provided in my previous response is using the cyusbserial.dll file. You could use it as a reference for creating a wrapper dll on top of cyusbserial.dll to use in C#.

Regards,

Mallika

 

 

Mallika
0 Likes