#include <indioutputinterface.h>
|
| | OutputInterface (DefaultDevice *defaultDevice) |
| | OutputInterface Initiailize Output Interface.
|
| |
| | ~OutputInterface () |
| |
| void | initProperties (const char *groupName, uint8_t outputs, const std::string &prefix="Output") |
| | 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 | processSwitch (const char *dev, const char *name, ISState states[], char *names[], int n) |
| | Process switch properties.
|
| |
| bool | processText (const char *dev, const char *name, char *texts[], char *names[], int n) |
| | Process text properties.
|
| |
| bool | processNumber (const char *dev, const char *name, double values[], char *names[], int n) |
| | Process number properties.
|
| |
| bool | saveConfigItems (FILE *fp) |
| | saveConfigItems save Filter Names in config file
|
| |
Definition at line 46 of file indioutputinterface.h.
◆ OutputState
Digital Output status.
| Enumerator |
|---|
| Off | Output is off. For Relays, it is open circuit.
|
| On | Output is on. For Relays, it is closed circuit.
|
Definition at line 51 of file indioutputinterface.h.
◆ OutputInterface()
| OutputInterface::OutputInterface |
( |
DefaultDevice * |
defaultDevice | ) |
|
|
explicitprotected |
◆ ~OutputInterface()
| OutputInterface::~OutputInterface |
( |
| ) |
|
|
protected |
◆ CommandOutput()
| virtual bool INDI::OutputInterface::CommandOutput |
( |
uint32_t |
index, |
|
|
OutputState |
command |
|
) |
| |
|
pure virtual |
◆ initProperties()
| void OutputInterface::initProperties |
( |
const char * |
groupName, |
|
|
uint8_t |
outputs, |
|
|
const std::string & |
prefix = "Output" |
|
) |
| |
|
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. |
| outputs | Number of Outputs |
| prefix | Prefix used to label outputs. By default, Output #1, Output #2..etc |
Definition at line 45 of file indioutputinterface.cpp.
◆ processNumber()
| bool OutputInterface::processNumber |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
double |
values[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ processSwitch()
| bool OutputInterface::processSwitch |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
ISState |
states[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ processText()
| bool OutputInterface::processText |
( |
const char * |
dev, |
|
|
const char * |
name, |
|
|
char * |
texts[], |
|
|
char * |
names[], |
|
|
int |
n |
|
) |
| |
|
protected |
◆ saveConfigItems()
| bool OutputInterface::saveConfigItems |
( |
FILE * |
fp | ) |
|
|
protected |
saveConfigItems save Filter Names in config file
- Parameters
-
- Returns
- Always return true
Definition at line 235 of file indioutputinterface.cpp.
◆ UpdateDigitalOutputs()
| virtual bool INDI::OutputInterface::UpdateDigitalOutputs |
( |
| ) |
|
|
pure virtual |
Update all digital outputs.
- Returns
- True if operation is successful, false otherwise
- Note
- UpdateDigitalOutputs should either be called periodically in the child's TimerHit or custom timer function or when an interrupt or trigger warrants updating the digital outputs. Only updated properties that had a change in status since the last time this function was called should be sent to the clients to reduce unnecessary updates. Polling or Event driven implemetation depends on the concrete class hardware capabilities.
Implemented in IPX800, IPX800, SimulatorIO, WaveshareRelay, and PegasusUPB3.
◆ updateProperties()
| bool OutputInterface::updateProperties |
( |
| ) |
|
|
protected |
updateProperties Defines or Delete properties based on default device connection status
- Returns
- True if all is OK, false otherwise.
Definition at line 103 of file indioutputinterface.cpp.
◆ DigitalOutputLabelsTP
◆ DigitalOutputsSP
◆ m_defaultDevice
| DefaultDevice* INDI::OutputInterface::m_defaultDevice { nullptr } |
|
protected |
◆ m_DigitalOutputLabelsConfig
| bool INDI::OutputInterface::m_DigitalOutputLabelsConfig {false} |
|
protected |
◆ PulseDurationNP
The documentation for this class was generated from the following files: