forked from DediProgSW/SF100Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlashCommand.h
executable file
·27 lines (15 loc) · 1.09 KB
/
FlashCommand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#ifndef FLASHCOMMANDS
#define FLASHCOMMANDS
#include "Macro.h"
#define FlashCommand_TRUE 1
#define FlashCommand_FALSE 0
int FlashCommand_TransceiveOut(unsigned char* v, int len, int has_result_in, int Index);
int FlashCommand_TransceiveIn(unsigned char* v, int len, int Index);
int FlashCommand_SendCommand_OutOnlyInstruction(unsigned char* v, int len, int Index);
int FlashCommand_SendCommand_OutInstructionWithCS(unsigned char* v, int len, int Index);
int FlashCommand_SendCommand_OneOutOneIn(unsigned char* vOut, int out_len, unsigned char* vIn, int in_len, int Index);
int FlashCommand_SendCommand_SetupPacketForBulkWrite(struct CAddressRange* AddrRange, unsigned char modeWrite, unsigned char WriteCom, unsigned int PageSize, unsigned int AddressMode, int Index);
int FlashCommand_SendCommand_SetupPacketForAT45DBBulkWrite(struct CAddressRange* AddrRange, unsigned char modeWrite, unsigned char WriteCom, int Index);
int FlashCommand_SendCommand_SetupPacketForBulkRead(struct CAddressRange* AddrRange, unsigned char modeRead, unsigned char ReadCom, int Index);
#endif //FLASHCOMMANDS