Peripheral management.
#include <srl_input.hpp>
Static Public Member Functions | |
static uint8_t | FindNthConnectedPeripheral (const uint8_t &index) |
Find port number of nth connected peripheral. | |
static PeripheralFamily | GetFamily (const uint8_t &port) |
Gets connected peripheral type family to specified port. | |
static PerDigital * | GetRawData (const uint8_t &port) |
Get the Raw port data. | |
static PeripheralType | GetType (const uint8_t &port) |
Gets connected peripheral type to specified port. | |
static bool | IsConnected (const uint8_t &port) |
Checks whether any peripheral is connected to specified port. | |
static void | RefreshPeripherals () |
Refresh peripherals. | |
Static Public Attributes | |
static const uint8_t | MaxPeripherals = 12 |
Maximal number of connected devices. | |
|
inlinestatic |
Find port number of nth connected peripheral.
index | Index of the peripheral |
|
inlinestatic |
Gets connected peripheral type family to specified port.
port | Peripheral port |
|
inlinestatic |
Get the Raw port data.
port | Port index |
|
inlinestatic |
Gets connected peripheral type to specified port.
port | Peripheral port |
|
inlinestatic |
Checks whether any peripheral is connected to specified port.
port | Peripheral port |
|
inlinestatic |
Refresh peripherals.