Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
trk.h File Reference

Go to the source code of this file.

Classes

struct  TRKBuffer
 
struct  TRKFramingState
 
struct  TRKState_PPC
 
struct  CommandReply
 
struct  ProcessorRestoreFlags_PPC
 

Typedefs

typedef int UARTError
 
typedef int MessageBufferID
 
typedef struct TRKBuffer TRKBuffer
 
typedef struct TRKFramingState TRKFramingState
 
typedef struct TRKState_PPC TRKState_PPC
 
typedef struct CommandReply CommandReply
 
typedef struct ProcessorRestoreFlags_PPC ProcessorRestoreFlags_PPC
 

Enumerations

enum  HardwareType { HARDWARE_AMC_DDH = 0 , HARDWARE_GDEV = 1 , HARDWARE_BBA = 2 }
 
enum  DSError {
  DS_NoError = 0x0 , DS_StepError = 0x1 , DS_ParameterError = 0x2 , DS_EventQueueFull = 0x100 ,
  DS_NoMessageBufferAvailable = 0x300 , DS_MessageBufferOverflow = 0x301 , DS_MessageBufferReadError = 0x302 , DS_DispatchError = 0x500 ,
  DS_InvalidMemory = 0x700 , DS_InvalidRegister = 0x701 , DS_CWDSException = 0x702 , DS_UnsupportedError = 0x703 ,
  DS_InvalidProcessID = 0x704 , DS_InvalidThreadID = 0x705 , DS_OSError = 0x706 , DS_Error800 = 0x800
}
 
enum  DSFileHandle { DS_Stdin = 0 , DS_Stdout = 1 , DS_Stderr = 2 }
 
enum  DSIOResult { DS_IONoError = 0 , DS_IOError = 1 , DS_IOEOF = 2 }
 
enum  MessageCommandID {
  DSMSG_Ping = 0x0 , DSMSG_Connect = 0x1 , DSMSG_Disconnect = 0x2 , DSMSG_Reset = 0x3 ,
  DSMSG_Versions = 0x4 , DSMSG_SupportMask = 0x5 , DSMSG_Override = 0x7 , DSMSG_ReadMemory = 0x10 ,
  DSMSG_WriteMemory = 0x11 , DSMSG_ReadRegisters = 0x12 , DSMSG_WriteRegisters = 0x13 , DSMSG_SetOption = 0x17 ,
  DSMSG_Continue = 0x18 , DSMSG_Step = 0x19 , DSMSG_Stop = 0x1A , DSMSG_ReplyACK = 0x80 ,
  DSMSG_NotifyStopped = 0x90 , DSMSG_NotifyException = 0x91 , DSMSG_WriteFile = 0xD0 , DSMSG_ReadFile = 0xD1 ,
  DSMSG_OpenFile = 0xD2 , DSMSG_CloseFile = 0xD3 , DSMSG_PositionFile = 0xD4 , DSMSG_ReplyNAK = 0xFF
}
 
enum  DSMessageRegisterOptions { DSREG_Default = 0 , DSREG_FP = 1 , DSREG_Extended1 = 2 , DSREG_Extended2 = 3 }
 
enum  DSMessageStepOptions { DSSTEP_IntoCount = 0x0 , DSSTEP_IntoRange = 0x1 , DSSTEP_OverCount = 0x10 , DSSTEP_OverRange = 0x11 }
 
enum  DSReplyError {
  DSREPLY_NoError = 0x0 , DSREPLY_Error = 0x1 , DSREPLY_PacketSizeError = 0x2 , DSREPLY_CWDSError = 0x3 ,
  DSREPLY_EscapeError = 0x4 , DSREPLY_BadFCS = 0x5 , DSREPLY_Overflow = 0x6 , DSREPLY_SequenceMissing = 0x7 ,
  DSREPLY_UnsupportedCommandError = 0x10 , DSREPLY_ParameterError = 0x11 , DSREPLY_UnsupportedOptionError = 0x12 , DSREPLY_InvalidMemoryRange = 0x13 ,
  DSREPLY_InvalidRegisterRange = 0x14 , DSREPLY_CWDSException = 0x15 , DSREPLY_NotStopped = 0x16 , DSREPLY_BreakpointsFull = 0x17 ,
  DSREPLY_BreakpointConflict = 0x18 , DSREPLY_OSError = 0x20 , DSREPLY_InvalidProcessID = 0x21 , DSREPLY_InvalidThreadID = 0x22 ,
  DSREPLY_DebugSecurityError = 0x23
}
 
enum  ReceiverState { DSRECV_Wait = 0 , DSRECV_Found = 1 , DSRECV_InFrame = 2 , DSRECV_FrameOverflow = 3 }
 
enum  {
  DSMSGMEMORY_Segmented = 0x01 , DSMSGMEMORY_Extended = 0x02 , DSMSGMEMORY_Protected = 0x04 , DSMSGMEMORY_Userview = 0x08 ,
  DSMSGMEMORY_Space_program = 0x00 , DSMSGMEMORY_Space_data = 0x40 , DSMSGMEMORY_Space_io = 0x80
}
 
enum  NubEventType {
  NUBEVENT_Null = 0 , NUBEVENT_Shutdown = 1 , NUBEVENT_Request = 2 , NUBEVENT_Breakpoint = 3 ,
  NUBEVENT_Exception = 4 , NUBEVENT_Support = 5
}
 
enum  ValidMemoryOptions { VALIDMEM_Readable = 0 , VALIDMEM_Writeable = 1 }
 
enum  MemoryAccessOptions { MEMACCESS_UserMemory = 0 , MEMACCESS_DebuggerMemory = 1 }
 
enum  UARTErrorOptions {
  UART_NoError = 0 , UART_UnknownBaudRate = 1 , UART_ConfigurationError = 2 , UART_BufferOverflow = 3 ,
  UART_NoData = 4
}
 
enum  UARTBaudRate {
  kBaudHWSet = -1 , kBaud300 = 300 , kBaud600 = 600 , kBaud1200 = 1200 ,
  kBaud1800 = 1800 , kBaud2000 = 2000 , kBaud2400 = 2400 , kBaud3600 = 3600 ,
  kBaud4800 = 4800 , kBaud7200 = 7200 , kBaud9600 = 9600 , kBaud19200 = 19200 ,
  kBaud38400 = 38400 , kBaud57600 = 57600 , kBaud115200 = 115200 , kBaud230400 = 230400
}
 

Functions

void TRKSaveExtended1Block ()
 

Typedef Documentation

◆ CommandReply

typedef struct CommandReply CommandReply

◆ MessageBufferID

typedef int MessageBufferID

◆ ProcessorRestoreFlags_PPC

typedef struct ProcessorRestoreFlags_PPC ProcessorRestoreFlags_PPC

◆ TRKBuffer

typedef struct TRKBuffer TRKBuffer

◆ TRKFramingState

typedef struct TRKFramingState TRKFramingState

◆ TRKState_PPC

typedef struct TRKState_PPC TRKState_PPC

◆ UARTError

typedef int UARTError

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DSMSGMEMORY_Segmented 
DSMSGMEMORY_Extended 
DSMSGMEMORY_Protected 
DSMSGMEMORY_Userview 
DSMSGMEMORY_Space_program 
DSMSGMEMORY_Space_data 
DSMSGMEMORY_Space_io 

◆ DSError

enum DSError
Enumerator
DS_NoError 
DS_StepError 
DS_ParameterError 
DS_EventQueueFull 
DS_NoMessageBufferAvailable 
DS_MessageBufferOverflow 
DS_MessageBufferReadError 
DS_DispatchError 
DS_InvalidMemory 
DS_InvalidRegister 
DS_CWDSException 
DS_UnsupportedError 
DS_InvalidProcessID 
DS_InvalidThreadID 
DS_OSError 
DS_Error800 

◆ DSFileHandle

Enumerator
DS_Stdin 
DS_Stdout 
DS_Stderr 

◆ DSIOResult

enum DSIOResult
Enumerator
DS_IONoError 
DS_IOError 
DS_IOEOF 

◆ DSMessageRegisterOptions

Enumerator
DSREG_Default 
DSREG_FP 
DSREG_Extended1 
DSREG_Extended2 

◆ DSMessageStepOptions

Enumerator
DSSTEP_IntoCount 
DSSTEP_IntoRange 
DSSTEP_OverCount 
DSSTEP_OverRange 

◆ DSReplyError

Enumerator
DSREPLY_NoError 
DSREPLY_Error 
DSREPLY_PacketSizeError 
DSREPLY_CWDSError 
DSREPLY_EscapeError 
DSREPLY_BadFCS 
DSREPLY_Overflow 
DSREPLY_SequenceMissing 
DSREPLY_UnsupportedCommandError 
DSREPLY_ParameterError 
DSREPLY_UnsupportedOptionError 
DSREPLY_InvalidMemoryRange 
DSREPLY_InvalidRegisterRange 
DSREPLY_CWDSException 
DSREPLY_NotStopped 
DSREPLY_BreakpointsFull 
DSREPLY_BreakpointConflict 
DSREPLY_OSError 
DSREPLY_InvalidProcessID 
DSREPLY_InvalidThreadID 
DSREPLY_DebugSecurityError 

◆ HardwareType

Enumerator
HARDWARE_AMC_DDH 
HARDWARE_GDEV 
HARDWARE_BBA 

◆ MemoryAccessOptions

Enumerator
MEMACCESS_UserMemory 
MEMACCESS_DebuggerMemory 

◆ MessageCommandID

Enumerator
DSMSG_Ping 
DSMSG_Connect 
DSMSG_Disconnect 
DSMSG_Reset 
DSMSG_Versions 
DSMSG_SupportMask 
DSMSG_Override 
DSMSG_ReadMemory 
DSMSG_WriteMemory 
DSMSG_ReadRegisters 
DSMSG_WriteRegisters 
DSMSG_SetOption 
DSMSG_Continue 
DSMSG_Step 
DSMSG_Stop 
DSMSG_ReplyACK 
DSMSG_NotifyStopped 
DSMSG_NotifyException 
DSMSG_WriteFile 
DSMSG_ReadFile 
DSMSG_OpenFile 
DSMSG_CloseFile 
DSMSG_PositionFile 
DSMSG_ReplyNAK 

◆ NubEventType

Enumerator
NUBEVENT_Null 
NUBEVENT_Shutdown 
NUBEVENT_Request 
NUBEVENT_Breakpoint 
NUBEVENT_Exception 
NUBEVENT_Support 

◆ ReceiverState

Enumerator
DSRECV_Wait 
DSRECV_Found 
DSRECV_InFrame 
DSRECV_FrameOverflow 

◆ UARTBaudRate

Enumerator
kBaudHWSet 
kBaud300 
kBaud600 
kBaud1200 
kBaud1800 
kBaud2000 
kBaud2400 
kBaud3600 
kBaud4800 
kBaud7200 
kBaud9600 
kBaud19200 
kBaud38400 
kBaud57600 
kBaud115200 
kBaud230400 

◆ UARTErrorOptions

Enumerator
UART_NoError 
UART_UnknownBaudRate 
UART_ConfigurationError 
UART_BufferOverflow 
UART_NoData 

◆ ValidMemoryOptions

Enumerator
VALIDMEM_Readable 
VALIDMEM_Writeable 

Function Documentation

◆ TRKSaveExtended1Block()

void TRKSaveExtended1Block ( )