Instrument Neutral Distributed Interface INDI
1.9.5
|
Go to the documentation of this file.
29 #include <libnova/julian_day.h>
30 #include <libnova/ln_types.h>
31 #include <libnova/precession.h>
120 char *formats[],
char *names[],
int n)
122 return processBLOB(dev,
name, sizes, blobsizes, blobs, formats, names, n);
127 Bandwidth = bandwidth;
202 sprintf(fitsString,
"%d",
getBPS());
209 fits_update_key_s(fptr, TSTRING,
"FREQ", fitsString,
"Center Frequency", &status);
214 sprintf(fitsString,
"%lf",
getGain());
bool updateProperties()
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
INumberVectorProperty TemperatureNP
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.
double getGain()
getGain Get requested integration gain for the sensor.
void IUUpdateMinMax(const INumberVectorProperty *nvp)
Function to update the min and max elements of a number in the client.
Implementations for common driver routines.
void setBandwidth(double bandwidth)
setBandwidth Set bandwidth of Receiver device.
double getSampleRate()
getSampleRate Get requested sample rate for the sensor in Hz.
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
void IUFillNumber(INumber *np, const char *name, const char *label, const char *format, double min, double max, double step, double value)
Assign attributes for a number property. The number's auxiliary elements will be set to NULL.
void defineProperty(INumberVectorProperty *property)
const char * MAIN_CONTROL_TAB
MAIN_CONTROL_TAB Where all the primary controls for the device are located.
bool processBLOB(const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
const char * getDeviceName() const
void setMinMaxStep(const char *property, const char *element, double min, double max, double step, bool sendToClient=true)
setMinMaxStep for a number property element
void setSampleRate(double sr)
setSampleRate Set depth of Receiver device.
bool processText(const char *dev, const char *name, char *texts[], char *names[], int n)
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
bool processSwitch(const char *dev, const char *name, ISState states[], char *names[], int n)
double getBandwidth()
getBandwidth Get requested integration bandwidth for the sensor in Hz.
Number vector property descriptor.
virtual uint16_t getDriverInterface() override
void setMinMaxStep(const char *property, const char *element, double min, double max, double step, bool sendToClient=true)
setMinMaxStep for a number property element
void IUFillNumberVector(INumberVectorProperty *nvp, INumber *np, int nnp, const char *dev, const char *name, const char *label, const char *group, IPerm p, double timeout, IPState s)
Assign attributes for a number vector property. The vector's auxiliary elements will be set to NULL.
bool initProperties()
Initilize properties initial state and value. The child class must implement this function.
INumber ReceiverSettingsN[7]
int getBPS() const
getBPS Get Sensor depth (bits per sample).
void fits_update_key_s(fitsfile *fptr, int type, std::string name, void *p, std::string explanation, int *status)
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
void SetReceiverCapability(uint32_t cap)
SetReceiverCapability Set the Receiver capabilities. Al fields must be initilized.
INumberVectorProperty FramedIntegrationNP
INumberVectorProperty ReceiverSettingsNP
INumber * IUFindNumber(const INumberVectorProperty *nvp, const char *name)
Find an INumber member in a number text property.
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
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 ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual void addFITSKeywords(fitsfile *fptr, uint8_t *buf, int len)
Add FITS keywords to a fits file.
void setFrequency(double freq)
setFrequency Set the frequency observed.
void processProperties(const char *dev)
Namespace to encapsulate INDI client, drivers, and mediator classes.
double getFrequency()
getFrequency Get requested integration frequency for the sensor in Hz.
#define DEBUGF(priority, msg,...)
void setGain(double gain)
setGain Set gain of Receiver device.
bool processSnoopDevice(XMLEle *root)
void SetCapability(uint32_t cap)
SetCapability Set the Sensor capabilities. Al fields must be initilized.
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
Process the client newSwitch command.
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
virtual bool deleteProperty(const char *propertyName)
Delete a property and unregister it. It will also be deleted from all clients.
void void void IDSetNumber(const INumberVectorProperty *n, const char *msg,...) ATTRIBUTE_FORMAT_PRINTF(2
Tell client to update an existing number vector property.
void setDriverInterface(uint16_t value)
setInterface Set driver interface. By default the driver interface is set to GENERAL_DEVICE....
virtual bool StartIntegration(double duration) override
Start integration from the Sensor device.