Abstract
Object-oriented programs are built from various class objects that intuitively embody the application through their actions and interrelations among each other. This chapter introduces object-oriented C++ methods in the domain of embedded systems programming using classes for LEDs, PWM signal generators and communication interfaces.
Notes
- 1.
This code does not yet make use of the runtime virtual function mechanism. We will re-examine this example in association with dynamic polymorphism and the runtime virtual function mechanism in Sect. 4.4.
- 2.
In the example here, however, simplified interrupt attributes have been used for the sake of clarity.
- 3.
Factories are described in good design books such as [5]. In addition, Sect. 5.9 in this book uses a simple factory to introduce variadic templates.
References
M. Cline, Parashift C++ FAQ (2012), http://www.parashift.com/c++-faq
J.O. Coplien, Advanced C++ Programming Styles and Idioms (Addison Wesley, Reading, 1992)
B. Dawes, D. Abrahams, Boost C++ Libraries (2012), http://www.boost.org
B. Eckel, Thinking in C++ Volume 1: Introduction to Standard C++, 2nd edn. (Pearson Prentice Hall, Upper Saddle River, 2000)
E. Gamma, R. Helm, R. Johnson, J. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software (Addison Wesley, Reading, 1994)
ISO, ISO 11898–1:2003: Road vehicles—Controller area network (CAN)—Part 1: Data Link Layer and Physical Signaling (International Organization for Standardization, Geneva, 2003)
S. Meyers, Effective C++: 55 Specific Ways to Improve Your Programs and Designs, 3rd edn. (Addison Wesley, Reading, 2005)
Programming Research Group, High-Integrity C++ Coding Standard Manual (2007), http://www.codingstandard.com/HICPPCM/index.html
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Kormanyos, C. (2013). Object-Oriented Techniques for Microcontrollers. In: Real-Time C++. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-34688-0_4
Download citation
DOI: https://doi.org/10.1007/978-3-642-34688-0_4
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-34687-3
Online ISBN: 978-3-642-34688-0
eBook Packages: Computer ScienceComputer Science (R0)