MNE-CPP
beta 1.0
|
Neuromag Types and Defines. More...
Go to the source code of this file.
Classes | |
struct | NeuromagPlugin::dacqShmClient |
struct | NeuromagPlugin::dacqShmBlock |
struct | NeuromagPlugin::dacqDataMessageRec |
Macros | |
#define | DACQ_AUTOSTART |
#define | DACQ_REPLY_PACKET 1 |
#define | DACQ_REPLY_RFC 2 |
#define | DACQ_REPLY_BINARY 4 |
#define | DACQ_REPLY_ASCII 8 |
#define | DACQ_DRAIN_INPUT 0 |
#define | DACQ_KEEP_INPUT 1 |
#define | DACQ_REPLY_GOOD 1 |
#define | DACQ_REPLY_BAD 0 |
#define | DACQ_REPLY_ERROR -1 |
#define | DACQ_CMD_PASSWORD "pass" |
#define | DACQ_CMD_NAME "name" |
#define | DACQ_CMD_ABOUT "abou" |
#define | DACQ_CMD_MONITOR "moni" |
#define | DACQ_CMD_HELP "help" |
#define | DACQ_CMD_QUIT "quit" |
#define | COLLECTOR_PORT 11122 |
#define | COLLECTOR_PASS "homunculus122" |
#define | COLLECTOR_BUFS 32768 |
#define | COLLECTOR_GETVARS "vars" |
#define | COLLECTOR_SETVARS "vara" |
#define | COLLECTOR_DOSETUP "setu" |
#define | COLLECTOR_STAT "stat" |
#define | COLLECTOR_BUFVAR "maxBuflen" |
#define | MIN_BUFLEN 1*28 |
#define | CLIENT_ID 13014 |
#define | SOCKET_UMASK 0x000 |
#define | SOCKET_PATH "/neuro/dacq/sockets/dacq_server" |
#define | SOCKET_PATHCLNT "/neuro/dacq/sockets/dacq_client_" |
#define | OK 0 |
#define | FAIL -1 |
#define | SHM_FILE "/neuro/dacq/shmem/data_server" |
#define | SHM_FAIL_FILE "/neuro/dacq/raw/data_server_shmem" |
#define | SHM_MAX_CLIENT 10 |
#define | SHM_MAX_DATA 500*1500*4 |
#define | SHM_NUM_BLOCKS 100 |
#define | SHM_NO_BUF -1 |
#define | SHM_SIZE SHM_NUM_BLOCKS*sizeof(dacqShmBlockRec) |
#define | DATA_MESS_SIZE sizeof(dacqDataMessageRec) |
Typedefs | |
typedef struct NeuromagPlugin::dacqShmClient | NeuromagPlugin::dacqShmClientRec |
typedef struct NeuromagPlugin::dacqShmBlock | NeuromagPlugin::dacqShmBlockRec |
typedef struct NeuromagPlugin::dacqDataMessageRec * | NeuromagPlugin::dacqDataMessage |
Neuromag Types and Defines.
Copyright (C) 2012, Christoph Dinh and Matti Hamalainen. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file types_definitions.h.
#define CLIENT_ID 13014 |
ID of rtclient. A unique ID for us as a shared memory client. Should be more than 10000. Is also used to create the sun_path which is used to connect to the data acquisition peer over a UNIX datagram socket.
Definition at line 89 of file types_definitions.h.
#define MIN_BUFLEN 1*28 |
DSP units send packets of 28 samples, which is the ultimate lower bound
Definition at line 88 of file types_definitions.h.
#define SOCKET_UMASK 0x000 |
Acquisition system UNIX domain socket file must be world-writable
Definition at line 91 of file types_definitions.h.