cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_DM.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AOLOOPCONTROL_DM_DISPCOMB_CONF
 
struct  AOLOOPCONTROL_DMTURBCONF
 

Macros

#define DISPCOMB_FILENAME_CONF   "/tmp/dmdispcombconf.conf.shm"
 
#define DMTURBCONF_FILENAME   "/tmp/dmturb.conf.shm"
 
#define DM_NUMBER_CHANMAX   20
 

Functions

void __attribute__ ((constructor)) libinit_AOloopControl_DM()
 Initialize module. More...
 
struct timespec time_diff (struct timespec start, struct timespec end)
 
errno_t make_master_turbulence_screen_local (const char *ID_name1, const char *ID_name2, long size, float outerscale, float innerscale)
 
errno_t AOloopControl_DM_loadconf ()
 
errno_t AOloopControl_DM_unloadconf ()
 
int AOloopControl_DM_disp2V (long DMindex)
 
int AOloopControl_DM_CombineChannels_FPCONF (char *fpsname, uint32_t CMDmode, long DMindex)
 
int AOloopControl_DM_CombineChannels_RUN (char *fpsname)
 
int AOloopControl_DM_CombineChannels (long DMindex, long xsize, long ysize, int NBchannel, int AveMode, int dm2dm_mode, const char *dm2dm_DMmodes, const char *dm2dm_outdisp, int wfsrefmode, const char *wfsref_WFSRespMat, const char *wfsref_out, int voltmode, int volttype, float stroke100, const char *IDvolt_name, float DClevel, float maxvolt)
 
int AOloopControl_DM_dmdispcomboff (long DMindex)
 
int AOloopControl_DM_dmtrigoff (long DMindex)
 
int AOloopControl_printDMconf ()
 
int AOloopControl_DM_dmdispcombstatus (long DMindex)
 
int AOloopControl_DM_chan_setgain (long DMindex, int ch, float gain)
 
int AOloopControl_DM_setvoltON (long DMindex)
 
int AOloopControl_DM_setvoltOFF (long DMindex)
 
int AOloopControl_DM_setMAXVOLT (long DMindex, float maxvolt)
 
int AOloopControl_DM_setDClevel (long DMindex, float DClevel)
 
int AOloopControl_DM_setAveMode (long DMindex, int AveMode)
 
int AOloopControl_DM_setTrigMode (long DMindex, int mode)
 
int AOloopControl_DM_setTrigChan (long DMindex, int chan)
 
int AOloopControl_DM_setTrigSem (long DMindex, int sem)
 
errno_t AOloopControl_printDMturbconf ()
 
int AOloopControl_DMturb_createconf ()
 
errno_t AOloopControl_DMturb_loadconf ()
 
int AOloopControl_DM_dmturboff (long DMindex)
 
int AOloopControl_DM_dmturb_wspeed (long DMindex, double wspeed)
 
int AOloopControl_DM_dmturb_ampl (long DMindex, double ampl)
 
int AOloopControl_DM_dmturb_LOcoeff (long DMindex, double LOcoeff)
 
int AOloopControl_DM_dmturb_tint (long DMindex, long tint)
 
int AOloopControl_DM_dmturb_printstatus (long DMindex)
 
int AOloopControl_DM_dmturb (long DMindex, int mode, const char *IDout_name, long NBsamples)
 
long AOloopControl_mkDM_TT_circle (char *IDoutname, long DMindex, long NBpts, float ampl)
 
long AOloopControl_DM_mkAstroGrid_seq (char *IDoutname, long DMindex, int XYmode, int bin, long NBcycle)
 

Macro Definition Documentation

◆ DISPCOMB_FILENAME_CONF

#define DISPCOMB_FILENAME_CONF   "/tmp/dmdispcombconf.conf.shm"

◆ DM_NUMBER_CHANMAX

#define DM_NUMBER_CHANMAX   20

◆ DMTURBCONF_FILENAME

#define DMTURBCONF_FILENAME   "/tmp/dmturb.conf.shm"

Function Documentation

◆ __attribute__()

void __attribute__ ( (constructor)  )

Initialize module.

◆ AOloopControl_DM_chan_setgain()

int AOloopControl_DM_chan_setgain ( long  DMindex,
int  ch,
float  gain 
)

◆ AOloopControl_DM_CombineChannels()

int AOloopControl_DM_CombineChannels ( long  DMindex,
long  xsize,
long  ysize,
int  NBchannel,
int  AveMode,
int  dm2dm_mode,
const char *  dm2dm_DMmodes,
const char *  dm2dm_outdisp,
int  wfsrefmode,
const char *  wfsref_WFSRespMat,
const char *  wfsref_out,
int  voltmode,
int  volttype,
float  stroke100,
const char *  IDvolt_name,
float  DClevel,
float  maxvolt 
)

◆ AOloopControl_DM_CombineChannels_FPCONF()

int AOloopControl_DM_CombineChannels_FPCONF ( char *  fpsname,
uint32_t  CMDmode,
long  DMindex 
)

◆ AOloopControl_DM_CombineChannels_RUN()

int AOloopControl_DM_CombineChannels_RUN ( char *  fpsname)

◆ AOloopControl_DM_disp2V()

int AOloopControl_DM_disp2V ( long  DMindex)

◆ AOloopControl_DM_dmdispcomboff()

int AOloopControl_DM_dmdispcomboff ( long  DMindex)

◆ AOloopControl_DM_dmdispcombstatus()

int AOloopControl_DM_dmdispcombstatus ( long  DMindex)

◆ AOloopControl_DM_dmtrigoff()

int AOloopControl_DM_dmtrigoff ( long  DMindex)

◆ AOloopControl_DM_dmturb()

int AOloopControl_DM_dmturb ( long  DMindex,
int  mode,
const char *  IDout_name,
long  NBsamples 
)

◆ AOloopControl_DM_dmturb_ampl()

int AOloopControl_DM_dmturb_ampl ( long  DMindex,
double  ampl 
)

◆ AOloopControl_DM_dmturb_LOcoeff()

int AOloopControl_DM_dmturb_LOcoeff ( long  DMindex,
double  LOcoeff 
)

◆ AOloopControl_DM_dmturb_printstatus()

int AOloopControl_DM_dmturb_printstatus ( long  DMindex)

◆ AOloopControl_DM_dmturb_tint()

int AOloopControl_DM_dmturb_tint ( long  DMindex,
long  tint 
)

◆ AOloopControl_DM_dmturb_wspeed()

int AOloopControl_DM_dmturb_wspeed ( long  DMindex,
double  wspeed 
)

◆ AOloopControl_DM_dmturboff()

int AOloopControl_DM_dmturboff ( long  DMindex)

◆ AOloopControl_DM_loadconf()

errno_t AOloopControl_DM_loadconf ( )

◆ AOloopControl_DM_mkAstroGrid_seq()

long AOloopControl_DM_mkAstroGrid_seq ( char *  IDoutname,
long  DMindex,
int  XYmode,
int  bin,
long  NBcycle 
)

◆ AOloopControl_DM_setAveMode()

int AOloopControl_DM_setAveMode ( long  DMindex,
int  AveMode 
)

◆ AOloopControl_DM_setDClevel()

int AOloopControl_DM_setDClevel ( long  DMindex,
float  DClevel 
)

◆ AOloopControl_DM_setMAXVOLT()

int AOloopControl_DM_setMAXVOLT ( long  DMindex,
float  maxvolt 
)

◆ AOloopControl_DM_setTrigChan()

int AOloopControl_DM_setTrigChan ( long  DMindex,
int  chan 
)

◆ AOloopControl_DM_setTrigMode()

int AOloopControl_DM_setTrigMode ( long  DMindex,
int  mode 
)

◆ AOloopControl_DM_setTrigSem()

int AOloopControl_DM_setTrigSem ( long  DMindex,
int  sem 
)

◆ AOloopControl_DM_setvoltOFF()

int AOloopControl_DM_setvoltOFF ( long  DMindex)

◆ AOloopControl_DM_setvoltON()

int AOloopControl_DM_setvoltON ( long  DMindex)

◆ AOloopControl_DM_unloadconf()

errno_t AOloopControl_DM_unloadconf ( )

◆ AOloopControl_DMturb_createconf()

int AOloopControl_DMturb_createconf ( )

◆ AOloopControl_DMturb_loadconf()

errno_t AOloopControl_DMturb_loadconf ( )

◆ AOloopControl_mkDM_TT_circle()

long AOloopControl_mkDM_TT_circle ( char *  IDoutname,
long  DMindex,
long  NBpts,
float  ampl 
)

◆ AOloopControl_printDMconf()

int AOloopControl_printDMconf ( )

◆ AOloopControl_printDMturbconf()

errno_t AOloopControl_printDMturbconf ( )

◆ make_master_turbulence_screen_local()

errno_t make_master_turbulence_screen_local ( const char *  ID_name1,
const char *  ID_name2,
long  size,
float  outerscale,
float  innerscale 
)

◆ time_diff()

struct timespec time_diff ( struct timespec  start,
struct timespec  end 
)