Skip to main content

Object-Oriented Techniques for Microcontrollers

  • Chapter
  • First Online:
Real-Time C++
  • 4911 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Notes

  1. 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. 2.

    In the example here, however, simplified interrupt attributes have been used for the sake of clarity.

  3. 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

  1. M. Cline, Parashift C++ FAQ (2012), http://www.parashift.com/c++-faq

  2. J.O. Coplien, Advanced C++ Programming Styles and Idioms (Addison Wesley, Reading, 1992)

    Google Scholar 

  3. B. Dawes, D. Abrahams, Boost C++ Libraries (2012), http://www.boost.org

  4. B. Eckel, Thinking in C++ Volume 1: Introduction to Standard C++, 2nd edn. (Pearson Prentice Hall, Upper Saddle River, 2000)

    Google Scholar 

  5. E. Gamma, R. Helm, R. Johnson, J. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software (Addison Wesley, Reading, 1994)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. S. Meyers, Effective C++: 55 Specific Ways to Improve Your Programs and Designs, 3rd edn. (Addison Wesley, Reading, 2005)

    Google Scholar 

  8. Programming Research Group, High-Integrity C++ Coding Standard Manual (2007), http://www.codingstandard.com/HICPPCM/index.html

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics