Jörg Hohensohn | 6a4e4c8 | 2003-11-30 11:37:43 +0000 | [diff] [blame] | 1 | #ifndef _CLIENT_H |
| 2 | #define _CLIENT_H |
| 3 | |
| 4 | |
| 5 | // setup function for monitor download |
| 6 | int DownloadMonitor(tUartHandle serial_handle, bool bRecorder, char* szFilename); |
| 7 | int DownloadArchosMonitor(tUartHandle serial_handle, char* szFilename); |
| 8 | |
| 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); |
| 19 | |
| 20 | |
Jens Arnold | c519e63 | 2004-11-19 22:44:45 +0000 | [diff] [blame] | 21 | #endif |
| 22 | |