rockbox/flash/uart_boot/client.h
Jens Arnold c519e6365e Makefile and adjustments for compiling uart_boot under cygwin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5439 a1c6a512-1295-4272-9138-f99709370657
2004-11-19 22:44:45 +00:00

22 lines
971 B
C

#ifndef _CLIENT_H
#define _CLIENT_H
// setup function for monitor download
int DownloadMonitor(tUartHandle serial_handle, bool bRecorder, char* szFilename);
int DownloadArchosMonitor(tUartHandle serial_handle, char* szFilename);
// target functions using the Monitor Protocol
UINT8 ReadByte(tUartHandle serial_handle, UINT32 addr);
int WriteByte(tUartHandle serial_handle, UINT32 addr, UINT8 byte);
int ReadByteMultiple(tUartHandle serial_handle, UINT32 addr, UINT32 size, UINT8* pBuffer);
int WriteByteMultiple(tUartHandle serial_handle, UINT32 addr, UINT32 size, UINT8* pBuffer);
int FlashByteMultiple(tUartHandle serial_handle, UINT32 addr, UINT32 size, UINT8* pBuffer);
UINT16 ReadHalfword(tUartHandle serial_handle, UINT32 addr);
int WriteHalfword(tUartHandle serial_handle, UINT32 addr, UINT16 halfword);
int SetTargetBaudrate(tUartHandle serial_handle, long lClock, long lBaudrate);
int Execute(tUartHandle serial_handle, UINT32 addr, bool bReturns);
#endif