WiiRd forum

USB Gecko Related => USB Gecko Dev => Topic started by: Nuke on June 09, 2009, 05:06:25 AM

Title: USB Gecko C# example
Post by: Nuke on June 09, 2009, 05:06:25 AM
Hi,

for those who code in C# here is a USB Gecko code example project i coded, this shows how to use the ftdi chip in C#

It was my first ever program written in C#, so go easy on me :)

love the language though and think its great for GUI stuff.

http://www.usbgecko.com/newrip.zip (http://www.usbgecko.com/newrip.zip)

project was made/compiled in visual studio 2005, but should import to any version higher

Title: Re: USB Gecko C# example
Post by: REDSOXROX on June 10, 2009, 12:08:28 AM
It worked fine in my Visual Studio C# 2008 Ed.
The program looks really nice :D
Does it work yet? My guess would be in the Gecko menu?

I started learning C# awhile ago, I also really like it for GUI, I haven't been able to program for awhile though :mad:
Title: Re: USB Gecko C# example
Post by: Link on June 10, 2009, 09:55:54 AM
I was thinking some time ago.. I did learn C# some time ago. WiiRd uses one communication library to communicate with the USB Gecko. This library does everything (usbgecko.pas) - I guess I could port this to C# if there is interest though!
Title: Re: USB Gecko C# example
Post by: Panda On Smack on June 10, 2009, 07:51:35 PM
I'm interested!

ta
Title: Re: USB Gecko C# example
Post by: Link on June 22, 2009, 01:38:47 PM
So well.. I finally had some time to recheck the code.. well, C# progress is fine.. I implemented the core functions and already one user function.. which is a complicated one: the dump!

right now its syntax would be:


public void Dump(UInt32 startdump,UInt32 enddump, Stream saveStream) { }

So a basic call would be Dump(0x80000000,0x80400000,fileToSaveTo);


The reason I went for dump is simple. It is a quite complicated, yet absolutely important function. It has the strongest communication part with the Wii console:

So well.. that's the truth behind the dump command for those who didn't know it.. and well..that command being a core command is working. If anyone wants to get a glance at the current communication library with the dump example. Sure!
Title: Re: USB Gecko C# example
Post by: Nuke on July 02, 2009, 08:11:19 AM
The biggest thing i'd like to see is the debugger improved, rewrote to C#.

How about i come up with some bounty source thing, so we can make this happen and i fund it?

I want to try pick up USB Gecko, and i think the only way i can do this, is either hire coders so i can focus on support or do it as a collaboration community thing and i fund it.

i'm open to suggestions.
Title: Re: USB Gecko C# example
Post by: Nuke on July 15, 2009, 10:20:00 AM
made a start on this now.
Title: Re: USB Gecko C# example
Post by: Panda On Smack on July 15, 2009, 10:52:33 AM
Nice one!
Title: Re: USB Gecko C# example
Post by: Nuke on July 15, 2009, 04:22:12 PM
btw Link if you finished that function, i'd be happy to put it on the new site as an example of using C# with USB Gecko.

Title: Re: USB Gecko C# example
Post by: Link on July 16, 2009, 11:58:39 AM
Sure, I'll get the code asap (when I am at home)
Title: Re: USB Gecko C# example
Post by: Nuke on July 20, 2009, 05:35:45 AM
thanks buddy.
Title: Re: USB Gecko C# example
Post by: Link on July 20, 2009, 06:33:47 AM
Contains dump function.. I hope I'll get around porting more functions but for now that's it!

http://l0nk.org/GeckoTest.7z (http://l0nk.org/GeckoTest.7z)