Search found 6 matches

by Red
Wed May 12, 2010 4:49 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Re: Using SPI_Transfer() Method In C#

Hi Serg,

I have installed the latest FW "SUB-20-100120-x32.exe" and used the .dll containing the installed file instead of old one. The compiler error on SPI_Transfer() seems to be resolved.

Thank you all very much.

Regards,

Red
by Red
Wed May 12, 2010 4:38 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Re: Using SPI_Transfer() Method In C#

Hi Hugoneus, I have no problem with "SUB-20-100120-x32.exe" firmware. Because I am implementing my own code ,all I need is a working .dll file similar to sub20dnc.dll included in the "SUB-20net-1.2.4" package so I be able to import it into my project and call functions such as, SPI_Write(), SPI_Tran...
by Red
Tue May 11, 2010 10:02 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Re: Using SPI_Transfer() Method In C#

Hi Serg,

The only availabe version for download in http://www.xdimax.com/sub20/sub20.html#DLD is SUB-20net-1.2.4.zip . Please let me know where I can find the latest version of the software.

Thanks.

Red
by Red
Tue May 11, 2010 4:06 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Re: Using SPI_Transfer() Method In C#

Hi Serg, Thank you for the respond. The code you sent is not working. The Error message is :" Cannot convert from 'byte[]' to 'ref System.Array' ". I have attached the project for your reference. If you don't have any C# compiler, there is a free one available here: http://www.microsoft.com/express/...
by Red
Mon May 10, 2010 4:14 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Re: Using SPI_Transfer() Method In C#

Hi Serg, According to the definition of the SPI_Transfer() function I should pass the following to it: public bool SPI_Transfer(ref Array Buffer, int ss_pin, int ss_mode); - ref to Array Buffer - ss_pin (integer) - ss_mode (integer) I am defining an array of bytes like byte[] dataReceive = new byte[...
by Red
Sun May 09, 2010 12:35 am
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 40985

Using SPI_Transfer() Method In C#

Hi All, I have problem writing a function to read and write from SPI using SPI_Transfer(). I tried the sample code written for C#, but it was not helpful that much. Using SUB20 tool software I can communicate with my device through SPI and I want to use the same configuration in my code(C#) but I ca...