5 // setup function for monitor download
6 int DownloadMonitor(tUartHandle serial_handle
, bool bRecorder
, char* szFilename
);
7 int DownloadArchosMonitor(tUartHandle serial_handle
, char* szFilename
);
9 // target functions using the Monitor Protocol
10 UINT8
ReadByte(tUartHandle serial_handle
, UINT32 addr
);
11 int WriteByte(tUartHandle serial_handle
, UINT32 addr
, UINT8 byte
);
12 int ReadByteMultiple(tUartHandle serial_handle
, UINT32 addr
, UINT32 size
, UINT8
* pBuffer
);
13 int WriteByteMultiple(tUartHandle serial_handle
, UINT32 addr
, UINT32 size
, UINT8
* pBuffer
);
14 int FlashByteMultiple(tUartHandle serial_handle
, UINT32 addr
, UINT32 size
, UINT8
* pBuffer
);
15 UINT16
ReadHalfword(tUartHandle serial_handle
, UINT32 addr
);
16 int WriteHalfword(tUartHandle serial_handle
, UINT32 addr
, UINT16 halfword
);
17 int SetTargetBaudrate(tUartHandle serial_handle
, long lClock
, long lBaudrate
);
18 int Execute(tUartHandle serial_handle
, UINT32 addr
, bool bReturns
);