Next:
Contents
Contents
Realtime embedded coding in C++ under Linux
Bernd Porr & Nick Bailey
Contents
Introduction
Event based coding in the Linux userspace
Writing C++ device driver classes
General recommendations on how to write your C++ classes for devices
Callbacks in C++ device classes
Creating a callback interface
Adding directly an abstract method to the device driver class
Callback arguments
Low level userspace device access
Video camera capture (openCV)
Audio (ALSA)
Bluetooth
General purpose I/O (GPIO)
SPI
I2C
Access to hardware via special devices in
/sys
Accessing physical memory locations (danger!)
Kernel driver programming
Conclusion
Threads
Introduction
Processes and Threads
Thread and worker
Creating threads
Lifetime of a thread
Running/stopping workers with endless loops
Timing within threads
Timing with Linux timers
Conclusion
Realtime/event processing within the Graphical User Interface Qt
Introduction
Callbacks in Qt
Events from widgets
Plotting realtime data arriving via a callback
Conclusion
Realtime web server/client communication
Introduction
REST
Data format: JSON
Server
Web servers (http/https)
FastCGI
Server
client
Client
server: POST
Client code: javascript for websites
Conclusion
Setters
Conclusion
License
About this document ...
github / contact