cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_initmem.c File Reference

Aload / setup configuration. More...

#include "CommandLineInterface/CLIcore.h"
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "AOloopControl.h"
#include <sys/mman.h>
#include <sys/stat.h>
Include dependency graph for AOloopControl_initmem.c:

Macros

#define _GNU_SOURCE
 
#define AOconfname   "AOconf.shm"
 
#define NB_AOloopcontrol   10
 

Functions

errno_t AOloopControl_InitializeMemory (int mode)
 Initialize memory - function called within C code only (no CLI call) More...
 

Variables

AOLOOPCONTROL_CONFAOconf
 CLI function for AOloopControl_setframesAve. More...
 
AOloopControl_var aoloopcontrol_var
 
static int GPUcntMax = 100
 

Detailed Description

Aload / setup configuration.

REAL TIME COMPUTING ROUTINES

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ AOconfname

#define AOconfname   "AOconf.shm"

◆ NB_AOloopcontrol

#define NB_AOloopcontrol   10

Function Documentation

◆ AOloopControl_InitializeMemory()

errno_t AOloopControl_InitializeMemory ( int  mode)

Initialize memory - function called within C code only (no CLI call)

Purpose

Initialize memory of the loop

Arguments

Parameters
[in]modeint
  • 0 initialize memory when connecting
  • 1 connect only, do not modify/initialize

Variable Documentation

◆ AOconf

CLI function for AOloopControl_setframesAve.

◆ aoloopcontrol_var

AOloopControl_var aoloopcontrol_var

◆ GPUcntMax

int GPUcntMax = 100
static