rcMessages.h File Reference

#include "messages.h"

Go to the source code of this file.

Defines

#define RC_COMMAND_BITPOS   0
#define RC_COMMAND_MASK   0xFF<<RC_COMMAND_BITPOS
#define RC_FROM_BITPOS   24
#define RC_FROM_MASK   0xff<<RC_FROM_BITPOS
#define RC_TO_BITPOS   16
#define RC_TO_MASK   0xff<<RC_TO_BITPOS
#define RC_DATAFLAG_BITPOS   15
#define RC_DATAFLAG_MASK   1<<RC_DATAFLAG_BITPOS
#define RC_TYPE_BITPOS   8
#define RC_TYPE_MASK   0x7f<<RC_TYPE_BITPOS
#define RC_MAX_DATASTRING   40960
#define RC_MAX_RUNCOMMENT   800
#define PREPARE_RUN   MINOS_DAQ_PREPARE_RUN
#define START_RUN   MINOS_DAQ_START_RUN

Typedefs

typedef enum rcTypeEnum RcMsgType
typedef enum MinosCommandTypes RcCommandType
typedef enum MinosDaqRequest RcRequest
typedef enum MinosDaqReport RcReport
typedef enum MinosDaqCommands RcCommand
typedef enum rcMsgEnum RcMessageId

Enumerations

enum  rcTypeEnum {
  RC_EXECUTE = 1, RC_ACKNOWLEDGE, RC_UNABLE_TO, RC_REQUEST,
  RC_REPORT, RC_STATE_REPORT, RC_I_AM_A, RC_GUI_COMMAND,
  RC_INFO_MESSAGE, END_OF_RC_COMMAND_TYPES
}
enum  MinosCommandTypes {
  MINOS_RC_COMMAND = RC_EXECUTE, MINOS_RC_ACKNOWLEDGE = RC_ACKNOWLEDGE, MINOS_RC_UNABLE_TO = RC_UNABLE_TO, MINOS_RC_REQUEST = RC_REQUEST,
  MINOS_RC_REPORT = RC_REPORT, MINOS_RC_STATE_REPORT = RC_STATE_REPORT, MINOS_RC_I_AM_A = RC_I_AM_A, MINOS_RC_GUI_COMMAND = RC_GUI_COMMAND,
  MINOS_RC_INFO_MESSAGE = RC_INFO_MESSAGE, MINOS_RC_CONFIG_COMMAND, END_OF_MINOS_RC_COMMAND_TYPES
}
enum  MinosDaqRequest {
  MINOS_RC_REQ_CURRENT_STATE = 1, MINOS_RC_REQ_STATUS_UPDATE, MINOS_RC_REQ_NEXT_SUB_RUN, MINOS_RC_REQ_ALL_STATES,
  MINOS_RC_REQ_YOUR_IDENTITY, MINOS_RC_REQ_RUNSTOP, MINOS_RC_REQ_SPILLDATA, END_OF_MINOS_RC_REQUESTS
}
enum  MinosDaqReport {
  MINOS_RC_REP_STATUS_UPDATE = 2, MINOS_RC_REP_RUNSTARTED, MINOS_RC_REP_RUNSTOPPED, MINOS_RC_REP_RUNSTOPPING,
  MINOS_RC_REP_SPILLDATA, END_RC_REP
}
enum  MinosDaqCommands {
  MINOS_DAQ_PREPARE_RUN = 1, MINOS_DAQ_START_RUN, MINOS_DAQ_PAUSE_RUN, MINOS_DAQ_RESUME_RUN,
  MINOS_DAQ_STOP_RUN, MINOS_DAQ_ABORT_RUN, MINOS_DAQ_NEW_SUB_RUN, MINOS_DAQ_RESET,
  MINOS_DAQ_RESTART, MINOS_DAQ_REBOOT, MINOS_DAQ_NODESTATUS, MINOS_DAQ_CONNECT,
  MINOS_DAQ_ADD_TO_GLOBAL, MINOS_DAQ_REMOVE_FROM_GLOBAL, MINOS_DAQ_ACTIVATE_ENTITY, MINOS_DAQ_DEACTIVATE_ENTITY,
  MINOS_DAQ_SET_TARGET = 40, MINOS_DAQ_CAL_RESET, END_OF_MINOS_DAQ_COMMANDS
}
enum  rcMsgEnum {
  CMD_PREPARE_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_PREPARE_RUN, CMD_START_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_START_RUN, CMD_PAUSE_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_PAUSE_RUN, CMD_RESUME_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_RESUME_RUN,
  CMD_STOP_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_STOP_RUN, CMD_ABORT_RUN = (RC_EXECUTE<<8) | MINOS_DAQ_ABORT_RUN, CMD_CHANGE_SUBRUN = (RC_EXECUTE<<8) | MINOS_DAQ_NEW_SUB_RUN, CMD_RESET = (RC_EXECUTE<<8) | MINOS_DAQ_RESET,
  CMD_RESTART = (RC_EXECUTE<<8) | MINOS_DAQ_RESTART, CMD_REBOOT = (RC_EXECUTE<<8) | MINOS_DAQ_REBOOT, MSG_CURRENT_STATE = (MINOS_RC_STATE_REPORT<<8), MSG_STATUS = (MINOS_RC_REPORT<<8) | MINOS_RC_REP_STATUS_UPDATE,
  CMD_REQUEST_CURRENT_STATE, CMD_REQUEST_STATUS
}

Define Documentation

#define PREPARE_RUN   MINOS_DAQ_PREPARE_RUN

Definition at line 177 of file rcMessages.h.

#define RC_COMMAND_BITPOS   0

Definition at line 91 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_COMMAND_MASK   0xFF<<RC_COMMAND_BITPOS

Definition at line 92 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_DATAFLAG_BITPOS   15

Definition at line 99 of file rcMessages.h.

#define RC_DATAFLAG_MASK   1<<RC_DATAFLAG_BITPOS

Definition at line 100 of file rcMessages.h.

#define RC_FROM_BITPOS   24

Definition at line 95 of file rcMessages.h.

Referenced by roto_check_ack(), and roto_complete_cmd().

#define RC_FROM_MASK   0xff<<RC_FROM_BITPOS

Definition at line 96 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_MAX_DATASTRING   40960

Definition at line 104 of file rcMessages.h.

#define RC_MAX_RUNCOMMENT   800

Definition at line 105 of file rcMessages.h.

#define RC_TO_BITPOS   16

Definition at line 97 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_TO_MASK   0xff<<RC_TO_BITPOS

Definition at line 98 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_TYPE_BITPOS   8

Definition at line 101 of file rcMessages.h.

Referenced by roto_check_ack().

#define RC_TYPE_MASK   0x7f<<RC_TYPE_BITPOS

Definition at line 102 of file rcMessages.h.

#define START_RUN   MINOS_DAQ_START_RUN

Definition at line 178 of file rcMessages.h.


Typedef Documentation

typedef enum rcMsgEnum RcMessageId
typedef enum rcTypeEnum RcMsgType
typedef enum MinosDaqReport RcReport
typedef enum MinosDaqRequest RcRequest

Enumeration Type Documentation

Enumerator:
MINOS_RC_COMMAND 
MINOS_RC_ACKNOWLEDGE 
MINOS_RC_UNABLE_TO 
MINOS_RC_REQUEST 
MINOS_RC_REPORT 
MINOS_RC_STATE_REPORT 
MINOS_RC_I_AM_A 
MINOS_RC_GUI_COMMAND 
MINOS_RC_INFO_MESSAGE 
MINOS_RC_CONFIG_COMMAND 
END_OF_MINOS_RC_COMMAND_TYPES 

Definition at line 121 of file rcMessages.h.

Enumerator:
MINOS_DAQ_PREPARE_RUN 
MINOS_DAQ_START_RUN 
MINOS_DAQ_PAUSE_RUN 
MINOS_DAQ_RESUME_RUN 
MINOS_DAQ_STOP_RUN 
MINOS_DAQ_ABORT_RUN 
MINOS_DAQ_NEW_SUB_RUN 
MINOS_DAQ_RESET 
MINOS_DAQ_RESTART 
MINOS_DAQ_REBOOT 
MINOS_DAQ_NODESTATUS 
MINOS_DAQ_CONNECT 
MINOS_DAQ_ADD_TO_GLOBAL 
MINOS_DAQ_REMOVE_FROM_GLOBAL 
MINOS_DAQ_ACTIVATE_ENTITY 
MINOS_DAQ_DEACTIVATE_ENTITY 
MINOS_DAQ_SET_TARGET 
MINOS_DAQ_CAL_RESET 
END_OF_MINOS_DAQ_COMMANDS 

Definition at line 156 of file rcMessages.h.

Enumerator:
MINOS_RC_REP_STATUS_UPDATE 
MINOS_RC_REP_RUNSTARTED 
MINOS_RC_REP_RUNSTOPPED 
MINOS_RC_REP_RUNSTOPPING 
MINOS_RC_REP_SPILLDATA 
END_RC_REP 

Definition at line 147 of file rcMessages.h.

Enumerator:
MINOS_RC_REQ_CURRENT_STATE 
MINOS_RC_REQ_STATUS_UPDATE 
MINOS_RC_REQ_NEXT_SUB_RUN 
MINOS_RC_REQ_ALL_STATES 
MINOS_RC_REQ_YOUR_IDENTITY 
MINOS_RC_REQ_RUNSTOP 
MINOS_RC_REQ_SPILLDATA 
END_OF_MINOS_RC_REQUESTS 

Definition at line 136 of file rcMessages.h.

enum rcMsgEnum
Enumerator:
CMD_PREPARE_RUN 
CMD_START_RUN 
CMD_PAUSE_RUN 
CMD_RESUME_RUN 
CMD_STOP_RUN 
CMD_ABORT_RUN 
CMD_CHANGE_SUBRUN 
CMD_RESET 
CMD_RESTART 
CMD_REBOOT 
MSG_CURRENT_STATE 
MSG_STATUS 
CMD_REQUEST_CURRENT_STATE 
CMD_REQUEST_STATUS 

Definition at line 180 of file rcMessages.h.

enum rcTypeEnum
Enumerator:
RC_EXECUTE 
RC_ACKNOWLEDGE 
RC_UNABLE_TO 
RC_REQUEST 
RC_REPORT 
RC_STATE_REPORT 
RC_I_AM_A 
RC_GUI_COMMAND 
RC_INFO_MESSAGE 
END_OF_RC_COMMAND_TYPES 

Definition at line 108 of file rcMessages.h.

00108                         {
00109       RC_EXECUTE=1,
00110       RC_ACKNOWLEDGE,
00111       RC_UNABLE_TO,
00112       RC_REQUEST, /* Whatever this means!! */
00113       RC_REPORT,
00114       RC_STATE_REPORT,
00115       RC_I_AM_A,
00116       RC_GUI_COMMAND,
00117       RC_INFO_MESSAGE,      
00118       END_OF_RC_COMMAND_TYPES
00119 } RcMsgType ;


Generated on 27 May 2017 for loon by  doxygen 1.6.1