- Added WARNING handler - put voltage calculations to dedicated module fixed last errors. Updated menu repair screen without ERROR from PID This is version 0.9.0.3, which is used for the first duration test Will also be tagged git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@272 05563f52-14a8-4384-a975-3d1654cca0fa
119 lines
3.8 KiB
C
119 lines
3.8 KiB
C
// -----------------------------------------------------------------------------
|
|
/// @file MenuStates.h
|
|
/// @brief File description
|
|
// -----------------------------------------------------------------------------
|
|
// Micro-Key bv
|
|
// Industrieweg 28, 9804 TG Noordhorn
|
|
// Postbus 92, 9800 AB Zuidhorn
|
|
// The Netherlands
|
|
// Tel: +31 594 503020
|
|
// Fax: +31 594 505825
|
|
// Email: support@microkey.nl
|
|
// Web: www.microkey.nl
|
|
// -----------------------------------------------------------------------------
|
|
/// $Revision$
|
|
/// $Author$
|
|
/// $Date$
|
|
// (c) 2015 Micro-Key bv
|
|
// -----------------------------------------------------------------------------
|
|
|
|
/// @defgroup {group_name} {group_description}
|
|
/// Description
|
|
|
|
/// @file MenuStates.h
|
|
/// @ingroup {group_name}
|
|
|
|
#ifndef MENUSTATES_H_
|
|
#define MENUSTATES_H_
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Include files
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Constant and macro definitions
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Type definitions.
|
|
// -----------------------------------------------------------------------------
|
|
|
|
typedef enum
|
|
{
|
|
// --------------------------------------------------------------------------
|
|
// MAIN MENU
|
|
// --------------------------------------------------------------------------
|
|
RM_MAINMENU = 0,
|
|
// For Cathode/MCP, a menu screen is required prior to the repair menu
|
|
RM_REPAIR_CATHODEMCP_SELECT,
|
|
// --------------------------------------------------------------------------
|
|
// REPAIR TUBE MENUs
|
|
// --------------------------------------------------------------------------
|
|
// The repair menu screen
|
|
RM_REPAIRMENU,
|
|
// Select and show presets
|
|
RM_PRESETMENU,
|
|
RM_PRESET_PRINT,
|
|
// Repair screens
|
|
RM_START_REPAIR,
|
|
RM_REPAIR_RUNNING,
|
|
RM_FINISH_CONTROL,
|
|
RM_FINISH,
|
|
// Pause screens
|
|
RM_REPAIR_ASK_PAUSE,
|
|
RM_REPAIR_PAUSE,
|
|
|
|
// --------------------------------------------------------------------------
|
|
// ADMINISTRATION MENUs
|
|
// --------------------------------------------------------------------------
|
|
RM_ADMIN_CATHODEMCP_SELECT,
|
|
RM_ADMINMENU_PIN_VERIFICATION,
|
|
RM_ADMINMENU,
|
|
RM_ADMIN_CHANGEPIN_FIRST_INSERT,
|
|
RM_ADMIN_CHANGEPIN_SECOND_INSERT,
|
|
RM_ADMIN_IOCONTROL,
|
|
RM_ADMIN_PRESET_CONFIG_SELECT,
|
|
RM_ADMIN_PRESET_CONFIG_FIRST_SOFTSTART,
|
|
RM_ADMIN_PRESET_CONFIG_FIRST_DURATION,
|
|
RM_ADMIN_PRESET_CONFIG_FIRST_VOLTAGE,
|
|
RM_ADMIN_PRESET_CONFIG_SECOND_SOFTSTART,
|
|
RM_ADMIN_PRESET_CONFIG_SECOND_DURATION,
|
|
RM_ADMIN_PRESET_CONFIG_SECOND_VOLTAGE,
|
|
RM_ADMIN_PID_CONFIG_KP,
|
|
RM_ADMIN_PID_CONFIG_KI,
|
|
RM_ADMIN_PID_CONFIG_KD,
|
|
RM_ADMIN_INFO,
|
|
|
|
RM_ADMIN_IO_INTERLOCK,
|
|
RM_ADMIN_IO_SOLENOID,
|
|
RM_ADMIN_IO_VOLTAGE_IN,
|
|
RM_ADMIN_IOCONTROL_VOLTAGE_OUT_CHANNEL1,
|
|
RM_ADMIN_IOCONTROL_VOLTAGE_OUT_CHANNEL2,
|
|
RM_ADMIN_IOCONTROL_VOLTAGE_OUT_CHANNEL3,
|
|
RM_ADMIN_IOCONTROL_VOLTAGE_OUT_CLEANUP,
|
|
RM_ADMIN_IO_TESLAGUN,
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
// CALIBRATION MENUs
|
|
// --------------------------------------------------------------------------
|
|
RM_CALIBRATIONMENU_PIN_VERIFICATION,
|
|
RM_CALIBRATIONMENU,
|
|
|
|
RM_ERROR_STATE,
|
|
RM_WARNING_STATE,
|
|
RM_NO_MENU,
|
|
RM_NUMBER_OF_MENUS
|
|
} T_MenuState;
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Function declarations
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
#endif /* MENUSTATES_H_ */
|