USBDevice for STM support
Dependents: Nucleo_Usb_JoyMouse Nucleo_usbmouse ELEC350_1-referral-2018-usb-hid USBJoystick_HelloWorld2_wip ... more
This library contains all mbed usb device library (mbed-os\features\unsupported\USBDevice).
Diff: USBAudio/USBAudio.h
- Branch:
- master
- Revision:
- 4:50ec00aa4515
- Parent:
- 3:d9c7334e2183
diff -r d9c7334e2183 -r 50ec00aa4515 USBAudio/USBAudio.h --- a/USBAudio/USBAudio.h Wed Feb 15 09:48:15 2017 +0100 +++ b/USBAudio/USBAudio.h Tue Mar 28 11:00:57 2017 +0200 @@ -123,11 +123,18 @@ */ bool write(uint8_t * buf); + /** Audio Jitter value*/ + enum AudioSampleCorrectType { + RemoveOneSample = -1, + NoCorrection = 0, + AddOneSample = 1 + }; /** * Write packet in endpoint fifo. assuming tx fifo is empty * @param buf pointer on the audio packet which will be sent - */ - void writeSync(uint8_t *buf); + * @param jitter_nb : AudioSampleCorrecttype + **/ + void writeSync(uint8_t *buf, AudioSampleCorrectType jitter_nb = NoCorrection ); /** * Write and read an audio packet at the same time (on the same frame)