Other errors
[Midas Error definition]


Defines

#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 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 CMD_INIT   1
#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
#define CMD_SET_FIRST   CMD_MISC_LAST+1
#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_LAST   CMD_SET_FIRST+5
#define CMD_GET_FIRST   CMD_SET_LAST+1
#define CMD_GET   CMD_GET_FIRST
#define CMD_GET_CURRENT   CMD_GET_FIRST+1
#define CMD_GET_LAST   CMD_GET_FIRST+1
#define CMD_GET_DIRECT   CMD_GET_LAST+1
#define CMD_GET_DEMAND   CMD_GET_DIRECT
#define CMD_GET_VOLTAGE_LIMIT   CMD_GET_DIRECT+1
#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_DIRECT_LAST   CMD_GET_DIRECT+5
#define CMD_ENABLE_COMMAND   (1<<14)
#define CMD_DISABLE_COMMAND   (1<<15)
#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, p, t)   info->bd(CMD_READ, info->bd_info, s, z, p, 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)


Define Documentation

#define AL_ERROR_ODB   1003

Definition at line 690 of file midas.h.

Referenced by al_reset_alarm(), and al_trigger_alarm().

#define AL_INVALID_NAME   1002

Definition at line 689 of file midas.h.

Referenced by al_reset_alarm().

#define AL_RESET   1004

Definition at line 691 of file midas.h.

Referenced by al_reset_alarm(), and command_loop().

#define AL_SUCCESS   1

Alarm error code -

Definition at line 688 of file midas.h.

Referenced by al_check(), al_reset_alarm(), and al_trigger_alarm().

#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 753 of file midas.h.

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

Definition at line 755 of file midas.h.

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

Definition at line 754 of file midas.h.

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

Definition at line 756 of file midas.h.

#define CMD_CLOSE   12

Definition at line 706 of file midas.h.

#define CMD_DEBUG   104

Definition at line 741 of file midas.h.

#define CMD_DISABLE_COMMAND   (1<<15)

Definition at line 733 of file midas.h.

#define CMD_ENABLE_COMMAND   (1<<14)

Definition at line 732 of file midas.h.

#define CMD_EXIT   2

Definition at line 696 of file midas.h.

Referenced by device_driver(), and main().

#define CMD_GET   CMD_GET_FIRST

Definition at line 719 of file midas.h.

#define CMD_GET_CURRENT   CMD_GET_FIRST+1

Definition at line 720 of file midas.h.

#define CMD_GET_CURRENT_LIMIT   CMD_GET_DIRECT+2

Definition at line 726 of file midas.h.

#define CMD_GET_DEMAND   CMD_GET_DIRECT

Definition at line 724 of file midas.h.

#define CMD_GET_DIRECT   CMD_GET_LAST+1

Definition at line 723 of file midas.h.

#define CMD_GET_DIRECT_LAST   CMD_GET_DIRECT+5

Definition at line 730 of file midas.h.

#define CMD_GET_FIRST   CMD_SET_LAST+1

Definition at line 718 of file midas.h.

Referenced by device_driver(), and sc_thread().

#define CMD_GET_LABEL   10

Definition at line 704 of file midas.h.

Referenced by device_driver().

#define CMD_GET_LAST   CMD_GET_FIRST+1

Definition at line 721 of file midas.h.

Referenced by device_driver(), and sc_thread().

#define CMD_GET_RAMPDOWN   CMD_GET_DIRECT+4

Definition at line 728 of file midas.h.

#define CMD_GET_RAMPUP   CMD_GET_DIRECT+3

Definition at line 727 of file midas.h.

#define CMD_GET_THRESHOLD   6

Definition at line 700 of file midas.h.

#define CMD_GET_THRESHOLD_CURRENT   7

Definition at line 701 of file midas.h.

#define CMD_GET_THRESHOLD_ZERO   8

Definition at line 702 of file midas.h.

#define CMD_GET_TRIP_TIME   CMD_GET_DIRECT+5

Definition at line 729 of file midas.h.

#define CMD_GET_VOLTAGE_LIMIT   CMD_GET_DIRECT+1

Definition at line 725 of file midas.h.

#define CMD_GETS   103

Definition at line 740 of file midas.h.

#define CMD_IDLE   5

Definition at line 699 of file midas.h.

Referenced by scheduler().

#define CMD_INIT   1

Slow control device driver commands

Definition at line 695 of file midas.h.

Referenced by device_driver().

#define CMD_INTERRUPT_ATTACH   102

Definition at line 748 of file midas.h.

Referenced by initialize_equipment(), and interrupt_configure().

#define CMD_INTERRUPT_DETACH   103

Definition at line 749 of file midas.h.

Referenced by interrupt_configure(), and main().

#define CMD_INTERRUPT_DISABLE   101

Definition at line 747 of file midas.h.

Referenced by interrupt_configure(), interrupt_enable(), main(), and readout_enable().

#define CMD_INTERRUPT_ENABLE   100

Commands for interrupt events

Definition at line 746 of file midas.h.

Referenced by interrupt_configure(), interrupt_enable(), and readout_enable().

#define CMD_MISC_LAST   12

Definition at line 707 of file midas.h.

#define CMD_NAME   105

Definition at line 742 of file midas.h.

#define CMD_OPEN   11

Definition at line 705 of file midas.h.

#define CMD_PUTS   102

Definition at line 739 of file midas.h.

#define CMD_READ   101

Definition at line 738 of file midas.h.

#define CMD_SET   CMD_SET_FIRST

Definition at line 710 of file midas.h.

#define CMD_SET_CURRENT_LIMIT   CMD_SET_FIRST+2

Definition at line 712 of file midas.h.

#define CMD_SET_FIRST   CMD_MISC_LAST+1

Definition at line 709 of file midas.h.

Referenced by device_driver(), and sc_thread().

#define CMD_SET_LABEL   9

Definition at line 703 of file midas.h.

Referenced by device_driver().

#define CMD_SET_LAST   CMD_SET_FIRST+5

Definition at line 716 of file midas.h.

Referenced by device_driver(), and sc_thread().

#define CMD_SET_RAMPDOWN   CMD_SET_FIRST+4

Definition at line 714 of file midas.h.

#define CMD_SET_RAMPUP   CMD_SET_FIRST+3

Definition at line 713 of file midas.h.

#define CMD_SET_TRIP_TIME   CMD_SET_FIRST+5

Definition at line 715 of file midas.h.

#define CMD_SET_VOLTAGE_LIMIT   CMD_SET_FIRST+1

Definition at line 711 of file midas.h.

#define CMD_START   3

Definition at line 697 of file midas.h.

Referenced by device_driver().

#define CMD_STOP   4

Definition at line 698 of file midas.h.

Referenced by device_driver(), and main().

#define CMD_WRITE   100

Slow control bus driver commands

Definition at line 737 of file midas.h.

#define EL_FILE_ERROR   902

Definition at line 680 of file midas.h.

Referenced by el_submit(), and show_elog_page().

#define EL_FIRST_MSG   905

Definition at line 683 of file midas.h.

#define EL_LAST_MSG   906

Definition at line 684 of file midas.h.

#define EL_NO_MESSAGE   903

Definition at line 681 of file midas.h.

#define EL_SUCCESS   1

ELog error code -

Definition at line 679 of file midas.h.

Referenced by el_submit(), show_elog_delete(), show_elog_page(), and show_elog_submit_query().

#define EL_TRUNCATED   904

Definition at line 682 of file midas.h.

#define FE_ERR_DISABLED   604

Definition at line 656 of file midas.h.

Referenced by display(), and initialize_equipment().

#define FE_ERR_DRIVER   605

Definition at line 657 of file midas.h.

Referenced by device_driver(), and display().

#define FE_ERR_HW   603

Definition at line 655 of file midas.h.

Referenced by display().

#define FE_ERR_ODB   602

Definition at line 654 of file midas.h.

Referenced by display().

#define FE_SUCCESS   1

Definition at line 653 of file midas.h.

Referenced by check_polled_events(), device_driver(), display(), main(), register_equipment(), scheduler(), and send_all_periodic_events().

#define FTP_FILE_ERROR   803

Definition at line 673 of file midas.h.

Referenced by ftp_get(), and ftp_put().

#define FTP_INVALID_ARG   805

Definition at line 675 of file midas.h.

#define FTP_NET_ERROR   802

Definition at line 672 of file midas.h.

Referenced by ftp_command(), ftp_connect(), ftp_data(), ftp_login(), ftp_port(), ftp_send_message(), and tr_start().

#define FTP_RESPONSE_ERROR   804

Definition at line 674 of file midas.h.

Referenced by ftp_command(), and tr_start().

#define FTP_SUCCESS   1

FTP error code -

Definition at line 671 of file midas.h.

Referenced by ftp_bye(), ftp_command(), ftp_connect(), ftp_data(), ftp_login(), ftp_port(), ftp_pwd(), and ftp_send_message().

#define HS_FILE_ERROR   702

Definition at line 662 of file midas.h.

Referenced by MidasHistory::GetEventsFromEquipment(), MidasHistory::GetEventsFromOdbEvents(), MidasHistory::GetEventsFromOdbTags(), MidasHistory::GetTagsFromEquipment(), MidasHistory::GetTagsFromOdb(), hs_connect_odbc(), SqlHistory::hs_define_event(), hs_dump(), MidasHistory::hs_get_events(), MidasHistory::hs_get_tags(), hs_get_tags_odbc(), SqlHistory::hs_read(), hs_read_odbc(), SqlHistory::hs_write_event(), hs_write_event_odbc(), ReadIndex(), and SqlHistory::Reconnect().

#define HS_NO_MEMORY   703

Definition at line 663 of file midas.h.

Referenced by hs_dump().

#define HS_SUCCESS   1

History error code -

Definition at line 661 of file midas.h.

Referenced by add_event(), export_hist(), generate_hist_graph(), MidasHistory::GetEventsFromEquipment(), MidasHistory::GetEventsFromOdbEvents(), MidasHistory::GetEventsFromOdbTags(), MidasHistory::GetTagsFromEquipment(), MidasHistory::GetTagsFromHS(), MidasHistory::GetTagsFromOdb(), SqlHistory::hs_clear_cache(), MidasHistory::hs_clear_cache(), SqlHistory::hs_connect(), MidasHistory::hs_connect(), hs_connect_odbc(), SqlHistory::hs_define_event(), hs_define_event_odbc(), SqlHistory::hs_disconnect(), MidasHistory::hs_disconnect(), hs_disconnect_odbc(), hs_dump(), SqlHistory::hs_get_events(), MidasHistory::hs_get_events(), SqlHistory::hs_get_tags(), MidasHistory::hs_get_tags(), hs_get_tags_odbc(), SqlHistory::hs_read(), MidasHistory::hs_read(), hs_read_odbc(), SqlHistory::hs_read_old_style(), hs_set_alarm_odbc(), hs_set_path(), SqlHistory::hs_write_event(), hs_write_event_odbc(), open_history(), ReadIndex(), SqlHistory::Reconnect(), set_history_path(), MidasHistory::xhs_event_id(), and SqlHistory::XReadIndex().

#define HS_TRUNCATED   704

Definition at line 664 of file midas.h.

Referenced by export_hist(), and MidasHistory::hs_read().

#define HS_UNDEFINED_EVENT   706

Definition at line 666 of file midas.h.

Referenced by SqlHistory::hs_get_tags(), SqlHistory::hs_read(), MidasHistory::hs_read(), and SqlHistory::hs_write_event().

#define HS_UNDEFINED_VAR   707

Definition at line 667 of file midas.h.

Referenced by export_hist(), generate_hist_graph(), SqlHistory::hs_read(), SqlHistory::hs_read_old_style(), and MidasHistory::xhs_event_id().

#define HS_WRONG_INDEX   705

Definition at line 665 of file midas.h.


Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk