|
| | ngcdcsSRV () |
| | Constructors.
|
| |
| | ngcdcsSRV (ngcdcsCTRL *controller) |
| | Constructors with controller object.
|
| |
| virtual | ~ngcdcsSRV () |
| | Destructor.
|
| |
| int | EvtAddWait (int fd, int id) |
| | Add event waiting client.
|
| |
| int | CfgPath (char *path, const char *cfgFile) |
| | Get cfg-file path.
|
| |
| int | ConfigureSystem (ngcdcs_syscfg_t newCfg, int copy=1) |
| | Configure system.
|
| |
| int | Check (const ngcdcs_syscfg_t &cfg) |
| | Check system configuration.
|
| |
| int | SysCfg (const char *cfgFile) |
| | Apply system configuration.
|
| |
| void | SysCfgDefault (const char *cfg) |
| | Apply default system configuration.
|
| |
| int | InitSysCfg (const char *cfgFile) |
| | Initialize default system configuration from file.
|
| |
| int | StoreCfg (const char *fileName) |
| | Store configuration.
|
| |
| void | Release () |
| | Release server.
|
| |
| void | Shutdown () |
| | Dhutdown all modules.
|
| |
| void | Info (char *s) |
| | Formatted server info.
|
| |
| void | SysInfo (char *s) |
| | Formatted system info.
|
| |
| void | ModInfo (char *s) |
| | Formatted module info.
|
| |
| void | BoardInfo (char *s) |
| | Formatted board info.
|
| |
| int | AdcInfo (int id, char *s) |
| | Formatted ADC module info.
|
| |
| int | AcqInfo (int id, char *s) |
| | Formatted acquisition process info.
|
| |
| void | RpcTranslate (void *payload, size_t size, int request, int how, char *s) |
| | Translate RPC payload to string.
|
| |
| void | CheckDev (int idx, char *s) |
| | Device check.
|
| |
| int | GetPat (int id, int num, char *s) |
| | Formatted clock pattern.
|
| |
| int | GetPrg (int id, int num, char *s) |
| | Formatted sequencer program.
|
| |
| int | CheckTriggerPeriod (int id, double period) |
| | Check, if the trigger period matches the current read-out sequence.
|
| |
| int | Check (const ngcdcs_detcfg_t &cfg) |
| | Check detector configuration.
|
| |
| int | DetCfg (const char *cfgFile) |
| | Apply detector configuration.
|
| |
| int | RouteComp (ngcbMOD *, ngcbMOD *) |
| | Compare module routes.
|
| |
| int | FrameHandler (void *buffer, ngcdcs_finfo_t *finfo, char *erms) |
| | Frame handler (from ngcbACQ_SERVICE)
|
| |
| int | FitsMerger (ngcbFITS *hdr, char *erms) |
| | FITS merger (from ngcbACQ_SERVICE)
|
| |
| int | Statistics (int id, char *s) |
| | Formatted acquisition process statistics.
|
| |
| int | AcqProc (int id, const char *procName) |
| | Set acquisition process on multiple instances.
|
| |
| int | Rtd (int idx) |
| | Start RTD for acquistion module.
|
| |
| int | FrameGen (int id, const char *name, int flag) |
| | Set frame attribute: generate.
|
| |
| int | FrameStore (int id, const char *name, int flag) |
| | Set frame attribute: store.
|
| |
| int | FrameLocal (int id, const char *name, int flag) |
| | Set frame attribute: store to local medi.
|
| |
| int | FrameExport (int id, const char *name, int flag) |
| | Set frame attribute: export.
|
| |
| int | FrameBreak (int id, const char *name, int n) |
| | Set exposure break condition for frame.
|
| |
| int | FrameWin (int id, const char *name, int sx, int sy, int nx, int ny) |
| | Set frame window.
|
| |
| void | GetFrames (int id, char *s) |
| | Get frame configuration (debugging function)
|
| |
| int | ReadModeIdx (int id) |
| | Get read-mode index by id.
|
| |
| int | ReadModeIdx (const char *name) |
| | Get read-mode index by name.
|
| |
| int | ReadMode (int idx) |
| | Set new read-mode.
|
| |
| int | FitsBlock () |
| | Number of FITS blocks from system.
|
| |
| int | PrepareFits (int refresh=1) |
| | Prepare FITS-header.
|
| |
| int | DumpFits (const char *fileName=NULL) |
| | Dump FITS-header to file.
|
| |
| int | CheckExp () |
| | Return an error when an exposure is still active.
|
| |
| void | ExpStatus (unsigned int newStat, const char *erms=NULL) |
| | Update exposure status.
|
| |
| void | ExpStatus2String (char *s, int stat) |
| | Convert exposure status to string.
|
| |
| void | ExpStatus2String (char *s) |
| | Convert current exposure status to string.
|
| |
| char * | ExpStatusString () |
| | Return current exposure status as string.
|
| |
| int | RecStart (const char *id, double absTime=0.0) |
| | Start recording sequence (shortcut to series of function calls)
|
| |
| int | ExpStart (int acqId=0, double absTime=0.0) |
| | Start exposure.
|
| |
| int | ExpAbort (int acqId=0) |
| | Abort exposure.
|
| |
| int | ExpEnd (int acqId=0) |
| | End exposure.
|
| |
| int | ExpPause (int id=0) |
| | Pause exosure.
|
| |
| int | ExpCont (int id=0) |
| | Continue paused exosure.
|
| |
| int | ExpAddWait (int fd, int id) |
| | Add exposure waiting client (socket)
|
| |
| void | ExpPoll () |
| | Exposure polling.
|
| |
| int | PostProcEnabled () |
| | Returns 1 if post-processor is enabled.
|
| |
| void | Publish (const ngcdcs_exp_topic &topic) |
| | Publish exposure event.
|
| |
| uint64_t | FramesProcessed () |
| | Number of processed frames during current exposure.
|
| |
| uint64_t | SizeRecorded () |
| | Recorded data size during current exposure (in bytes)
|
| |
| double | TimeElapsed () |
| | Time elapsed in current exposure.
|
| |
| double | RemainingTime () |
| | Time remaining in current exposure.
|
| |
| void | ExpDrvStatus (unsigned int newStat) |
| | Exposure driver status update.
|
| |
| int | ExpDrvLoad (const char *module, const char *name=NULL) |
| | Load exposure driver.
|
| |
| int | ExpDrvUnload (const char *name, const char *symbol=NULL) |
| | Unload exposure driver.
|
| |
| int | ExpDrvUnload () |
| | Unload all dynamically loaded driver modules.
|
| |
| int | ExpDrvLoaded (const char *module) |
| | Check if exposure driver module is loaded.
|
| |
| int | ExpDrvCfg (const char *s) |
| | Configue exposure driver from either a file a parameter string.
|
| |
| void | ExpDrvList (char *s) |
| | Print exposure driver list to string.
|
| |
| void | ExpDrvModList (char *s) |
| | Print list of loaded exposure driver modules to string.
|
| |
| int | ExpDrvSelect (const char *name) |
| | Install exposure driver.
|
| |
| int | ExpDrvClose () |
| | Uninstall exposure driver.
|
| |
| int | ExpDrvStart () |
| | Activate exposure driver.
|
| |
| int | ExpDrvAbort () |
| | Abort exposure driver.
|
| |
| int | ExpDrvAddWait (int fd) |
| | Add exposure driver waiting client (socket)
|
| |
| virtual void | MergeReset (int relaunch=0) |
| | Reset data merger interface.
|
| |
| virtual int | MergeStart (const char *name, int display, int id, int cleanup=0) |
| | Start exposure data file merger with requested id.
|
| |
| virtual int | MergeStop (int id) |
| | Stop exposure data file merger.
|
| |
| virtual int | MergeStatus (int id, char *stat=NULL) |
| | Get status of exposure data file merger.
|
| |
| virtual int | MergeMsg (int id, char *msg) |
| | Get status message of exposure data file merger.
|
| |
| virtual void | MergeNext () |
| | Merge next item in the data merger list.
|
| |
| int | MergeAlign () |
| | Align merger file-list with backup file.
|
| |
| void | State (int newState, int update=1) |
| | Set new server state.
|
| |
| void | SubState (int newState) |
| | set new sub-state
|
| |
| void | ClearSubState () |
| | Clear sub-state (error or active)
|
| |
| int | ErrState () |
| | Check if we are in error state.
|
| |
| int | OpMode (int level) |
| | Set operational mode.
|
| |
| int | OpMode (const char *mode) |
| | Set operational mode (by name)
|
| |
| int | OpenDebugConnection () |
| | Open error-state debug connection.
|
| |
| int | CloseDebugConnection () |
| | Close error-state debug connection.
|
| |
| void | DevPoll () |
| | Device events polling cycle.
|
| |
| int | HaveLocalEvents () |
| | Local events configured.
|
| |
| virtual void | Query () |
| | Query system status.
|
| |
| virtual void | PollStatConfigure (int enable, int interval) |
| | Configure status polling (milliseconds)
|
| |
| virtual void | HiResTimer (int enable) |
| | Enable/disable hi-res timer.
|
| |
| void | FatalError (const char *erms) |
| | Go to fatal error state.
|
| |
| int | FatalError () |
| | Check for fatal error.
|
| |
| double | LifeTime () |
| | Server life time (seconds)
|
| |
| int | Disable () |
| | Go to not operational state.
|
| |
| int | NeedEnableCycle () |
| | Return a flag indicating whether an enabling cycle is needed.
|
| |
| int | Enable (int check) |
| | Go to operational state with or without integrity check.
|
| |
| int | Off () |
| | Switch off.
|
| |
| int | Recover () |
| | Recover from error state.
|
| |
| int | ResetDfe () |
| | Reset detector front-end.
|
| |
| int | ResetSensors () |
| | Reset sensors.
|
| |
| void | Profile (const char *name=NULL) |
| | Apply profile.
|
| |
| void | ProcName (const char *name) |
| | Set process name.
|
| |
| const char * | ProcName () |
| | Return process name.
|
| |
| void | PrintUsage () |
| | Print command line options.
|
| |
| int | ParseArguments (int argc, char **argv) |
| | Parse options.
|
| |
| const char * | Version () |
| | Current version.
|
| |
| void | ExportVersion (const char *newVersion) |
| | Export version.
|
| |
| void | Port (int port) |
| | Set core service port.
|
| |
| void | Instance (const char *name) |
| | Set Instance.
|
| |
| char * | Instance () |
| | Get instance.
|
| |
| void | ExecShell (const char *name) |
| | Set remote execution shell.
|
| |
| const char * | DicList () |
| | Get dictionary list.
|
| |
| char * | ErrMsg () |
| | Global error message.
|
| |
| void | SaveErr (const char *erms) |
| | Save last error message.
|
| |
| const char * | LastErr () |
| | Last error message.
|
| |
| int | ShutdownService (int port) |
| | Shutdown service port.
|
| |
| void | Logger (int flag, const char *msg) |
| | Logger (from ngcbSERVICE)
|
| |
| int | Xterm () |
| | Flag to start in new window.
|
| |
| int | VerboseLevel () |
| | Get verbose level.
|
| |
| void | VerboseLevel (int level) |
| | Set verbose level.
|
| |
| int | LogLevel () |
| | Get logging level.
|
| |
| void | LogLevel (int level) |
| | Set logging level.
|
| |
| void | Verbose (int level, const char *format,...) __attribute__((format(printf |
| | Verbose method depending on level.
|
| |
| void void | Verbose (const char *fromat,...) __attribute__((format(printf |
| | Verbose method.
|
| |
| void void void | Log (int level, const char *format,...) __attribute__((format(printf |
| | Logging method depending on level.
|
| |
| void void void void | Log (const char *format,...) __attribute__((format(printf |
| | Logging method.
|
| |
| void void void void void | ErrLog (int severity, const char *format,...) __attribute__((format(printf |
| | Error log, severity is one of ngcbWARNING, ngcbFAILURE and ngcbERR_SEVERE.
|
| |
| void void void void void void | Print (const char *format,...) __attribute__((format(printf |
| | Print verbose message.
|
| |
| void void void void void void void | AddLog (const char *format,...) __attribute__((format(printf |
| | Add message to the logging system.
|
| |
| void void void void void void void int | ConfigureLogging (int vb, int log, int xt) |
| | Configure logging parameters.
|
| |
| int | DebugStream (int flag) |
| | Enable/disable debug-stream.
|
| |
| void | BroadcastAlarm (const char *msg) |
| | Broadcast alarm.
|
| |
| void | ClrLog () |
| | Clear built-in log.
|
| |
| void | CatLog (char *s) |
| | Copy built-in log to string.
|
| |
| void | DeviceEvent (void *origin, void *event) |
| | Device event (from ngcbSERVICE)
|
| |
| void | DevError (const char *erms, int id, void *descriptor) |
| | Device error (from ngcbSERVICE)
|
| |
| void | AcqError (const char *erms, int id, void *descriptor) |
| | Device error (from ngcbACQ_SERVICE)
|
| |
| void | DisableDbMirror () |
| | Disable internal databse mirror.
|
| |
| int | DbAdd (ngcbATTR *attr) |
| | Add attribute to database.
|
| |
| void | DbExport () |
| | Export database.
|
| |
| int | DbConfigure () |
| | Configure database.
|
| |
| int | Update () |
| | Update database.
|
| |
| virtual void | DbLock () |
| | Lock database.
|
| |
| virtual void | DbUnlock () |
| | Unlock database.
|
| |
| int | AddCmd (const char *cmd, ngcb_function_t function, int flags, const char *syntax, const char *help) |
| | Add command to server command list.
|
| |
| void | DelCmd (const char *cmd) |
| | Delete command from server command list.
|
| |
| int | Execute (const char *cmd, char *reply, int protect=0, int fd=-1) |
| | Command handler.
|
| |
| int | Execute (const char *cmd, int protect=0, int fd=-1) |
| | Command handler without reply.
|
| |
| int | Macro (const char *fileName, char *reply, int protection=0) |
| | Execute macro file.
|
| |
| int | SimError (int error, int idx=0) |
| | Simulate various error test cases.
|
| |
| virtual void | ExitSignal (int sig) |
| | Exit handler.
|
| |
| int | Initialize () |
| | Initialize system.
|
| |
| int | Reset () |
| | Reset system.
|
| |
| void | Abort () |
| | Abort server.
|
| |
| int | InMainLoop () |
| | Function called before entering main-loop.
|
| |
| int | SrvPortOrig () |
| | Get original server port number.
|
| |
| int | CoreShell () |
| | Core shell.
|
| |
| int | MainLoop () |
| | Run service-loop.
|
| |
| void | LockService () |
| | Lock service loop.
|
| |
| void | UnlockService () |
| | Unlock service loop.
|
| |
| int | AcqStop (int id=0) |
| | Stop (acquisition process)
|
| |
| int | AcqStart (int id=0) |
| | Start (acquisition process)
|
| |
| int | SeqIdle (int id=0) |
| | Check sequencer idle states.
|
| |
| int | SeqWaiting () |
| | Check if all sequencers are in WAITING state.
|
| |
| int | SeqStop (int id=0) |
| | Stop (sequencer + acquisition process)
|
| |
| int | SeqStart (int id=0, struct timeval *ts=NULL, double absTime=0.0) |
| | Start (sequencer + acquisition process)
|
| |
| int | SeqTrigger (int id) |
| | Sequencer sync trigger.
|
| |
| int | SeqPause (int id=0) |
| | Sequencer pause.
|
| |
| int | SeqContinue (int id=0) |
| | Sequencer continue.
|
| |
| int | SeqBreak (int id=0) |
| | Break sequence.
|
| |
| int | SeqWait (int id, int event, int timeout, int interval) |
| | Wait for status event.
|
| |
| void | ClearState (int id=0) |
| | Clear stored sequencer states.
|
| |
| void | StoreState () |
| | Store sequencer states.
|
| |
| int | RestoreState () |
| | Restore sequencer states.
|
| |
| int | ShutterAction (int id, const char *action, char *reply) |
| | Perform shutter action.
|
| |
| int | TecAction (int id, const char *action, char *reply) |
| | Perform TEC action.
|
| |
| int | GeosnapAction (int id, const char *action, char *reply) |
| | Perform GEOSNAP action.
|
| |
| ngcbPARAM_LIST * | ParamList () |
| | Global parameter list.
|
| |
| int | ParamDefault () |
| | Set default values.
|
| |
| int | LoadSetup (const char *fileName, char **list, int *listLength, int max=-1) |
| | Load setup from file into string array.
|
| |
| int | LoadSetup (const char *fileName) |
| | Load and apply setup from file.
|
| |
| ngcbPARAM * | ParamDefine (const char *name, const char *value, int id, int *status=NULL) |
| | Define parameter.
|
| |
| int | ParamDefine (const char *name, const char *value, const char *unit) |
| | Define free parameter (e.g. via command)
|
| |
| void | ParamUndefine (const char *name, int id) |
| | Undefine (remove) parameter.
|
| |
| int | SetupList (const char *paramBuf) |
| | Setup parameter list (string)
|
| |
| int | SetupList (char **paramBuf, int size) |
| | Setup parameter list (string array)
|
| |
| int | SetupList (ngcbPARAM_LIST *list) |
| | Setup parameter list.
|
| |
| int | SetupParam (const char *name, const char *value) |
| | Set single parameter.
|
| |
| int | StatusList (const char *list, char *reply) |
| | Get parameter status (parameter names string)
|
| |
| int | StatusList (char **list, int size, char *reply) |
| | Get parameter status (parameter names array)
|
| |
| int | StatusParam (const char *name, char *value) |
| | Get single parameter.
|
| |
| int | ParamLookup (const char *name, char *value, int flag=0) |
| | Handler for parameter lookup (from ngcbSERVICE)
|
| |
| ngcdcsCLDC * | CldcMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route, int nc, int nb, double extRef) |
| | CLDC module factory.
|
| |
| ngcdcsSEQ * | SeqMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route, ngcbPARAM_LIST *p) |
| | Sequencer module factory.
|
| |
| ngcdcsADC * | AdcMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route, int num, int bitPix) |
| | ADC module factory.
|
| |
| virtual ngcdcsSHUTTER * | ShutterMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | Shutter module factory.
|
| |
| virtual ngcdcsPREAMP * | PreampMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | Preamplifier module factory.
|
| |
| ngcdcsNGC2 * | NGC2Mod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | NGC2 basic module factory.
|
| |
| ngcdcsAO * | AOMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | AO camera module factory.
|
| |
| ngcdcsLISA * | LISAMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | LISA camera module factory.
|
| |
| ngcdcsNGSD * | NGSDMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route, double extRef) |
| | NGSD module factory.
|
| |
| ngcdcsTEC * | TECMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | TEC module factory.
|
| |
| ngcdcsGEOSNAP * | GeosnapMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route) |
| | GEOSNAP module factory.
|
| |
| ngcdcsSCA * | ScaMod (const char *spec, ngcbIFC *dev, const ngcb_route_t &route, ngcbPARAM_LIST *p) |
| | Sidecar ASIC module factory.
|
| |
| ngcdcsACQ * | AcqMod (const char *spec, const ngcdcs_acq_cfg_t &cfg, ngcbPARAM_LIST *p) |
| | Acquisition module factory.
|
| |
| ngcdcsSEQ0 * | SeqFn (int idx) |
| | Get index of sequencer functional module.
|
| |
| ngcdcsCLDC0 * | CldcFn (int idx) |
| | Get index of CLDC functional module.
|
| |
| int | CldcEnable (int id) |
| | Enable CLDC outputs.
|
| |
| int | CldcDisable (int id) |
| | Disable CLDC outputs.
|
| |
| int | CldcDefault (int id) |
| | Restore default voltages.
|
| |
| int | CldcCheck (int id) |
| | Telemetry check.
|
| |
| int | CldcCalibrate (int id) |
| | Calibrate voltages.
|
| |
| int | CldcClearCalibration (int id) |
| | Clear voltage calibration.
|
| |
| int | CldcRestore (int id, const char *key=NULL) |
| | Restore voltage defined by voltage-keyword.
|
| |
| int | Snapshot (int id, char *s) |
| | Formatted bias snapshot.
|
| |
| int | Telemetry (int id, char *s) |
| | Formatted telemetry.
|
| |
| void | Voltages (ngcdcsCLDC0 *mod, char *s) |
| | Formatted voltages.
|
| |
| int | SelftestCldc (int id) |
| | Selftest function for CLDC module.
|
| |
| int | SelftestSeq (int id) |
| | Selftest function for sequencer module.
|
| |
| int | SelftestAdc (int id) |
| | Selftest function for ADC module.
|
| |
| int | SelftestShutter (int id) |
| | Selftest function for shutter module.
|
| |
| int | SelftestPreamp (int id) |
| | Selftest function for preamplifier module.
|
| |
| int | SelftestSca (int id) |
| | Selftest function for Sidecar ASIC module.
|
| |
| int | SelftestAcq (int id) |
| | Selftest function for acquisition module.
|
| |
| | ngcbSIO () |
| | Constructor.
|
| |
| virtual | ~ngcbSIO () |
| | Destructor.
|
| |
| char * | ErrMsg () |
| | Error message.
|
| |
| int | PortNum (int fd) |
| | Get port number.
|
| |
| int | GetIpAddr (const char *name, char *ipAddr) |
| | Get IP-address.
|
| |
| int | WaitSocket (int fd, int timeout) |
| | Wait with timeout until socket becomes readable.
|
| |
| int | TcpService (const char *service=NULL) |
| | Open a tcp/ip server socket.
|
| |
| int | TcpService (int port) |
| | Open a tcp/ip server socket.
|
| |
| int | TcpAccept (int srvSocket) |
| | Accept a tcp/ip connection request from a client.
|
| |
| int | TcpConnect (const char *service) |
| | Connect to a tcp/ip socket service.
|
| |
| int | TcpConnect (int port, const char *host=NULL) |
| | Connect to a tcp/ip socket service defined by port and host.
|
| |
| int | TcpClose (int fd) |
| | Close tcp/ip socket.
|
| |
| int | TcpRead (int fd, void *buffer, size_t size) |
| | Read buffer from tcp/ip socket.
|
| |
| int | TcpWrite (int fd, const void *buffer, size_t size) |
| | Write buffer to tcp/ip socket.
|
| |
| int | TcpPuts (int fd, const char *string) |
| | Put string to tcp/ip socket.
|
| |
| int | TcpGets (int fd, char *string, int maxLen) |
| | Get string from tcp/ip socket.
|
| |
| int | TcpReadRequest (int fd, char *request, int maxSize) |
| | Read request from tcp/ip socket.
|
| |
| int | TcpWriteReply (int fd, const char *reply, int success) |
| | Write reply to tcp/ip socket.
|
| |
| int | ExecVersion (const char *host) |
| | Return version of exec daemon or -1 if version cannot be retrieved.
|
| |
| int | Exec (const char *host, const char *cmd, char *reply, int port=0) |
| | Execute process on host.
|
| |
| int | ExecXt (const char *host, const char *cmd, char *reply, const char *geom=NULL) |
| | Execute process on host (in new terminal)
|
| |
| int | Kill (const char *host, int pid) |
| | Terminate process on host.
|
| |
| void | ExecReply (int fd, char success, const char *reply) |
| | Send reply to calling process.
|
| |
| int | Discover (const char *host, const char *name, const char *instance, int *port, int *protocol=NULL) |
| | Discover command/reply service on host.
|
| |
| int | Discover (const char *name, const char *instance, int *port, int *protocol=NULL) |
| | Discover command/reply service on local host.
|
| |
| int | Connect (const char *host, int port, int protocol, int *evtPort) |
| | Connect client to command/reply service.
|
| |
| int | Connect (const char *host, int port, int protocol) |
| | Connect to command/reply service with specific protocol.
|
| |
| int | Connect (const char *service, int protocol=ngcbSIO_PROTOCOL_ASCII) |
| | Connect to command/reply service with specific protocol.
|
| |
| void | Disconnect () |
| | Disconnect from command/reply service.
|
| |
| int | Connected () |
| | Return client connection status.
|
| |
| void | ReplyBufferSize (size_t size) |
| | Set reply buffer size of the client interface.
|
| |
| int | SendRequest (const char *request) |
| | Send request to server.
|
| |
| int | GetReply (char *s=NULL) |
| | Copy reply from server to string.
|
| |
| int | PrintReply (FILE *fd) |
| | Print server reply to stream.
|
| |
| int | ReplyLine (char *line) |
| | Read next reply line.
|
| |
| char * | Reply () |
| | Reply buffer.
|
| |
| int | RequestReply (const char *request, char *reply=NULL) |
| | Run request/reply protocol.
|
| |
| int | OpenServer (int cmdPort, int evtPort=-1) |
| | Open socket server.
|
| |
| void | CloseServer () |
| | Close socket server.
|
| |
| void | StopServer () |
| | Terminate server main-loop.
|
| |
| int | SrvOpened () |
| | Returns 1 when server is open.
|
| |
| virtual void | SetSrvAborted (int flag) |
| | Set server-aborted flag.
|
| |
| virtual int | SrvAborted () |
| | Returns 1 when server-aborted flag is set.
|
| |
| int | SrvCmdPort () |
| | Get actual server command port.
|
| |
| int | SrvEvtPort () |
| | Get actual server event port.
|
| |
| int | SrvCmdSocket () |
| | Get actual command server socket.
|
| |
| int | SrvEvtSocket () |
| | Get actual event server socket.
|
| |
| int | OpenPort (int port, int protocol=0) |
| | Open service port.
|
| |
| int | ClosePort (int port) |
| | Close service port.
|
| |
| int | Port2Fd (int port) |
| | Return server socket associated to service port.
|
| |
| int | Fd2Port (int fd) |
| | Return service port associated to server socket.
|
| |
| int | ConnectCmd (int srvSocket, int protocol=0) |
| | Connect command client.
|
| |
| int | NumCmdClient () |
| | Return number of command client connections.
|
| |
| int | HaveCmdClient () |
| | Returns 1 in case any command client connection is established.
|
| |
| int | ConnectEvt (int srvSocket) |
| | Connect event client.
|
| |
| int | NumEvtClient () |
| | Return number of event client connections.
|
| |
| int | HaveEvtClient () |
| | Returns 1 in case any event client connection is established.
|
| |
| void | Broadcast (const void *buffer, size_t size) |
| | Broadcat buffer to all event clients.
|
| |
| void | Broadcast (const char *s) |
| | Broadcast string to all event clients.
|
| |
| int | Protocol (int fd) |
| | Run protocol when socket becomes readable.
|
| |
| int | ProtocolType () |
| | Get preferred protocol type.
|
| |
| void | ProtocolType (int protocol) |
| | Set Protocol type.
|
| |
| int | GetProtocol (int fd) |
| | Get protocol type assigned to a given socket.
|
| |
| void | EnableStdIn () |
| | Enable input via stdin.
|
| |
| void | DisableStdIn () |
| | Disable input via stdin.
|
| |
| int | StdIn () |
| | Get file-descriptor associated to the standard input.
|
| |
| int | FdAttach (int fd) |
| | Attach file-descriptor to the file descriptor event call-back.
|
| |
| void | FdDetach (int fd) |
| | Detach file-descriptor from the file descriptor event call-back.
|
| |
| void | TimerSet (int ms) |
| | Set timer (in milliseconds)
|
| |
| void | TimerOn () |
| | Enable timer.
|
| |
| void | TimerOff () |
| | Stop timmer.
|
| |
| int | MainLoop () |
| | Enter socket server main-loop.
|
| |
| void | Lock () |
| | Lock service main-loop.
|
| |
| void | Unlock () |
| | Unlock service main-loop.
|
| |
| void | CleanupCmd (char *cmdLine, int *cmdLen) |
| | Clean command string (remove extra spaces etc.)
|
| |
| virtual void virtual void virtual void virtual void virtual void | LogMsg (const char *msg) |
| | Message logger.
|
| |
| | ngcbCMD_SRV () |
| | Constructor.
|
| |
| virtual | ~ngcbCMD_SRV () |
| | Destructor.
|
| |
| void | AssignPassword (const char *fileName) |
| | Assign password from file.
|
| |
| const char * | PW () |
| | Return password.
|
| |
| int | LogIn (const char *s) |
| | Login to trusted mode with a key in the format "name:password".
|
| |
| void | LogOut () |
| | Log out.
|
| |
| int | LoggedIn () |
| | Return login status.
|
| |
| void | Lock () |
| | Lock command system.
|
| |
| void | Unlock () |
| | Unlock command system.
|
| |
| int | Locked () |
| | Return locked status.
|
| |
| void | Encrypt (char *s, const char *key=NULL) |
| | Encrypt string with key.
|
| |
|
| virtual ngcbCMD_LIST * | CreateCmdList () |
| | Command list factory.
|
| |
| virtual void | InstallSignalHandlers () |
| | Install signal handlers.
|
| |
| virtual int | ResolvePath (char *resolved, const char *fileName) |
| | Resolve full path name by parsing search paths etc.
|
| |
| virtual void | SysCfgOverride (ngcdcs_syscfg_t *newCfg) |
| | Overrride system configuration (call-back)
|
| |
| virtual int | ConfigureSystemCB1 (ngcdcs_syscfg_t &newCfg) |
| | System configuration call-back 1 (before re-configuration)
|
| |
| virtual int | ConfigureSystemCB2 (ngcdcs_syscfg_t &newCfg) |
| | System configuration call-back 2 (after re-configuration)
|
| |
| virtual int | LoadSysCfg (ngcdcs_syscfg_t *newCfg, const char *fileName) |
| | System configuration file loader.
|
| |
| virtual int | LoadDetCfg (ngcdcs_detcfg_t *newCfg, const char *fileName) |
| | Detector configuration file loader.
|
| |
| virtual void | ShutdownSystemCB1 () |
| | Shutdown callback 1.
|
| |
| virtual void | ShutdownSystemCB2 () |
| | Shutdown callback 2.
|
| |
| virtual void | MergeInit () |
| | Initialize file-merger interface.
|
| |
| virtual int | LookupCB (const char *paramName, char *value) |
| | Call-back for parameter lookup.
|
| |
| virtual int | FrameHandlerCB (void *buffer, ngcdcs_finfo_t *finfo, char *erms) |
| | Frame handler call-back.
|
| |
| virtual int | FitsMergerCB (ngcbFITS *hdr, char *erms) |
| | FITS-merger call-back.
|
| |
| int | HandleExpEvt () |
| | Handle exposure event.
|
| |
| virtual int | ExpStartCB () |
| | Hook at exposure start.
|
| |
| virtual int | ExpCountDownCB () |
| | Exposure countdown start call-back.
|
| |
| ngcdcsEXPDRV * | ExpDrv (const char *name, const ngcb_fb_t &feedBackChannel) |
| | Exposure driver installation hook.
|
| |
| virtual void | AgEvent (int acqInst, ngcdcs_2ag_t ag, int errorId, const char *erms) |
| | Auto-guiding event.
|
| |
| virtual void | ErrorEvent (int id, const char *erms) |
| | Error event handler.
|
| |
| virtual void | ErrLogEvent (int id, const char *erms) |
| | Error logging event.
|
| |
| virtual void | VerboseCB (const char *msg, int level=ngcdcsLOG_INFO) |
| | Verbose output callback.
|
| |
| virtual void | LogCB (const char *msg, int level=ngcdcsLOG_INFO) |
| | Logging output callback.
|
| |
| virtual void | DbLogCB (const char *msg) |
| | Database log callback.
|
| |
| void | DbLog (const char *format,...) __attribute__((format(printf |
| | Action log in database.
|
| |
| void virtual int | DbConfCB () |
| | Configure database call-back.
|
| |
| virtual int | DbUpdateCB () |
| | Update database call-back.
|
| |
| virtual void | PublishExpEvent (int errorId, unsigned int newStat, const char *fileName, int merge, const char *erms) |
| | Publish exposure event.
|
| |
| virtual void | PublishLogPars () |
| | Publish logging parameters.
|
| |
| virtual void | PublishState () |
| | Publish server state.
|
| |
| virtual void | PublishSubState () |
| | Publish server sub-state.
|
| |
| virtual void | PublishExpDrvStatus () |
| | Publish exposure driver status.
|
| |
| virtual int | AddSockCB (int fd) |
| | Add file descriptor to socket event list.
|
| |
| virtual int | DelSockCB (int fd) |
| | Remove file descriptor from socket event list.
|
| |
| virtual ngcdcsCLDC * | MakeCLDC (ngcbIFC *dev, const ngcb_route_t &route, int nc, int nb) |
| | Create standard CLDC module.
|
| |
| virtual ngcdcsC20B20 * | MakeC20B20 (ngcbIFC *dev, const ngcb_route_t &route, int nc, int nb) |
| | Create NGC2 bias generator.
|
| |
| virtual ngcdcsB24 * | MakeB24 (ngcbIFC *dev, const ngcb_route_t &route, int nb) |
| | Create NGC2 B24 bias generator.
|
| |
| virtual ngcdcsC24 * | MakeC24 (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create NGC2 C24 bias generator.
|
| |
| virtual ngcdcsAPD * | MakeAPD (ngcbIFC *dev, const ngcb_route_t &route, int nb) |
| | Create APD bias generator.
|
| |
| virtual ngcdcsAOBIAS * | MakeAOBIAS (ngcbIFC *dev, const ngcb_route_t &route, int nb) |
| | Create AO bias generator.
|
| |
| virtual ngcdcsALBIAS * | MakeALBIAS (ngcbIFC *dev, const ngcb_route_t &route, int nb) |
| | Create ALICE bias generator.
|
| |
| virtual ngcdcsLISABIAS * | MakeLISABIAS (ngcbIFC *dev, const ngcb_route_t &route, int nb) |
| | Create LISA bias generator.
|
| |
| virtual ngcdcsNGSDBIAS * | MakeNGSDBIAS (ngcbIFC *dev, const ngcb_route_t &route, int nb, double extRef) |
| | Create NGSD bias generator.
|
| |
| virtual ngcdcsSEQ * | MakeSEQ (ngcbIFC *dev, const ngcb_route_t &route, ngcbPARAM_LIST *p) |
| | Create sequencer module.
|
| |
| virtual ngcdcsADC * | MakeADC (ngcbIFC *dev, const ngcb_route_t &route, int num, int bitPix) |
| | Create ADC module.
|
| |
| virtual ngcdcsSHUTTER * | MakeSHUTTER (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create shutter module.
|
| |
| virtual ngcdcsPREAMP * | MakePREAMP (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create preamplifier module.
|
| |
| virtual ngcdcsNGC2 * | MakeNGC2 (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create NGC2 basic module.
|
| |
| virtual ngcdcsAO * | MakeAO (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create AO camera module.
|
| |
| virtual ngcdcsLISA * | MakeLISA (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create LISA camera module.
|
| |
| virtual ngcdcsNGSD * | MakeNGSD (ngcbIFC *dev, const ngcb_route_t &route, double extRef) |
| | Create NGSD module.
|
| |
| virtual ngcdcsTEC * | MakeTEC (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create TEC module.
|
| |
| virtual ngcdcsGEOSNAP * | MakeGeosnap (ngcbIFC *dev, const ngcb_route_t &route) |
| | Create GEOSNAP module.
|
| |
| virtual ngcdcsSCA * | MakeSCA (ngcbIFC *dev, const ngcb_route_t &route, ngcbPARAM_LIST *p) |
| | Create Sidecar ASIC module.
|
| |
| virtual ngcdcsACQ * | MakeACQ (const ngcdcs_acq_cfg_t &cfg, ngcbPARAM_LIST *p) |
| | Create acquisition module.
|
| |
| int | ProtocolAscii (int fd) |
| | ASCII command protocol.
|
| |
| int | ProtocolBin (int fd) |
| | Binary command protocol.
|
| |
| int | FdCB (int fd) |
| | File descriptor event.
|
| |
| int | NewEventConnection (int fd) |
| | New event connection.
|
| |
| int | TimerCB () |
| | Timer call-back.
|
| |
| virtual int | Service (int fd, int protocol) |
| | Application specific service protocol.
|
| |
| virtual int | ServiceConnect (int fd, int protocol) |
| | Application specific service connection protocol.
|
| |
| virtual void | ProtocolErr (const char *erms) |
| | Call-back to log protocol errors.
|
| |
| virtual int | RegisterService (int fd) |
| | Register command service.
|
| |
| virtual int | UnregisterService (int fd) |
| | Unregister command service.
|
| |
| virtual void | MainLoopInit () |
| | Indicate main-loop initialization.
|
| |
| int | KeyVal (const char *key, float *value) |
| | Get single precision floating point value from keyword string.
|
| |
| int | KeyVal (const char *key, double *value) |
| | Get double precision floating point value from keyword string.
|
| |
| int | KeyVal (const char *key, int *value) |
| | Get 32-bit signed integer value from decimal keyword string.
|
| |
| int | KeyVal (const char *key, unsigned int *value) |
| | Get 32-bit unsigned integer value from decimal keyword string.
|
| |
| int | KeyValHex (const char *key, int *value) |
| | Get 32-bit signed integer value from hexadecimal keyword string.
|
| |
| int | KeyValHex (const char *key, unsigned int *value) |
| | Get 32-bit unsigned integer value from hexadecimal keyword string.
|
| |
| int | KeyValFmt (const char *key, int *value) |
| | Get 32-bit signed integer value from string.
|
| |
| int | KeyValFmt (const char *key, unsigned int *value) |
| | Get 32-bit unsigned integer value from string.
|
| |
| int | KeyValFrac (const char *key, unsigned int n, uint64_t *v1, uint64_t *v2) |
| | Fraction after n digits.
|
| |
| int | KeyIdx (char *key, const char *mask) |
| | Get the index after the first occurrence of mask in the keyword.
|
| |
| void | DiscardDetIdx (char *key) |
| | Discard DETi index.
|
| |
| void | StringReset (char *s, size_t size=256) |
| | Fill string with zeros.
|
| |