Instrument Neutral Distributed Interface INDI
1.9.5
|
Go to the documentation of this file.
101 bool processNumber(
const char *dev,
const char *
name,
double values[],
char *names[],
int n);
103 bool processText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n);
105 bool processBLOB(
const char *dev,
const char *
name,
int sizes[],
int blobsizes[],
char *blobs[],
106 char *formats[],
char *names[],
int n);
133 return integrationTime;
183 void setMinMaxStep(
const char *property,
const char *element,
double min,
double max,
double step,
184 bool sendToClient =
true);
244 return integrationExtention;
371 if(
DSP.get() ==
nullptr)
509 std::unique_ptr<DSP::Manager>
DSP;
520 bool callHandshake();
529 double integrationTime;
530 double startIntegrationTime;
533 bool uploadFile(
const void *fitsData,
size_t totalBytes,
bool sendIntegration,
bool saveIntegration);
534 void getMinMax(
double *
min,
double *
max, uint8_t *buf,
int len,
int bpp);
535 int getFileIndex(
const char *dir,
const char *prefix,
const char *ext);
537 bool IntegrationCompletePrivate();
538 void* sendFITS(uint8_t* buf,
int len);
virtual bool saveConfigItems(FILE *fp)
saveConfigItems Save configuration items in XML file.
uint8_t * getBuffer()
getBuffer Get raw buffer of the stream of the Sensor device.
bool updateProperties()
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
INumberVectorProperty TemperatureNP
virtual bool IntegrationComplete()
Uploads target Device exposed buffer as FITS to the client. Dervied classes should class this functio...
double getIntegrationTime() const
getIntegrationTime Get requested Integration duration for the Sensor device in seconds.
std::mutex detectorBufferLock
virtual bool StartStreaming()
StartStreaming Start live video streaming.
uint32_t GetCapability() const
GetCapability returns the Sensor capabilities.
int PortFD
For Serial & TCP connections.
The Serial class manages connection with serial devices including Bluetooth. Serial communication is ...
Connection::Serial * serialConnection
void setSensorConnection(const uint8_t &value)
setSensorConnection Set Sensor connection mode. Child class should call this in the constructor befor...
The TCP class manages connection with devices over the network via TCP/IP. Upon successfull connectio...
BLOB (Binary Large Object) vector property descriptor.
INumberVectorProperty ScopeParametersNP
void uploadFile(const char *filename)
bool processBLOB(const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
IBLOBVectorProperty FitsBP
The SensorDevice class provides functionality of a Sensor Device within a Sensor.
enum INDI::SensorInterface::@196 SensorConnection
void setBuffer(uint8_t *buffer)
setBuffer Set raw frame buffer pointer.
virtual bool AbortIntegration()
Abort ongoing Integration.
Connection::TCP * tcpConnection
ITextVectorProperty FileNameTP
bool processText(const char *dev, const char *name, char *texts[], char *names[], int n)
void setIntegrationFileExtension(const char *ext)
setIntegrationExtension Set integration exntension
bool processSwitch(const char *dev, const char *name, ISState states[], char *names[], int n)
Class to provide video streaming and recording functionality.
void setIntegrationFailed()
setIntegrationFailed Alert the client that the Integration failed.
std::unique_ptr< DSP::Manager > DSP
virtual int SetTemperature(double temperature)
Set Sensor temperature.
uint8_t getSensorConnection()
char * getIntegrationFileExtension()
ISwitchVectorProperty UploadSP
Text vector property descriptor.
std::unique_ptr< StreamManager > Streamer
ISwitchVectorProperty DatasetSP
void setIntegrationTime(double duration)
setIntegrationTime Set desired Sensor frame Integration duration for next Integration....
void setNAxis(int value)
setNAxis Set FITS number of axis
double getIntegrationLeft() const
getIntegrationLeft Get Integration time left in seconds.
Number vector property descriptor.
void setMinMaxStep(const char *property, const char *element, double min, double max, double step, bool sendToClient=true)
setMinMaxStep for a number property element
bool initProperties()
Initilize properties initial state and value. The child class must implement this function.
virtual bool StartIntegration(double duration)
Start integration from the Sensor device.
INumber ScopeParametersN[4]
virtual bool StopStreaming()
StopStreaming Stop live video streaming.
virtual void activeDevicesUpdated()
activeDevicesUpdated Inform children that ActiveDevices property was updated so they can snoop on the...
int getBPS() const
getBPS Get Sensor depth (bits per sample).
INumber FramedIntegrationN[1]
void fits_update_key_s(fitsfile *fptr, int type, std::string name, void *p, std::string explanation, int *status)
ISwitch AbortIntegrationS[1]
INumberVectorProperty FramedIntegrationNP
bool processNumber(const char *dev, const char *name, double values[], char *names[], int n)
ISwitch TelescopeTypeS[2]
ITextVectorProperty FITSHeaderTP
The DSP Namespace adds signal processing to INDI drivers. Primarily written for sensors and detectors...
double primaryFocalLength
virtual bool Handshake()
perform handshake with device to check communication
int getBufferSize() const
getContinuumBufferSize Get allocated continuum buffer size to hold the Sensor integrationd stream.
const char * getIntegrationStartTime()
getIntegrationStartTime
virtual void addFITSKeywords(fitsfile *fptr, uint8_t *buf, int len)
Add FITS keywords to a fits file.
ISwitchVectorProperty TelescopeTypeSP
void processProperties(const char *dev)
Namespace to encapsulate INDI client, drivers, and mediator classes.
INumberVectorProperty EqNP
friend class StreamManager
Misc.
ITextVectorProperty ActiveDeviceTP
void setIntegrationLeft(double duration)
setIntegrationLeft Update Integration time left. Inform the client of the new Integration time left v...
bool processSnoopDevice(XMLEle *root)
ITextVectorProperty UploadSettingsTP
enum INDI::SensorInterface::@195 SensorCapability
void SetCapability(uint32_t cap)
SetCapability Set the Sensor capabilities. Al fields must be initilized.
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
void setBPS(int bps)
setBPP Set depth of Sensor device.
One Blob (Binary Large Object) descriptor.
std::vector< uint8_t > buffer
Switch vector property descriptor.
void setBufferSize(int nbuf, bool allocMem=true)
setBufferSize Set desired buffer size. The function will allocate memory accordingly....
INumberVectorProperty LocationNP
ISwitchVectorProperty AbortIntegrationSP