- #include "Config.h" // Global Configuration - do not remove!
- #ifndef SAMP_API_H_
- #define SAMP_API_H_
- #include "IncludeSysDefs.h"
- #include "KerneluITRONrtos.h"
- #include "PlaycoreSAMPschedulerSAMPScheduler.h"
- #include "Playcorecoremaincoregdef.h"
- // *****************************************************************************
- // * Types definition
- // *****************************************************************************
- //API functions ID
- #define SAMP_API_START 0x0000
- //NAV function IDs
- #define NAV_GROUP 0x1
- #define NAV_AREASWITCH 0x0101
- #define NAV_PLAYATTIMECODE 0x0102
- #define NAV_PLAYTRACK 0x0103
- #define NAV_STOP 0x0104
- #define NAV_PAUSE 0x0105
- #define NAV_RESUMEPLAY 0x0106
- #define NAV_NEXTTRACK 0x0107
- #define NAV_PREVIOUSTRACK 0x0108
- #define NAV_FORWORDSCAN 0x0109
- #define NAV_BACKWORDSCAN 0x010a
- #define NAV_REPEAT 0x010b
- #define NAV_REPEATAB 0x010c
- #define NAV_SHUFFLE 0x010d
- #define NAV_INTROSCAN 0x010e
- #define NAV_SETPLAYSEQUENCE 0x010f
- #define NAV_PLAYSEQUENCEDEF 0x0110
- #define NAV_SUBSCRIBE 0x0112
- #define NAV_SUBSCRIBE_1394 0x0113
- #define NAV_GETSTATE 0x0114
- #define NAV_GETPLAYLIST 0x0115
- //SDI function IDs
- #define SDI_GROUP 0x2
- #define SDI_SETAVAILABLECHARSETS 0x0201
- #define SDI_SETLANGPREF 0x0202
- #define SDI_GETALBUMINFO 0x0203
- #define SDI_GETALBUMTEXT 0x0204
- #define SDI_GETDISCINFO 0x0205
- #define SDI_GETDISCTEXT 0x0206
- #define SDI_GETAREATEXT 0x0207
- #define SDI_GETTRACKINFO 0x0208
- #define SDI_GETTRACKTEXT 0x0209
- #define SDI_GETNUMOFINDEX 0x020a
- #define SDI_GETDTCPINFO 0x020b
- #define SDI_GETSPECVERSION 0x020c
- #define SDI_GETAREADATA 0x020d
- //SDM function IDs
- #define SDM_GROUP 0x3
- #define SDM_GETHANDLER 0x0301
- #define SDM_SETENGINETYPE 0x0302
- #define SDM_SETDACPINNING 0x0303
- #define SDM_SETDSDCLKPOLARITY 0x0304
- #define SDM_SETAUDIOCLK 0x0305
- #define SDM_SETSYSCLK 0x0306
- #define SDM_SETBURSTLEN 0x0307
- #define SDM_ENA_DTCP 0x0308
- //APM function IDs
- #define APM_GROUP 0x4
- #define APM_SET_INPUTMODE 0x0401
- #define APM_SET_OUTPUTMODE 0x0402
- #define APM_SET_6CHDOWNMIX 0x0403
- #define APM_SET_2CHDOWNMIX 0x0404
- #define APM_SET_SPEAKERS 0x0405
- #define APM_SET_ATTENUATION 0x0406
- #define APM_SET_DELAY 0x0407
- #define APM_SET_FILTERMODE 0x0408
- #define APM_SET_PCMUPSAMPLING 0x0409
- #define APM_SET_BASSFILTERS 0x040a
- #define APM_SET_PIO 0x040b
- //SAMP function IDs
- #define SAMP_GROUP 0x5
- #define SAMP_INIT 0x500
- #define SAMP_TERM 0x501
- #define SAMP_SACDDISCREC 0x502
- #define SAMP_ACTIVATE 0x503
- #define SAMP_DEACTIVATE 0x504
- #define SAMP_REACTIVATE 0x505
- #define SAMP_SUBSCRIBE 0x506
- //for test only
- #ifdef TEST_HARNASS
- #define OSA_GROUP 0x6
- #define OSA_TASK_CREATE 0x600
- #define OSA_TASK_DELETE 0x601
- #define OSA_SEM_CREATE 0x602
- #define OSA_SEM_DELETE 0x603
- #define OSA_SEM_V 0x604
- #endif
- BOOL SAMP_APICallRequest (UINT32 APIFunction, SAMP(ErrCode) *errPtr);
- #endif