Alan Furman wrote:
>> From: Mike Ghan <MikeGhan_at_logix-controls.com>
>> Sent: Oct 21, 2009 7:45 PM
>> To: sftalk_at_forth.com
>> Subject: [sftalk] Re: USB from SwiftForth
>>
>> It appears an interface DLL is what you need - this might be what you're
>> looking for:
>> https://www.silabs.com/products/mcu/Pages/USBXpress.aspx
>>
>> Mike
>>
>
>
> In order to use the USBXpress DLLs, I must program the device (C8051F320) to follow the protocol expected by USBXpress: data packet size, which endpoint for which direction, proper handling of control transfers, etc. Theoretically, USBXpress could use an existing USB class, meaning that a (partial) definition of the protocol would be publicly available, but then again it could be (and likely is) a custom Windows USB driver using a "vendor-defined" class.
>
> So how do I program the device? AN169, the USBXpress Programmer's Guide,
>
> https://www.silabs.com/Support%20Documents/TechnicalDocs/an169.pdf
>
> on page 14, first paragraph, tells us The Way You Are Supposed To Do It: "The API is provided in the form of a library file precompiled under the Keil C51 tool chain. Device firmware must be developed using the Keil Sofware C51 tool chain." There does not seem to be any C source for this package provided on the development CD that I could reverse-engineer (etc.)
It seems to be a black art. SwiftX has several targets that use USB for
the XTL, but in at least some (maybe all) cases we've had to get the
cooperation of the board mfr to send us the C source for the target end
(they don't like to distribute it). It may be necessary to load the
mfr's driver somewhere and call it from Forth. I hope someone else here
is able to be more helpful.
Good luck,
Elizabeth
-- ================================================== Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310.999.6784 5959 West Century Blvd. Suite 700 Los Angeles, CA 90045 http://www.forth.com "Forth-based products and Services for real-time applications since 1973." ================================================== ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Wed Oct 21 2009 - 21:55:04 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.