TAP_GetSystemProc
Additional Documentation
Returns the address of a subset of TAP API functions. Some are not declared in the current release of the TAP API.
void* TAP_GetSystemProc( int functionId );
functionId can be one of the following values
Value | Function |
---|
0 | TAP_Hdd_unknown0 - hdd related, called by debug functions 'rs', 'rc', read sector? |
1 | TAP_Hdd_unknown1 - hdd related, called by debug functions 'ws', 'wc', write sector? |
2 | TAP_unknown2 - writes to eeprom? @ 0xa3ffffe0, 0xa3ffffe1 |
3 | TAP_Hdd_unknown3 - ata/dma related, ??? |
4 | TAP_Hdd_SetBookmark |
5 | TAP_Hdd_GotoBookmark |
6 | TAP_Hdd_ChangePlaybackPos |
7 | TAP_ControlEit |
8 | TAP_SetBk |
9 | TAP_EPG_UpdateEvent |
10 | TAP_EPG_DeleteEvent |
11 | TAP_EPG_GetExtInfo |
12 | TAP_Channel_IsStarted |
13 | TAP_Vfd_GetStatus |
14 | TAP_Vfd_Control |
15 | TAP_Vfd_SendData |
16 | TAP_Win_SetAvtice |
17 | TAP_Win_SetDrawItemFunc |
18 | TAP_SysOsdControl |
19 | TAP_Hdd_Move |
20 | TAP_Osd_unknown20 - osd related? |
Example Usage
Example code:
typedef dword (*TAP_Hdd_MoveFn)(char *from_dir, char *to_dir, char *filename);
TAP_Hdd_MoveFn TAP_Hdd_Move;
enum
{
oTAP_Hdd_unknown0 = 0x00,
oTAP_Hdd_unknown1 = 0x01,
oTAP_unknown2 = 0x02,
oTAP_Hdd_unknown3 = 0x03,
oTAP_Hdd_SetBookmark = 0x04,
oTAP_Hdd_GotoBookmark = 0x05,
oTAP_Hdd_ChangePlaybackPos = 0x06,
oTAP_ControlEit = 0x07,
oTAP_SetBk = 0x08,
oTAP_EPG_UpdateEvent = 0x09,
oTAP_EPG_DeleteEvent = 0x0a,
oTAP_EPG_GetExtInfo = 0x0b,
oTAP_Channel_IsStarted = 0x0c,
oTAP_Vfd_GetStatus = 0x0d,
oTAP_Vfd_Control = 0x0e,
oTAP_Vfd_SendData = 0x0f,
oTAP_Win_SetAvtice = 0x10,
oTAP_Win_SetDrawItemFunc = 0x11,
oTAP_SysOsdControl = 0x12,
oTAP_Hdd_Move = 0x13,
oTAP_Osd_unknown20 = 0x14,
};
extern void* (*TAP_GetSystemProc)( int );
int TAP_Main()
{
TAP_Hdd_Move = (TAP_Hdd_MoveFn)TAP_GetSystemProc(oTAP_Hdd_Move);
if ( TAP_Hdd_Move != NULL )
TAP_Hdd_Move("/DataFiles", "/DataFiles/Films", "The Matrix.rec");
return 0;
}