// $RCSfile: hk_ask.h,v $Revision: 1.20 $Date: 2005/03/11 15:08:57 #ifndef __HK_ASK_H__ #define __HK_ASK_H__ //---- Global variables defined in this module --------------------------------- extern unsigned int Hk_enable; //!< Controls HK enable/disable extern unsigned int HK_is_asking_spectrometry; //!< true is hk_ask is asking sd frames extern int HK_LCUnonresp_Nbreach; //!< Max number of breach for lcu mode check extern int HK_LCUnonresp_check; //!< boolean on/off for lcu mode check extern int HK_lcu_nonres_breach; // to count the times that the LCU does not respond to a HK request extern int HK_lcu_nonres_ok; // to count the times that the LCU does not respond to a HK request extern int HK_LCUcrc_check; //!< boolean on/off for lcu periodic crc check //------ Tasks defined in this module ------------------------------------------ extern void hk_ask(void); //---- Global functions defined in this module --------------------------------- extern void hk_init( void ); extern void hk_process_wbs(int fifo_id, int* pdata); extern void hk_process_hrs(int fifo_id, int* pdata); extern void start_single_hk (LS_HDL_MSG *); extern void single_hk(void); extern void hk_switch_FCU_err_count_on (TC_packet *); extern void hk_switch_FCU_err_count_off(int); extern void hk_switch_limit_check_off(unsigned int subs); extern void hk_switch_limit_check_on (TC_packet *); extern void set_hk_rate (TC_packet * packet); extern int start_single_HK_LCU(LS_HDL_MSG *msg); extern void send_single_HK_LCU_report(void); extern int start_mem_HK_LCU(LS_HDL_MSG *msg); extern void send_mem_HK_LCU_report(void); extern unsigned int hk_limit_check_status(void); extern void hk_restart_FCU_err_count (int board); //---- Defines ----------------------------------------------------------------- #define MAX_ICU_HK 32 /* number of OBS & ICU HK */ #endif // __HK_ASK_H__