|
PiImageStreamer
|


Go to the source code of this file.
Classes | |
| class | SWE4211RPi::GPIO |
| Abstract GPIO wrapper class for usage with C++. Derived classes implement the pin access for a specific library (wiringPi or lgpio). More... | |
Macros | |
| #define | NUMBER_OF_GPIO_PINS (28) |
Typedefs | |
| typedef int(* | SWE4211RPi::CallbackType) (int) |
Functions | |
| void | SWE4211RPi::myInterrupt0 () |
| void | SWE4211RPi::myInterrupt1 () |
| void | SWE4211RPi::myInterrupt2 () |
| void | SWE4211RPi::myInterrupt3 () |
| void | SWE4211RPi::myInterrupt4 () |
| void | SWE4211RPi::myInterrupt5 () |
| void | SWE4211RPi::myInterrupt6 () |
| void | SWE4211RPi::myInterrupt7 () |
| void | SWE4211RPi::myInterrupt8 () |
| void | SWE4211RPi::myInterrupt9 () |
| void | SWE4211RPi::myInterrupt10 () |
| void | SWE4211RPi::myInterrupt11 () |
| void | SWE4211RPi::myInterrupt12 () |
| void | SWE4211RPi::myInterrupt13 () |
| void | SWE4211RPi::myInterrupt14 () |
| void | SWE4211RPi::myInterrupt15 () |
| void | SWE4211RPi::myInterrupt16 () |
| void | SWE4211RPi::myInterrupt17 () |
| void | SWE4211RPi::myInterrupt18 () |
| void | SWE4211RPi::myInterrupt19 () |
| void | SWE4211RPi::myInterrupt20 () |
| void | SWE4211RPi::myInterrupt21 () |
| void | SWE4211RPi::myInterrupt22 () |
| void | SWE4211RPi::myInterrupt23 () |
| void | SWE4211RPi::myInterrupt24 () |
| void | SWE4211RPi::myInterrupt25 () |
| void | SWE4211RPi::myInterrupt26 () |
| void | SWE4211RPi::myInterrupt27 () |
| void | SWE4211RPi::myInterrupt28 () |
This code is developed as part of the MSOE SWE4211 Real Time Systems course, but can be freely used by others.
SWE4211 Real Time Systems is a required course for students studying the discipline of software engineering.
This Software is provided under the License on an "AS IS" basis and without warranties of any kind concerning the Software, including without limitation merchantability, fitness for a particular purpose, absence of defects or errors, accuracy, and non-infringement of intellectual property rights other than copyright. This disclaimer of warranty is an essential part of the License and a condition for the grant of any rights to this Software.
This file contains the abstract GPIO base class for the Raspberry Pi. This class allows a user of the Raspberry PI to readily interface with a GPIO library in an object oriented fashion in C++, invoking callbacks, and writing C++ using objects. The concrete library used (wiringPi or lgpio) is selected in GPIOcfg.h, and getInstance() returns an instance of the matching derived class (WiringPiGPIO or LgpioGPIO).
| #define NUMBER_OF_GPIO_PINS (28) |
This is the highest GPIO number supported. Arrays indexed by GPIO number are sized NUMBER_OF_GPIO_PINS + 1 so that GPIO 0 through GPIO 28 are all valid indices.
| typedef int(* SWE4211RPi::CallbackType)(int) |
This is the signature for a callback invoked when an edge occurs on a pin.
This is the signature for a callback invoked when an edge occurs on a pin. It must match the definition in GPIO.h.
| void SWE4211RPi::myInterrupt0 | ( | void | ) |
This method, and the following methods, will be invoked as ISR's when an edge transitions if edge transitions are enabled. There is one method per GPIO pin because the wiringPi ISR callback does not receive the pin number. Each method forwards the interrupt to the GPIO instance for its pin. This method indicates that a change has occurred on the given pin.
This method, and the following methods, will be invoked as ISR's when an edge transitions if edge transitions are enabled. Each forwards the interrupt to the GPIO instance for its pin, and the first time it runs it records the interrupt thread so that the thread appears in the thread diagnostic printout.


| void SWE4211RPi::myInterrupt1 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt10 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt11 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt12 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt13 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt14 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt15 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt16 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt17 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt18 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt19 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt2 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt20 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt21 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt22 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt23 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt24 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt25 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt26 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt27 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt28 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt3 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt4 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt5 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt6 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt7 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt8 | ( | void | ) |
This method indicates that a change has occurred on the given pin.


| void SWE4211RPi::myInterrupt9 | ( | void | ) |
This method indicates that a change has occurred on the given pin.

