- added DAConverter(s) - added ADConverter(s) - Fixed some display issues - Made repair process and signalProfileGenerator calculate with voltages (signed) instead of DAC/ADC values - Fixed several bugs in task handlings - Put display data mirror into dedicated file displaycontent git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@261 05563f52-14a8-4384-a975-3d1654cca0fa
126 lines
3.9 KiB
C
126 lines
3.9 KiB
C
// -----------------------------------------------------------------------------
|
|
/// @file hsb-mrts.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 hsb-mrts.h
|
|
/// @ingroup {group_name}
|
|
|
|
#ifndef HSB_MRTS_H_
|
|
#define HSB_MRTS_H_
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Include files
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#include "stm32f10x.h"
|
|
|
|
#include "gpio.h"
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Constant and macro definitions
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#define HSB_MAINMENU_TASK_PRIORITY (2)
|
|
#define HSB_MAINMENU_TASK_STACKSIZE (1024)
|
|
|
|
#define HSB_MAINDISP_TASK_PRIORITY (2)
|
|
#define HSB_MAINDISP_TASK_STACKSIZE (512)
|
|
|
|
#define HSB_MAINREPR_TASK_PRIORITY (2)
|
|
#define HSB_MAINREPR_TASK_STACKSIZE (1024)
|
|
#define HSB_MAINREPR_OOL_DURATION (20)
|
|
#define HSB_MAINREPR_OOL_VALUE (200)
|
|
|
|
#define HSB_ADC_ANODE_MIN_VOLTAGE (0)
|
|
#define HSB_ADC_ANODE_MAX_VOLTAGE (10042)
|
|
#define HSB_ADC_CMCP_MIN_VOLTAGE (0)
|
|
#define HSB_ADC_CMCP_MAX_VOLTAGE (-2018)
|
|
#define HSB_ADC_TESLA_MIN_VOLTAGE (0)
|
|
#define HSB_ADC_TESLA_MAX_VOLTAGE (6070)
|
|
|
|
#define HSB_DAC_ANODE_MIN_VOLTAGE (0)
|
|
#define HSB_DAC_ANODE_MAX_VOLTAGE (10500)
|
|
#define HSB_DAC_CMCP_MIN_VOLTAGE (0)
|
|
#define HSB_DAC_CMCP_MAX_VOLTAGE (-2200)
|
|
#define HSB_DAC_TESLA_MIN_VOLTAGE (0)
|
|
#define HSB_DAC_TESLA_MAX_VOLTAGE (6200)
|
|
|
|
|
|
// Exports of objects on application level
|
|
extern struct Display* const mainDisplay;
|
|
// -----------------------------------------------------------------------------
|
|
// Type definitions.
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Function declarations
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
/** ----------------------------------------------------------------------------
|
|
* hsb_generateStartScreen
|
|
* Description of function
|
|
*
|
|
* @param Display
|
|
* @param
|
|
* @return ErrorStatus
|
|
*
|
|
* @todo
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
extern ErrorStatus hsb_generateStartScreen(struct Display* Display);
|
|
|
|
|
|
/** ----------------------------------------------------------------------------
|
|
* hsb_solenoidLock
|
|
* Locks the solenoid
|
|
*
|
|
*
|
|
* @return ErrorStatus SUCCESS if locking was successful
|
|
* ERROR otherwise
|
|
*
|
|
* @todo
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
extern ErrorStatus hsb_solenoidLock (void);
|
|
|
|
|
|
/** ----------------------------------------------------------------------------
|
|
* hsb_solenoidUnlock
|
|
* Unlocks the solenoid
|
|
*
|
|
*
|
|
* @return ErrorStatus SUCCESS if locking was successful
|
|
* ERROR otherwise
|
|
*
|
|
* @todo
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
extern ErrorStatus hsb_solenoidUnlock (void);
|
|
|
|
|
|
extern ErrorStatus hsb_enableSafety(void);
|
|
extern ErrorStatus hsb_disableSafety(void);
|
|
#endif /* HSB_MRTS_H_ */
|