summaryrefslogtreecommitdiffstats
path: root/flash/uart_boot/client.h
blob: d2ef29aa2e5d75a51f482bdf44ffc20ed7797783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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