76 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
77 virtual bool ISNewSwitch(
const char *dev,
const char *name,
ISState *states,
char *names[],
int n)
override;
78 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
79 virtual bool ISNewBLOB(
const char *dev,
const char *name,
int sizes[],
int blobsizes[],
char *blobs[],
char *formats[],
80 char *names[],
int n)
override;
84 virtual void addFITSKeywords(fitsfile *fptr, uint8_t* buf,
int len)
override;
110 return LowCutFrequency;
119 return HighCutFrequency;
163 virtual void setMinMaxStep(
const char *property,
const char *element,
double min,
double max,
double step,
164 bool sendToClient =
true)
override;
178 double LowCutFrequency;
179 double HighCutFrequency;
The SensorDevice class provides functionality of a Sensor Device within a Sensor.
Class to provide general functionality of Monodimensional Spectrograph.
INumberVectorProperty * getSpectrographSettings()
Return Vector Info Property.
double getGain()
getGain Get requested integration gain for the sensor.
virtual bool StartIntegration(double duration) override
Start integration from the Sensor device.
void setLowCutFrequency(double freq)
setLowCutFrequency Set low cut frequency of Spectrograph device.
uint32_t GetSpectrographCapability() const
GetSpectrographCapability returns the Sensor capabilities.
double getHighCutFrequency()
getHighCutFrequency Get requested high cut frequency in Hz.
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
void SetSpectrographCapability(uint32_t cap)
SetSpectrographCapability Set the Spectrograph capabilities. Al fields must be initialized.
enum INDI::Spectrograph::@256 SpectrographCapability
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual bool ISNewBLOB(const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) override
Process the client newBLOB command.
void setGain(double gain)
setGain Set gain of Spectrograph device.
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
INumber SpectrographSettingsN[8]
@ SPECTROGRAPH_BITSPERSAMPLE
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
virtual void addFITSKeywords(fitsfile *fptr, uint8_t *buf, int len) override
Add FITS keywords to a fits file.
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
INumberVectorProperty SpectrographSettingsNP
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
void setHighCutFrequency(double freq)
setHighCutFrequency Set high cut frequency of Spectrograph device.
@ SPECTROGRAPH_MAX_CAPABILITY
double getLowCutFrequency()
getLowCutFrequency Get requested low cut frequency in Hz.
virtual void setMinMaxStep(const char *property, const char *element, double min, double max, double step, bool sendToClient=true) override
setMinMaxStep for a number property element
Class to provide video streaming and recording functionality.
Namespace to encapsulate INDI client, drivers, and mediator classes.
Number vector property descriptor.