CYUSBS234 Ansi C, C#, Windows Console Application

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JakobVollmer
Level 1
Level 1
First reply posted First question asked Welcome!

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
lock attach
Attachments are accessible only for community members.
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

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 

 

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

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 

 

0 Likes
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
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

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
Moderator
50 likes received 750 replies posted 250 solutions authored

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

 

 

0 Likes