aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/PrinterHost/PrinterHost.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved PrinterHost demo from Incomplete to LowLevel, as it is now near-complete.Dean Camera2009-07-201-237/+0
|
* Fixed PrinterHost demo Printer_GetDeviceID() routine not removing the Device ↵Dean Camera2009-07-201-3/+3
| | | | | | ID string length from the start of the returned array (thanks to John Andrews). Fixed error in new pipe stream function template system not setting the right device token for R/W operations (also thanks to John Andrews).
* Remove ClearPipeStall routine from the StillImageHost demo, as there is now ↵Dean Camera2009-07-201-1/+1
| | | | a version of the function built into the library itself.
* Cleaner solution to the PrinterHost data send routine problem of embedded ↵Dean Camera2009-07-201-5/+9
| | | | NULLs - use a special structure to hold the data string plus the length in bytes of the data.
* Fix unfinished printer host demo - some printer languages use embedded NULLs ↵Dean Camera2009-07-201-2/+2
| | | | and so strlen() won't work in all cases. Ensure NULL terminator for the test page is not transmitted to the device.
* Don't send terminal RESET codes via serial - just set the foreground colour ↵Dean Camera2009-07-191-1/+1
| | | | and assume the user has the background set to something sane, so that the demos don't wipe out custom user terminal settings.
* Use sane ANSI terminal escape codes for the Host mode demos, so that they do ↵Dean Camera2009-07-191-18/+17
| | | | not cause eye-searing, unreadable text on terminals which parse the escape codes properly.
* Add partial project documentation to the incomplete PrinterHost demo.Dean Camera2009-07-191-23/+18
| | | | | | Change over Printer_GetDeviceID() to require a pointer to the destination buffer plus the buffer size, rather than using a pointer to a special structure. Make new Printer_SendData() function to hide the implementation of sending data to an attached printer, cleaning up the main demo source file body.
* Fix PrinterHost demo so that it will only enumerate printers with ↵Dean Camera2009-07-191-5/+28
| | | | Bidirectional protocol encapsulation. Change enumeration code to automatically select the correct alternate setting for the printer interface to select the bidirectional protocol.
* Fixed incorrect PIPE_EPNUM_MASK mask causing pipe failures on devices with ↵Dean Camera2009-07-191-5/+5
| | | | endpoint addresses of 8 and above (thanks to John Andrews).
* Magstripe Project: Ensure that empty tracks still print out a newline ↵Dean Camera2009-07-191-13/+41
| | | | | | seperator so that the host always knows what track data is being sent. Updates to PrinterHost demo to include some PCL test data plus fixes to the GetDeviceID routine.
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-131-7/+5
| | | | | | non-blocking disabling of device communications until the device has been removed (for use when an error occurs or communications with the device have completed). Changed over all host mode demos to use the new state. Added verbose documentation for each of the USB Host state machine states.
* Seperated out parts of the PrinterHost incomplete demo into a seperate Lib ↵Dean Camera2009-07-131-58/+29
| | | | | | subdirectory. Fixed Host mode to Device mode UID change not causing a USB Disconnect event when a device was connected.
* Added incomplete PrinterHost demo application.Dean Camera2009-07-111-0/+219
Seperated out Lib components of the incomplete BluetoothHost demo application out into a seperate Lib subfolder. Changed F_CLOCK entries in project makefiles to alias to F_CPU by default, as this is the most common case.