TwiceAsNice  2019-02-18
Macros | Functions | Variables
indi_rtlsdr_detector.cpp File Reference
#include "indi_rtlsdr_detector.h"
#include <unistd.h>
#include <indilogger.h>
#include <libdspau.h>
#include <memory>
Include dependency graph for indi_rtlsdr_detector.cpp:

Macros

#define MAX_TRIES   20
 
#define MAX_DEVICES   4
 
#define SUBFRAME_SIZE   256
 
#define SAMPLE_RATE   10000
 

Functions

static void cleanup ()
 
void ISInit ()
 Send client definitions of all properties. More...
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int num)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int num)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int num)
 
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...
 

Variables

static int iNumofConnectedDetectors
 
static RTLSDRreceivers [MAX_DEVICES]
 

Macro Definition Documentation

◆ MAX_DEVICES

#define MAX_DEVICES   4

◆ MAX_TRIES

#define MAX_TRIES   20

◆ SAMPLE_RATE

#define SAMPLE_RATE   10000

◆ SUBFRAME_SIZE

#define SUBFRAME_SIZE   256

Function Documentation

◆ cleanup()

static void cleanup ( )
static

◆ ISInit()

void ISInit ( void  )

Send client definitions of all properties.

◆ ISNewNumber()

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

Variable Documentation

◆ iNumofConnectedDetectors

int iNumofConnectedDetectors
static

◆ receivers

RTLSDR* receivers[MAX_DEVICES]
static