ice.</li>
<li><p>app_usb_device_thread_media_write used to write data through DMA into the mass storage device.</p></li>
</ul>
<p>The thread app_ux_device_thread_entry is responsible to start or stop the USB device. At Run mode the thread will be waiting on message queue form USB_PD interface, when the USB device is plugged to host PC a callback in USB_PD interface will send a message to app_ux_device_thread_entry to start the USB device. By the same way when the USB device is unplug a callback in USB_PD in