|
PiImageStreamer
|
#include "GPIOcfg.h"#include "WiringPiGPIO.h"#include <wiringPi.h>#include <time.h>#include <pthread.h>#include "GenericThreadInfo.h"#include <sys/syscall.h>#include <unistd.h>
Macros | |
| #define | WIRING_PI (1) |
| #define | LGPIO (2) |
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 () |
Variables | |
| static std::mutex | SWE4211RPi::cmtx |
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 wiringPi implementation of the GPIO wrapper class for the Raspberry Pi. It also contains the per-pin ISR functions that wiringPi calls when an edge occurs.
| 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.


|
static |
This mutex serializes the constructor, so that library initialization and updates to the GPIO instance table are not interleaved between threads. The instance table itself is GPIO::gpio_instances, declared in GPIO.h.