Stellarium
0.22.2
|
Serial port connection to a Celestron NexStar or a compatible telescope.
#include <NexStarConnection.hpp>
Public Member Functions | |
NexStarConnection (Server &server, const char *serial_device) | |
void | sendGoto (unsigned int ra_int, int dec_int) |
void | sendSync (unsigned int ra_int, int dec_int) |
void | sendCommand (NexStarCommand *command) |
Public Member Functions inherited from SerialPort | |
SerialPort (Server &server, const char *serial_device) | |
Class constructor. More... | |
virtual bool | isClosed (void) const override |
Returns true if the connection is closed. More... | |
Public Member Functions inherited from Connection | |
Connection (Server &server, SOCKET fd) | |
long long int | getServerMinusClientTime (void) const |
Public Member Functions inherited from Socket | |
void | hangup () |
Additional Inherited Members | |
Protected Member Functions inherited from SerialPort | |
void | prepareSelectFds (fd_set &, fd_set &, int &) override |
Protected Member Functions inherited from Connection | |
void | performReading (void) |
Receives data from a TCP/IP connection and stores it in the read buffer. | |
void | performWriting (void) |
Sends the contents of the write buffer over a TCP/IP connection. | |
Protected Member Functions inherited from Socket | |
Socket (Server &server, SOCKET fd) | |
int | readNonblocking (void *buf, int count) |
int | writeNonblocking (const void *buf, int count) |
Protected Attributes inherited from Connection | |
char | read_buff [120] |
char * | read_buff_end |
char | write_buff [120] |
char * | write_buff_end |
Protected Attributes inherited from Socket | |
Server & | server |
SOCKET | fd |