/************************************************************************* $Archive: /PACS/OnBoard/t_status.h $ $Revision: 1.11 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: t_status.h,v $ Revision 1.11 2009/04/23 13:51:12 amazy 6.029 * * 10 3/14/06 4:32p Pacs Egse * Version 6.001 * Cleaned and commented *************************************************************************/ #define T_STATUS_H /* ENUM : Task Status ****************** AUTHOR : AMazy USE : This enumeration contains all the status that are common to all tasks. Each task can furthermore define its own status values outside the ones defined in this enumeration. The 16 LSB are used to store an error code while the 16 MSB are used to store the current status of the task. Note : this structure is only used for the On-board Software (OBS) Global Status. */ #define K_BMASK_TASK_STATUS_ERROR_CODE 0x0000FFFF // mask for errors #define K_BMASK_TASK_STATUS_ALIVE 0x00010000 #define K_BMASK_TASK_STATUS_DEAD 0x00000000 #define K_BMASK_TASK_STATUS_LIVE_STATUS 0x00010000 #define K_BMASK_OBS_STATUS 0x00010000 #define K_BMASK_OBS_STATUS_ANY_ERROR_IN_OBS 0x00020000 #define K_BMASK_OBS_STATUS_COPY_IN_EEPROM 0x00040000 #define K_BMASK_TASK_STATUS_TASK_IN_ERROR 0x00060000 #define K_BMASK_TASK_STATUS_NO_ERROR_IN_TASK 0x00000000 #define K_BMASK_TASK_STATUS_ERROR_STATUS 0x00060000 #define K_BMASK_TASK_STATUS_ERROR_NOT_SIGNALED 0x00060000 #define K_BMASK_TASK_STATUS_ERROR_SIGNALED 0x00020000 #define K_BMASK_TASK_STATUS_LINK_NOT_CONNECTED 0x00080000 #define K_BMASK_TASK_STATUS_LINK_CONNECTED 0x00000000 #define K_BMASK_TASK_STATUS_LINK_STATUS 0x00080000 // custom status for each task shall use bits 20 -> 31