TwiceAsNice  2019-02-18
Macros | Functions
steeldrive.cpp File Reference
#include "steeldrive.h"
#include "indicom.h"
#include <cmath>
#include <memory>
#include <cstring>
#include <termios.h>
#include <unistd.h>
Include dependency graph for steeldrive.cpp:

Macros

#define STEELDRIVE_MAX_RETRIES   1
 
#define STEELDRIVE_TIMEOUT   1
 
#define STEELDRIVE_MAXBUF   16
 
#define STEELDRIVE_CMD   9
 
#define STEELDRIVE_CMD_LONG   11
 
#define STEELDRIVE_TEMPERATURE_FREQ   20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */
 
#define STEELDIVE_POSITION_THRESHOLD   5 /* Only send position updates to client if the diff exceeds 5 steps */
 
#define FOCUS_SETTINGS_TAB   "Settings"
 

Functions

std::unique_ptr< SteelDrivesteelDrive (new SteelDrive())
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
void ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Update data of an existing blob vector property. More...
 
void ISSnoopDevice (XMLEle *root)
 Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More...
 

Macro Definition Documentation

◆ FOCUS_SETTINGS_TAB

#define FOCUS_SETTINGS_TAB   "Settings"

◆ STEELDIVE_POSITION_THRESHOLD

#define STEELDIVE_POSITION_THRESHOLD   5 /* Only send position updates to client if the diff exceeds 5 steps */

◆ STEELDRIVE_CMD

#define STEELDRIVE_CMD   9

◆ STEELDRIVE_CMD_LONG

#define STEELDRIVE_CMD_LONG   11

◆ STEELDRIVE_MAX_RETRIES

#define STEELDRIVE_MAX_RETRIES   1

◆ STEELDRIVE_MAXBUF

#define STEELDRIVE_MAXBUF   16

◆ STEELDRIVE_TEMPERATURE_FREQ

#define STEELDRIVE_TEMPERATURE_FREQ   20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */

◆ STEELDRIVE_TIMEOUT

#define STEELDRIVE_TIMEOUT   1

Function Documentation

◆ ISNewNumber()

void ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)

◆ steelDrive()

std::unique_ptr<SteelDrive> steelDrive ( new   SteelDrive())