TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
Lx Class Reference

#include <Lx.h>

Collaboration diagram for Lx:
Collaboration graph

Public Member Functions

bool isEnabled ()
 
void setCamerafd (int fd)
 
bool initProperties (INDI::DefaultDevice *device)
 
bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 
bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 
bool updateProperties ()
 
bool startLx ()
 
int stopLx ()
 
unsigned int getLxmode ()
 

Public Attributes

ISwitch LxEnableS [2]
 
ISwitchVectorProperty LxEnableSP
 
ISwitch LxModeS [LXMODENUM]
 
ISwitchVectorProperty LxModeSP
 
IText LxPortT [1]
 
ITextVectorProperty LxPortTP
 
ISwitch LxSerialOptionS [3]
 
ISwitchVectorProperty LxSerialOptionSP
 
ISwitch LxParallelOptionS [9]
 
ISwitchVectorProperty LxParallelOptionSP
 
IText LxStartStopCmdT [2]
 
ITextVectorProperty LxStartStopCmdTP
 
ISwitch LxLogicalLevelS [2]
 
ISwitchVectorProperty LxLogicalLevelSP
 
ISwitch LxSerialSpeedS [9]
 
ISwitchVectorProperty LxSerialSpeedSP
 
ISwitch LxSerialSizeS [4]
 
ISwitchVectorProperty LxSerialSizeSP
 
ISwitch LxSerialParityS [3]
 
ISwitchVectorProperty LxSerialParitySP
 
ISwitch LxSerialStopS [2]
 
ISwitchVectorProperty LxSerialStopSP
 
ISwitch LxSerialAddeolS [4]
 
ISwitchVectorProperty LxSerialAddeolSP
 

Private Types

enum  pwcledmethod { PWCIOCTL, FLASHLED }
 

Private Member Functions

void closeserial (int fd)
 
int openserial (char *devicename)
 
int setRTS (int fd, int level)
 
int setDTR (int fd, int level)
 
bool startLxSerial ()
 
int stopLxSerial ()
 
void getSerialOptions (unsigned int *speed, unsigned int *wordsize, unsigned int *parity, unsigned int *stops)
 
const char * getSerialEOL ()
 
INDI::PropertyfindbyLabel (INDI::DefaultDevice *dev, char *label)
 
bool checkPWC ()
 
void pwcsetLed (int on, int off)
 
void pwcsetflashon ()
 
void pwcsetflashoff ()
 
bool startLxPWC ()
 
int stopLxPWC ()
 

Private Attributes

INDI::DefaultDevicedev
 
const char * device_name
 
int camerafd
 
int serialfd
 
struct termios oldterminfo
 
ISwitchVectorPropertyFlashStrobeSP
 
ISwitchVectorPropertyFlashStrobeStopSP
 
char ledmethod
 
struct pwc_probe probe
 

Member Enumeration Documentation

◆ pwcledmethod

enum Lx::pwcledmethod
private
Enumerator
PWCIOCTL 
FLASHLED 

Member Function Documentation

◆ checkPWC()

bool Lx::checkPWC ( )
private

◆ closeserial()

void Lx::closeserial ( int  fd)
private

◆ findbyLabel()

INDI::Property * Lx::findbyLabel ( INDI::DefaultDevice dev,
char *  label 
)
private

◆ getLxmode()

unsigned int Lx::getLxmode ( )

◆ getSerialEOL()

const char * Lx::getSerialEOL ( )
private

◆ getSerialOptions()

void Lx::getSerialOptions ( unsigned int *  speed,
unsigned int *  wordsize,
unsigned int *  parity,
unsigned int *  stops 
)
private

◆ initProperties()

bool Lx::initProperties ( INDI::DefaultDevice device)

◆ isEnabled()

bool Lx::isEnabled ( )

◆ ISNewSwitch()

bool Lx::ISNewSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 
)

◆ ISNewText()

bool Lx::ISNewText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 
)

◆ openserial()

int Lx::openserial ( char *  devicename)
private

◆ pwcsetflashoff()

void Lx::pwcsetflashoff ( )
private

◆ pwcsetflashon()

void Lx::pwcsetflashon ( )
private

◆ pwcsetLed()

void Lx::pwcsetLed ( int  on,
int  off 
)
private

◆ setCamerafd()

void Lx::setCamerafd ( int  fd)

◆ setDTR()

int Lx::setDTR ( int  fd,
int  level 
)
private

◆ setRTS()

int Lx::setRTS ( int  fd,
int  level 
)
private

◆ startLx()

bool Lx::startLx ( )

◆ startLxPWC()

bool Lx::startLxPWC ( )
private

◆ startLxSerial()

bool Lx::startLxSerial ( )
private

◆ stopLx()

int Lx::stopLx ( )

◆ stopLxPWC()

int Lx::stopLxPWC ( )
private

◆ stopLxSerial()

int Lx::stopLxSerial ( )
private

◆ updateProperties()

bool Lx::updateProperties ( )

Member Data Documentation

◆ camerafd

int Lx::camerafd
private

◆ dev

INDI::DefaultDevice* Lx::dev
private

◆ device_name

const char* Lx::device_name
private

◆ FlashStrobeSP

ISwitchVectorProperty* Lx::FlashStrobeSP
private

◆ FlashStrobeStopSP

ISwitchVectorProperty* Lx::FlashStrobeStopSP
private

◆ ledmethod

char Lx::ledmethod
private

◆ LxEnableS

ISwitch Lx::LxEnableS[2]

◆ LxEnableSP

ISwitchVectorProperty Lx::LxEnableSP

◆ LxLogicalLevelS

ISwitch Lx::LxLogicalLevelS[2]

◆ LxLogicalLevelSP

ISwitchVectorProperty Lx::LxLogicalLevelSP

◆ LxModeS

ISwitch Lx::LxModeS[LXMODENUM]

◆ LxModeSP

ISwitchVectorProperty Lx::LxModeSP

◆ LxParallelOptionS

ISwitch Lx::LxParallelOptionS[9]

◆ LxParallelOptionSP

ISwitchVectorProperty Lx::LxParallelOptionSP

◆ LxPortT

IText Lx::LxPortT[1]

◆ LxPortTP

ITextVectorProperty Lx::LxPortTP

◆ LxSerialAddeolS

ISwitch Lx::LxSerialAddeolS[4]

◆ LxSerialAddeolSP

ISwitchVectorProperty Lx::LxSerialAddeolSP

◆ LxSerialOptionS

ISwitch Lx::LxSerialOptionS[3]

◆ LxSerialOptionSP

ISwitchVectorProperty Lx::LxSerialOptionSP

◆ LxSerialParityS

ISwitch Lx::LxSerialParityS[3]

◆ LxSerialParitySP

ISwitchVectorProperty Lx::LxSerialParitySP

◆ LxSerialSizeS

ISwitch Lx::LxSerialSizeS[4]

◆ LxSerialSizeSP

ISwitchVectorProperty Lx::LxSerialSizeSP

◆ LxSerialSpeedS

ISwitch Lx::LxSerialSpeedS[9]

◆ LxSerialSpeedSP

ISwitchVectorProperty Lx::LxSerialSpeedSP

◆ LxSerialStopS

ISwitch Lx::LxSerialStopS[2]

◆ LxSerialStopSP

ISwitchVectorProperty Lx::LxSerialStopSP

◆ LxStartStopCmdT

IText Lx::LxStartStopCmdT[2]

◆ LxStartStopCmdTP

ITextVectorProperty Lx::LxStartStopCmdTP

◆ oldterminfo

struct termios Lx::oldterminfo
private

◆ probe

struct pwc_probe Lx::probe
private

◆ serialfd

int Lx::serialfd
private

The documentation for this class was generated from the following files: