CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB Composite Device

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
freesat



Joined: 08 Feb 2011
Posts: 32

View user's profile Send private message

USB Composite Device
PostPosted: Mon Aug 11, 2014 4:15 pm     Reply with quote

Hi Guys,


Im trying to make a USB composite device, but i have no success at this moment, a simple/single device i have no problems.

Does anyone have a working sample code with usb descriptor to share? or can tell me how can i do that?

Im planing to make a single device with multiple interfaces ( Keyboard + Mouse + Joystick ) for use with arcade machine.

thanks...
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Aug 11, 2014 11:19 pm     Reply with quote

You have looked at the kbmouse examples?,.
freesat



Joined: 08 Feb 2011
Posts: 32

View user's profile Send private message

PostPosted: Tue Aug 12, 2014 9:57 pm     Reply with quote

Hi Ttelmah,

i come back justo to say thanks, you realy point right direction.

i have build a composite device with mouse, keyboard and 2 joysticks, and it works very well.

Thanks!
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Aug 13, 2014 5:24 am     Reply with quote

You should consider adding your program to the 'code library' here. I'm sure others would appreciate seeing it as everything is USB these days.

jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Thu Aug 14, 2014 1:13 am     Reply with quote

I have to say 'thanks for coming back'.

It is a big 'problem' with CCS in general, that the documentation is rather 'haphazard'.
The examples are really a core part of the documentation, but they are only properly documented 'inside themselves'. So it is not (for example) obvious unless you have done it, or read the comments in the files, that the kbmouse examples are for a composite 'keyboard/mouse' device.
On CCS, you need to look at (not necessarily in this order):

1) The help file.
2) The data sheet for the device involved.
3) Kernighan & Ritchie (rather than many of the online references).
4) The readme in the compiler directory for latest changes.
5) Fuses.txt (to have a hope of working out the CCS names).
6) The include file for the processor.
7) The examples.
8) Here.

Not exactly a 'single well organised' help... Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group