GlobsDef.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
- /*
- File name: GolbsDef.h
- Description: defines structures for globle variables of SACD navigator.
- */
- #ifndef NAV_SACD_GLOBSDEF_H
- #define NAV_SACD_GLOBSDEF_H
- #include "Playcoresampsamp_gen.h"
- #include "Playcoresampsamp_nav.h"
- #include "PlaycoresampschedulerSAMPScheduler.h"
- //staticly allocated resources definition
- #define NUMBER_OF_TASKS 6
- #define NUMBER_OF_SEMAPHORES 13
- #define NUMBER_OF_MAILBOXES 8
- typedef struct SACD_globals_TAG {
- BYTE samp_state; //indicate SAMP activated or not?
- DWORD nav_state; //keeps the last event received.
- int play_speed; //normal speed = 1.
- DWORD iCurrentTime;
- DWORD iCurrentAbsTime;
- SAMP(SACD_ChannelsConfigDef) channels;
- BOOL gbPlayPauseArea;
- UINT16 currentTrack;
- UINT16 currentIndex;
- #ifndef SACD_AREA_INFO_INSDRAM
- WORD StereoAreaInfoPtr;
- WORD MultiAreaInfoPtr;
- //todo: ask Philips to save area info in SC.
- SAMP(SAMP_AreaInfoDef) *pAreaStereo;
- SAMP(SAMP_AreaInfoDef) *pAreaMulti;
- #endif
- SAMP(Bool) hybrid;
- IDENT currentTask;
- UINT16 initialStack;
- //Tasks
- TCB task[NUMBER_OF_TASKS + 1];
- //Semaphores
- SEMAPHORE semaphore[NUMBER_OF_SEMAPHORES];
- //mailboxes
- MAILBOX mailbox[NUMBER_OF_MAILBOXES];
- UINT8 mailbox_buff[NUMBER_OF_MAILBOXES][MESSAGE_LENGTH*MAX_NUM_OF_MESSAGE];
- UINT32 samp_api_param[8];
- int nav_handler_id;
- SAMP(SACD_Area) activeArea;
- SAMP(NAV_ProgramListDef) ProgramList; //program list for program mode only. Not used for sequential playback.
- } S_SACD_GLOBALS;
- #define SACD_GLOBALS (gns.sacd)
- #endif //NAV_SACD_GLOBSDEF_H