USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.
Dependencies: FATFileSystem mbed-rtos
Dependents: BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more
Legacy Warning
This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.
Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.
Diff: USBHostSerial/USBHostSerial.h
- Revision:
- 7:e7e63ac7ae5f
- Parent:
- 4:b320d68e98e7
- Child:
- 8:93da8ea2708b
--- a/USBHostSerial/USBHostSerial.h Wed Mar 13 15:43:54 2013 +0000 +++ b/USBHostSerial/USBHostSerial.h Wed Mar 13 17:30:42 2013 +0000 @@ -104,7 +104,18 @@ } } - void baud(int baudrate); + /** Set the baud rate of the serial port + * + * @param baudrate The baudrate of the serial port (default = 9600). + */ + void baud(int baudrate = 9600); + + /** Set the transmission format used by the Serial port + * + * @param bits The number of bits in a word (default = 8) + * @param parity The parity used (USBHostSerial::None, USBHostSerial::Odd, USBHostSerial::Even, USBHostSerial::Mark, USBHostSerial::Space; default = USBHostSerial::None) + * @param stop The number of stop bits (1 or 2; default = 1) + */ void format(int bits = 8, Parity parity = USBHostSerial::None, int stop_bits = 1);