|
Instrument Neutral Distributed Interface INDI 2.2.5
|
Concrete adapter implementation for Gemini Flatpanel Revision 2 firmware. More...
#include <gemini_flatpanel_adapters.h>
Public Member Functions | |
| GeminiFlatpanelRev2Adapter () | |
| 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 |
Concrete adapter implementation for Gemini Flatpanel Revision 2 firmware.
This adapter handles the specific protocol and commands for revision 2 devices:
Definition at line 351 of file gemini_flatpanel_adapters.h.
|
inline |
Definition at line 387 of file gemini_flatpanel_adapters.h.
|
overridevirtual |
Close the dust cover.
Implements GeminiFlatpanelAdapter.
Definition at line 614 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 487 of file gemini_flatpanel_adapters.cpp.
|
inlineoverridevirtual |
Get the command terminator character for this revision.
Implements GeminiFlatpanelAdapter.
Definition at line 431 of file gemini_flatpanel_adapters.h.
|
overridevirtual |
Get the current configuration status.
| status | pointer to store the configuration status |
Implements GeminiFlatpanelAdapter.
Definition at line 458 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 417 of file gemini_flatpanel_adapters.cpp.
|
inlineoverridevirtual |
Get the firmware revision this adapter supports.
Implements GeminiFlatpanelAdapter.
Definition at line 391 of file gemini_flatpanel_adapters.h.
|
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 632 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Turn the light off.
Implements GeminiFlatpanelAdapter.
Definition at line 578 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Turn the light on.
Implements GeminiFlatpanelAdapter.
Definition at line 560 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 673 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Open the dust cover.
Implements GeminiFlatpanelAdapter.
Definition at line 596 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 398 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 718 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the brightness level.
| value | brightness value (0-255) |
Implements GeminiFlatpanelAdapter.
Definition at line 516 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 730 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the current position as the closed position.
Implements GeminiFlatpanelAdapter.
Definition at line 691 of file gemini_flatpanel_adapters.cpp.
|
overridevirtual |
Set the current position as the open position.
Implements GeminiFlatpanelAdapter.
Definition at line 704 of file gemini_flatpanel_adapters.cpp.
|
inlineoverridevirtual |
Set up communication parameters for this revision.
| portFD | file descriptor for the serial port |
Implements GeminiFlatpanelAdapter.
Definition at line 435 of file gemini_flatpanel_adapters.h.
|
inlineoverridevirtual |
Check if device supports beep functionality.
Implements GeminiFlatpanelAdapter.
Definition at line 398 of file gemini_flatpanel_adapters.h.
|
inlineoverridevirtual |
Check if device supports brightness mode selection (high/low)
Implements GeminiFlatpanelAdapter.
Definition at line 406 of file gemini_flatpanel_adapters.h.
|
inlineoverridevirtual |
Check if device supports dust cap functionality.
Implements GeminiFlatpanelAdapter.
Definition at line 402 of file gemini_flatpanel_adapters.h.