#include <indiinputinterface.h>
|
| | InputInterface (DefaultDevice *defaultDevice) |
| | InputInterface Initiailize Input Interface.
|
| |
| | ~InputInterface () |
| |
| void | initProperties (const char *groupName, uint8_t digital, uint8_t analog, const std::string &digitalPrefix="Digital", const std::string &analogPrefix="Analog") |
| | Initialize filter wheel properties. It is recommended to call this function within initProperties() of your primary device.
|
| |
| bool | updateProperties () |
| | updateProperties Defines or Delete properties based on default device connection status
|
| |
| bool | processText (const char *dev, const char *name, char *texts[], char *names[], int n) |
| | Process text properties.
|
| |
| bool | saveConfigItems (FILE *fp) |
| | saveConfigItems save Filter Names in config file
|
| |
Definition at line 44 of file indiinputinterface.h.
◆ InputState
Input boolean status. This is regardless on whether Input is Active low or high. For relay, Off = Open Circuit. On = Closed Circuit
| Enumerator |
|---|
| Off | Input is off.
|
| On | Input is on.
|
Definition at line 50 of file indiinputinterface.h.
◆ InputInterface()
◆ ~InputInterface()
| InputInterface::~InputInterface |
( |
| ) |
|
|
protected |
◆ initProperties()
| void InputInterface::initProperties |
( |
const char * |
groupName, |
|
|
uint8_t |
digital, |
|
|
uint8_t |
analog, |
|
|
const std::string & |
digitalPrefix = "Digital", |
|
|
const std::string & |
analogPrefix = "Analog" |
|
) |
| |
|
protected |
Initialize filter wheel properties. It is recommended to call this function within initProperties() of your primary device.
- Parameters
-
| groupName | Group or tab name to be used to define filter wheel properties. |
| digital | Number of digital Inputs |
| analog | Number of analog Inputs |
| digitalPrefix | Prefix used to label digital Inputs. By default, Digital #1, Digital #2..etc |
| analogPrefix | Prefix used to label analog Inputs. By default, Analog #1, Analog #2..etc |
Definition at line 45 of file indiinputinterface.cpp.
◆ processText()
| bool InputInterface::processText |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
char * |
texts[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ saveConfigItems()
| bool InputInterface::saveConfigItems |
( |
FILE * |
fp | ) |
|
|
protected |
saveConfigItems save Filter Names in config file
- Parameters
-
- Returns
- Always return true
Definition at line 205 of file indiinputinterface.cpp.
◆ UpdateAnalogInputs()
| virtual bool INDI::InputInterface::UpdateAnalogInputs |
( |
| ) |
|
|
pure virtual |
Update all analog inputs.
- Returns
- True if operation is successful, false otherwise
Implemented in SimulatorIO, and WaveshareRelay.
◆ UpdateDigitalInputs()
| virtual bool INDI::InputInterface::UpdateDigitalInputs |
( |
| ) |
|
|
pure virtual |
Update all digital inputs.
- Returns
- True if operation is successful, false otherwise
Implemented in SimulatorIO, and WaveshareRelay.
◆ updateProperties()
| bool InputInterface::updateProperties |
( |
| ) |
|
|
protected |
updateProperties Defines or Delete properties based on default device connection status
- Returns
- True if all is OK, false otherwise.
Definition at line 133 of file indiinputinterface.cpp.
◆ AnalogInputLabelsTP
◆ AnalogInputsNP
◆ DigitalInputLabelsTP
◆ DigitalInputsSP
◆ m_AnalogInputLabelsConfig
| bool INDI::InputInterface::m_AnalogInputLabelsConfig {false} |
|
protected |
◆ m_defaultDevice
◆ m_DigitalInputLabelsConfig
| bool INDI::InputInterface::m_DigitalInputLabelsConfig {false} |
|
protected |
The documentation for this class was generated from the following files: