I am wondering if an ATMEL micro controller such as an ATMEGA8 or ATTINY2313 has libraries to interact with a computer (windows OS) over USB? If so is there any premade libraries that does the bulk of the coding work for me? I would be using the Atmel Studio IDE for programming. If possible is there separate libraries for keyboard events/interaction, and raw USB interaction which software running on the OS can capture. A bonus would be an example of how to capture raw usb messages from my device in simple software on windows.
My next question is, is it possible to run native windows code directly from the micro controller. I am lead to believe it is not possible since in order to interact with the windows API which I want, you would need to have a windows compiled binary with the API library on your device and somehow run it from memory or the like.
Thanks for any answers you can supply me with.