Generic peripheral base.
#include <srl_input.hpp>
Public Member Functions | |
| PeripheralFamily | GetFamily () const |
| Gets connected peripheral type family. | |
| PeripheralType | GetType () const |
| Gets connected peripheral type. | |
| virtual bool | IsConnected () const |
| Indicates whether peripheral is connected or not. | |
Public Attributes | |
| uint8_t | Port = 0 |
| Port number peripheral is connected to. | |
Protected Member Functions | |
| PeripheralGeneric (uint8_t port) | |
| Generic peripheral. | |
| PerDigital * | GetCurrentFrameState () const |
| Get state of the peripheral in the current frame. | |
| PerDigital * | GetPreviousFrameState () const |
| Get state of the peripheral in the previous frame. | |