Skip to Content
Embedded Programming with Modern C++ Cookbook
book

Embedded Programming with Modern C++ Cookbook

by Igor Viarheichyk
April 2020
Intermediate to advanced
412 pages
9h 58m
English
Packt Publishing
Content preview from Embedded Programming with Modern C++ Cookbook

Controlling the autosuspend of USB devices

Turning an external device off is one of the most efficient ways to save power. It is, however, not always easy to understand when a device can be turned off safely. Peripheral devices such as network cards or memory cards can perform internal data processing; otherwise, the caching and powering off of the device at an arbitrary point can cause data loss.

To mitigate this problem, many external devices that are connected over the USB can switch themselves into low-power consumption mode when requested by the host. This way, they can perform all necessary steps to handle internal data safely before entering the suspended state.

Since Linux provides access to peripheral devices only through its API, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ System Programming Cookbook

C++ System Programming Cookbook

Onorato Vaticone
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 9781838821043Supplemental Content