|
Instrument Neutral Distributed Interface INDI 2.2.5
|
Simulation adapter for testing and development. More...
#include <gemini_flatpanel_adapters.h>
Public Member Functions | |
| GeminiFlatpanelSimulationAdapter (bool simulateRev2Features=true) | |
| bool | ping () override |
| Ping the device to check if it responds to this adapter's protocol. | |
| int | getRevision () const override |
| Get the firmware revision this adapter supports. | |
| bool | getFirmwareVersion (int *version) override |
| Get the firmware version from the device. | |
| bool | supportsBeep () const override |
| Check if device supports beep functionality. | |
| bool | supportsDustCap () const override |
| Check if device supports dust cap functionality. | |
| bool | supportsBrightnessMode () const override |
| Check if device supports brightness mode selection (high/low) | |
| bool | getConfigStatus (int *status) override |
| Get the current configuration status. | |
| bool | getBrightness (int *brightness) override |
| Get the current brightness level. | |
| bool | setBrightness (int value) override |
| Set the brightness level. | |
| bool | lightOn () override |
| Turn the light on. | |
| bool | lightOff () override |
| Turn the light off. | |
| bool | openCover () override |
| Open the dust cover. | |
| bool | closeCover () override |
| Close the dust cover. | |
| bool | getStatus (int *coverStatus, int *lightStatus, int *motorStatus) override |
| Get the current device status. | |
| bool | move (uint16_t value, int direction) override |
| Move the cover by a specified amount. | |
| bool | setClosePosition () override |
| Set the current position as the closed position. | |
| bool | setOpenPosition () override |
| Set the current position as the open position. | |
| bool | setBeep (bool enable) override |
| Enable or disable beep functionality. | |
| bool | setBrightnessMode (int mode) override |
| Set the brightness mode (high/low) | |
| char | getCommandTerminator () const override |
| Get the command terminator character for this revision. | |
| void | setupCommunication (int portFD) override |
| Set up communication parameters for this revision. | |
Public Member Functions inherited from GeminiFlatpanelAdapter | |
| virtual | ~GeminiFlatpanelAdapter ()=default |
Simulation adapter for testing and development.
This adapter simulates device behavior without requiring actual hardware. It can simulate either Rev1 or Rev2 features based on configuration.
Definition at line 658 of file gemini_flatpanel_adapters.h.
| GeminiFlatpanelSimulationAdapter::GeminiFlatpanelSimulationAdapter | ( | bool | simulateRev2Features = true | ) |
Definition at line 1622 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Close the dust cover.
Implements GeminiFlatpanelAdapter.
Definition at line 1726 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the current brightness level.
| brightness | pointer to store the brightness value (0-255) |
Implements GeminiFlatpanelAdapter.
Definition at line 1691 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the command terminator character for this revision.
Implements GeminiFlatpanelAdapter.
Definition at line 1792 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the current configuration status.
| status | pointer to store the configuration status |
Implements GeminiFlatpanelAdapter.
Definition at line 1685 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the firmware version from the device.
| version | pointer to store the firmware version |
Implements GeminiFlatpanelAdapter.
Definition at line 1658 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the firmware revision this adapter supports.
Implements GeminiFlatpanelAdapter.
Definition at line 1653 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Get the current device status.
| coverStatus | pointer to store cover status |
| lightStatus | pointer to store light status |
| motorStatus | pointer to store motor status |
Implements GeminiFlatpanelAdapter.
Definition at line 1732 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Turn the light off.
Implements GeminiFlatpanelAdapter.
Definition at line 1714 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Turn the light on.
Implements GeminiFlatpanelAdapter.
Definition at line 1708 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Move the cover by a specified amount.
| value | number of steps to move |
| direction | direction of movement (1 for open, -1 for close) |
Implements GeminiFlatpanelAdapter.
Definition at line 1740 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Open the dust cover.
Implements GeminiFlatpanelAdapter.
Definition at line 1720 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Ping the device to check if it responds to this adapter's protocol.
Implements GeminiFlatpanelAdapter.
Definition at line 1647 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Enable or disable beep functionality.
| enable | true to enable beep, false to disable |
Implements GeminiFlatpanelAdapter.
Definition at line 1765 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the brightness level.
| value | brightness value (0-255) |
Implements GeminiFlatpanelAdapter.
Definition at line 1697 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the brightness mode (high/low)
| mode | brightness mode (GEMINI_BRIGHTNESS_MODE_LOW or GEMINI_BRIGHTNESS_MODE_HIGH) |
Implements GeminiFlatpanelAdapter.
Definition at line 1776 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the current position as the closed position.
Implements GeminiFlatpanelAdapter.
Definition at line 1755 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the current position as the open position.
Implements GeminiFlatpanelAdapter.
Definition at line 1760 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set up communication parameters for this revision.
| portFD | file descriptor for the serial port |
Implements GeminiFlatpanelAdapter.
Definition at line 1798 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Check if device supports beep functionality.
Implements GeminiFlatpanelAdapter.
Definition at line 1670 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Check if device supports brightness mode selection (high/low)
Implements GeminiFlatpanelAdapter.
Definition at line 1680 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Check if device supports dust cap functionality.
Implements GeminiFlatpanelAdapter.
Definition at line 1675 of file gemini_flatpanel_adapters.cpp.