MIDAS
Collaboration diagram for Other errors:

Macros

#define FE_SUCCESS   1
 
#define FE_ERR_ODB   602
 
#define FE_ERR_HW   603
 
#define FE_ERR_DISABLED   604
 
#define FE_ERR_DRIVER   605
 
#define FE_PARTIALLY_DISABLED   606
 
#define FE_NOT_YET_READ   607
 
#define HS_SUCCESS   1
 
#define HS_FILE_ERROR   702
 
#define HS_NO_MEMORY   703
 
#define HS_TRUNCATED   704
 
#define HS_WRONG_INDEX   705
 
#define HS_UNDEFINED_EVENT   706
 
#define HS_UNDEFINED_VAR   707
 
#define FTP_SUCCESS   1
 
#define FTP_NET_ERROR   802
 
#define FTP_FILE_ERROR   803
 
#define FTP_RESPONSE_ERROR   804
 
#define FTP_INVALID_ARG   805
 
#define EL_SUCCESS   1
 
#define EL_FILE_ERROR   902
 
#define EL_NO_MESSAGE   903
 
#define EL_TRUNCATED   904
 
#define EL_FIRST_MSG   905
 
#define EL_LAST_MSG   906
 
#define AL_SUCCESS   1
 
#define AL_INVALID_NAME   1002
 
#define AL_ERROR_ODB   1003
 
#define AL_RESET   1004
 
#define AL_TRIGGERED   1005
 
#define CMD_INIT   1 /* misc. commands must be below 20 !! */
 
#define CMD_EXIT   2
 
#define CMD_START   3
 
#define CMD_STOP   4
 
#define CMD_IDLE   5
 
#define CMD_GET_THRESHOLD   6
 
#define CMD_GET_THRESHOLD_CURRENT   7
 
#define CMD_GET_THRESHOLD_ZERO   8
 
#define CMD_SET_LABEL   9
 
#define CMD_GET_LABEL   10
 
#define CMD_OPEN   11
 
#define CMD_CLOSE   12
 
#define CMD_MISC_LAST   12 /* update this if you add new commands */
 
#define CMD_SET_FIRST   CMD_MISC_LAST+1 /* set commands */
 
#define CMD_SET   CMD_SET_FIRST
 
#define CMD_SET_VOLTAGE_LIMIT   CMD_SET_FIRST+1
 
#define CMD_SET_CURRENT_LIMIT   CMD_SET_FIRST+2
 
#define CMD_SET_RAMPUP   CMD_SET_FIRST+3
 
#define CMD_SET_RAMPDOWN   CMD_SET_FIRST+4
 
#define CMD_SET_TRIP_TIME   CMD_SET_FIRST+5
 
#define CMD_SET_CHSTATE   CMD_SET_FIRST+6
 
#define CMD_SET_LAST   CMD_SET_FIRST+6 /* update this if you add new commands */
 
#define CMD_GET_FIRST   CMD_SET_LAST+1 /* multithreaded get commands */
 
#define CMD_GET   CMD_GET_FIRST
 
#define CMD_GET_CURRENT   CMD_GET_FIRST+1
 
#define CMD_GET_TRIP   CMD_GET_FIRST+2
 
#define CMD_GET_STATUS   CMD_GET_FIRST+3
 
#define CMD_GET_TEMPERATURE   CMD_GET_FIRST+4
 
#define CMD_GET_DEMAND   CMD_GET_FIRST+5
 
#define CMD_GET_LAST   CMD_GET_FIRST+5 /* update this if you add new commands ! */
 
#define CMD_GET_DIRECT   CMD_GET_LAST+1 /* direct get commands */
 
#define CMD_GET_VOLTAGE_LIMIT   CMD_GET_DIRECT
 
#define CMD_GET_CURRENT_LIMIT   CMD_GET_DIRECT+2
 
#define CMD_GET_RAMPUP   CMD_GET_DIRECT+3
 
#define CMD_GET_RAMPDOWN   CMD_GET_DIRECT+4
 
#define CMD_GET_TRIP_TIME   CMD_GET_DIRECT+5
 
#define CMD_GET_CHSTATE   CMD_GET_DIRECT+6
 
#define CMD_GET_CRATEMAP   CMD_GET_DIRECT+7
 
#define CMD_GET_DEMAND_DIRECT   CMD_GET_DIRECT+8
 
#define CMD_GET_DIRECT_LAST   CMD_GET_DIRECT+8 /* update this if you add new commands ! */
 
#define CMD_ENABLE_COMMAND   (1<<14) /* these two commands can be used to enable/disable */
 
#define CMD_DISABLE_COMMAND   (1<<15) /* one of the other commands */
 
#define CMD_WRITE   100
 
#define CMD_READ   101
 
#define CMD_PUTS   102
 
#define CMD_GETS   103
 
#define CMD_DEBUG   104
 
#define CMD_NAME   105
 
#define CMD_INTERRUPT_ENABLE   100
 
#define CMD_INTERRUPT_DISABLE   101
 
#define CMD_INTERRUPT_ATTACH   102
 
#define CMD_INTERRUPT_DETACH   103
 
#define BD_GETS(s, z, p, t)   info->bd(CMD_GETS, info->bd_info, s, z, p, t)
 
#define BD_READS(s, z, t)   info->bd(CMD_READ, info->bd_info, s, z, t)
 
#define BD_PUTS(s)   info->bd(CMD_PUTS, info->bd_info, s)
 
#define BD_WRITES(s)   info->bd(CMD_WRITE, info->bd_info, s)
 

Detailed Description

dox dox

Macro Definition Documentation

◆ AL_ERROR_ODB

#define AL_ERROR_ODB   1003

Definition at line 762 of file midas.h.

◆ AL_INVALID_NAME

#define AL_INVALID_NAME   1002

Definition at line 761 of file midas.h.

◆ AL_RESET

#define AL_RESET   1004

Definition at line 763 of file midas.h.

◆ AL_SUCCESS

#define AL_SUCCESS   1

Alarm error code

Definition at line 760 of file midas.h.

◆ AL_TRIGGERED

#define AL_TRIGGERED   1005

Definition at line 764 of file midas.h.

◆ BD_GETS

#define BD_GETS (   s,
  z,
  p,
 
)    info->bd(CMD_GETS, info->bd_info, s, z, p, t)

macros for bus driver access

Definition at line 833 of file midas.h.

◆ BD_PUTS

#define BD_PUTS (   s)    info->bd(CMD_PUTS, info->bd_info, s)

Definition at line 835 of file midas.h.

◆ BD_READS

#define BD_READS (   s,
  z,
 
)    info->bd(CMD_READ, info->bd_info, s, z, t)

Definition at line 834 of file midas.h.

◆ BD_WRITES

#define BD_WRITES (   s)    info->bd(CMD_WRITE, info->bd_info, s)

Definition at line 836 of file midas.h.

◆ CMD_CLOSE

#define CMD_CLOSE   12

Definition at line 779 of file midas.h.

◆ CMD_DEBUG

#define CMD_DEBUG   104

Definition at line 821 of file midas.h.

◆ CMD_DISABLE_COMMAND

#define CMD_DISABLE_COMMAND   (1<<15) /* one of the other commands */

Definition at line 813 of file midas.h.

◆ CMD_ENABLE_COMMAND

#define CMD_ENABLE_COMMAND   (1<<14) /* these two commands can be used to enable/disable */

Definition at line 812 of file midas.h.

◆ CMD_EXIT

#define CMD_EXIT   2

Definition at line 769 of file midas.h.

◆ CMD_GET

#define CMD_GET   CMD_GET_FIRST

Definition at line 793 of file midas.h.

◆ CMD_GET_CHSTATE

#define CMD_GET_CHSTATE   CMD_GET_DIRECT+6

Definition at line 807 of file midas.h.

◆ CMD_GET_CRATEMAP

#define CMD_GET_CRATEMAP   CMD_GET_DIRECT+7

Definition at line 808 of file midas.h.

◆ CMD_GET_CURRENT

#define CMD_GET_CURRENT   CMD_GET_FIRST+1

Definition at line 794 of file midas.h.

◆ CMD_GET_CURRENT_LIMIT

#define CMD_GET_CURRENT_LIMIT   CMD_GET_DIRECT+2

Definition at line 803 of file midas.h.

◆ CMD_GET_DEMAND

#define CMD_GET_DEMAND   CMD_GET_FIRST+5

Definition at line 798 of file midas.h.

◆ CMD_GET_DEMAND_DIRECT

#define CMD_GET_DEMAND_DIRECT   CMD_GET_DIRECT+8

Definition at line 809 of file midas.h.

◆ CMD_GET_DIRECT

#define CMD_GET_DIRECT   CMD_GET_LAST+1 /* direct get commands */

Definition at line 801 of file midas.h.

◆ CMD_GET_DIRECT_LAST

#define CMD_GET_DIRECT_LAST   CMD_GET_DIRECT+8 /* update this if you add new commands ! */

Definition at line 810 of file midas.h.

◆ CMD_GET_FIRST

#define CMD_GET_FIRST   CMD_SET_LAST+1 /* multithreaded get commands */

Definition at line 792 of file midas.h.

◆ CMD_GET_LABEL

#define CMD_GET_LABEL   10

Definition at line 777 of file midas.h.

◆ CMD_GET_LAST

#define CMD_GET_LAST   CMD_GET_FIRST+5 /* update this if you add new commands ! */

Definition at line 799 of file midas.h.

◆ CMD_GET_RAMPDOWN

#define CMD_GET_RAMPDOWN   CMD_GET_DIRECT+4

Definition at line 805 of file midas.h.

◆ CMD_GET_RAMPUP

#define CMD_GET_RAMPUP   CMD_GET_DIRECT+3

Definition at line 804 of file midas.h.

◆ CMD_GET_STATUS

#define CMD_GET_STATUS   CMD_GET_FIRST+3

Definition at line 796 of file midas.h.

◆ CMD_GET_TEMPERATURE

#define CMD_GET_TEMPERATURE   CMD_GET_FIRST+4

Definition at line 797 of file midas.h.

◆ CMD_GET_THRESHOLD

#define CMD_GET_THRESHOLD   6

Definition at line 773 of file midas.h.

◆ CMD_GET_THRESHOLD_CURRENT

#define CMD_GET_THRESHOLD_CURRENT   7

Definition at line 774 of file midas.h.

◆ CMD_GET_THRESHOLD_ZERO

#define CMD_GET_THRESHOLD_ZERO   8

Definition at line 775 of file midas.h.

◆ CMD_GET_TRIP

#define CMD_GET_TRIP   CMD_GET_FIRST+2

Definition at line 795 of file midas.h.

◆ CMD_GET_TRIP_TIME

#define CMD_GET_TRIP_TIME   CMD_GET_DIRECT+5

Definition at line 806 of file midas.h.

◆ CMD_GET_VOLTAGE_LIMIT

#define CMD_GET_VOLTAGE_LIMIT   CMD_GET_DIRECT

Definition at line 802 of file midas.h.

◆ CMD_GETS

#define CMD_GETS   103

Definition at line 820 of file midas.h.

◆ CMD_IDLE

#define CMD_IDLE   5

Definition at line 772 of file midas.h.

◆ CMD_INIT

#define CMD_INIT   1 /* misc. commands must be below 20 !! */

Slow control device driver commands

Definition at line 768 of file midas.h.

◆ CMD_INTERRUPT_ATTACH

#define CMD_INTERRUPT_ATTACH   102

Definition at line 828 of file midas.h.

◆ CMD_INTERRUPT_DETACH

#define CMD_INTERRUPT_DETACH   103

Definition at line 829 of file midas.h.

◆ CMD_INTERRUPT_DISABLE

#define CMD_INTERRUPT_DISABLE   101

Definition at line 827 of file midas.h.

◆ CMD_INTERRUPT_ENABLE

#define CMD_INTERRUPT_ENABLE   100

Commands for interrupt events

Definition at line 826 of file midas.h.

◆ CMD_MISC_LAST

#define CMD_MISC_LAST   12 /* update this if you add new commands */

Definition at line 780 of file midas.h.

◆ CMD_NAME

#define CMD_NAME   105

Definition at line 822 of file midas.h.

◆ CMD_OPEN

#define CMD_OPEN   11

Definition at line 778 of file midas.h.

◆ CMD_PUTS

#define CMD_PUTS   102

Definition at line 819 of file midas.h.

◆ CMD_READ

#define CMD_READ   101

Definition at line 818 of file midas.h.

◆ CMD_SET

#define CMD_SET   CMD_SET_FIRST

Definition at line 783 of file midas.h.

◆ CMD_SET_CHSTATE

#define CMD_SET_CHSTATE   CMD_SET_FIRST+6

Definition at line 789 of file midas.h.

◆ CMD_SET_CURRENT_LIMIT

#define CMD_SET_CURRENT_LIMIT   CMD_SET_FIRST+2

Definition at line 785 of file midas.h.

◆ CMD_SET_FIRST

#define CMD_SET_FIRST   CMD_MISC_LAST+1 /* set commands */

Definition at line 782 of file midas.h.

◆ CMD_SET_LABEL

#define CMD_SET_LABEL   9

Definition at line 776 of file midas.h.

◆ CMD_SET_LAST

#define CMD_SET_LAST   CMD_SET_FIRST+6 /* update this if you add new commands */

Definition at line 790 of file midas.h.

◆ CMD_SET_RAMPDOWN

#define CMD_SET_RAMPDOWN   CMD_SET_FIRST+4

Definition at line 787 of file midas.h.

◆ CMD_SET_RAMPUP

#define CMD_SET_RAMPUP   CMD_SET_FIRST+3

Definition at line 786 of file midas.h.

◆ CMD_SET_TRIP_TIME

#define CMD_SET_TRIP_TIME   CMD_SET_FIRST+5

Definition at line 788 of file midas.h.

◆ CMD_SET_VOLTAGE_LIMIT

#define CMD_SET_VOLTAGE_LIMIT   CMD_SET_FIRST+1

Definition at line 784 of file midas.h.

◆ CMD_START

#define CMD_START   3

Definition at line 770 of file midas.h.

◆ CMD_STOP

#define CMD_STOP   4

Definition at line 771 of file midas.h.

◆ CMD_WRITE

#define CMD_WRITE   100

Slow control bus driver commands

Definition at line 817 of file midas.h.

◆ EL_FILE_ERROR

#define EL_FILE_ERROR   902

Definition at line 752 of file midas.h.

◆ EL_FIRST_MSG

#define EL_FIRST_MSG   905

Definition at line 755 of file midas.h.

◆ EL_LAST_MSG

#define EL_LAST_MSG   906

Definition at line 756 of file midas.h.

◆ EL_NO_MESSAGE

#define EL_NO_MESSAGE   903

Definition at line 753 of file midas.h.

◆ EL_SUCCESS

#define EL_SUCCESS   1

ELog error code

Definition at line 751 of file midas.h.

◆ EL_TRUNCATED

#define EL_TRUNCATED   904

Definition at line 754 of file midas.h.

◆ FE_ERR_DISABLED

#define FE_ERR_DISABLED   604

Definition at line 726 of file midas.h.

◆ FE_ERR_DRIVER

#define FE_ERR_DRIVER   605

Definition at line 727 of file midas.h.

◆ FE_ERR_HW

#define FE_ERR_HW   603

Definition at line 725 of file midas.h.

◆ FE_ERR_ODB

#define FE_ERR_ODB   602

Definition at line 724 of file midas.h.

◆ FE_NOT_YET_READ

#define FE_NOT_YET_READ   607

Definition at line 729 of file midas.h.

◆ FE_PARTIALLY_DISABLED

#define FE_PARTIALLY_DISABLED   606

Definition at line 728 of file midas.h.

◆ FE_SUCCESS

#define FE_SUCCESS   1

Definition at line 723 of file midas.h.

◆ FTP_FILE_ERROR

#define FTP_FILE_ERROR   803

Definition at line 745 of file midas.h.

◆ FTP_INVALID_ARG

#define FTP_INVALID_ARG   805

Definition at line 747 of file midas.h.

◆ FTP_NET_ERROR

#define FTP_NET_ERROR   802

Definition at line 744 of file midas.h.

◆ FTP_RESPONSE_ERROR

#define FTP_RESPONSE_ERROR   804

Definition at line 746 of file midas.h.

◆ FTP_SUCCESS

#define FTP_SUCCESS   1

FTP error code

Definition at line 743 of file midas.h.

◆ HS_FILE_ERROR

#define HS_FILE_ERROR   702

Definition at line 734 of file midas.h.

◆ HS_NO_MEMORY

#define HS_NO_MEMORY   703

Definition at line 735 of file midas.h.

◆ HS_SUCCESS

#define HS_SUCCESS   1

History error code

Definition at line 733 of file midas.h.

◆ HS_TRUNCATED

#define HS_TRUNCATED   704

Definition at line 736 of file midas.h.

◆ HS_UNDEFINED_EVENT

#define HS_UNDEFINED_EVENT   706

Definition at line 738 of file midas.h.

◆ HS_UNDEFINED_VAR

#define HS_UNDEFINED_VAR   707

Definition at line 739 of file midas.h.

◆ HS_WRONG_INDEX

#define HS_WRONG_INDEX   705

Definition at line 737 of file midas.h.