-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathChipInfoDb.h
executable file
·33 lines (25 loc) · 980 Bytes
/
ChipInfoDb.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
28
29
30
31
32
33
#pragma once
#ifndef ChipInfo_H
#define ChipInfo_H
#include "Macro.h"
#define NUMBER_OF_SUPPORTING_CHIPS 3
struct m_code_api {
int (*m_code_api_doRDSR)(unsigned char* cSR, int Index);
int (*m_code_api_doWRSR)(unsigned char cSR, int Index);
int (*m_code_api_doChipErase)(int Index);
int (*m_code_api_doProgram)(void);
int (*m_code_api_doRead)(char* name);
int (*m_code_api_doSegmentErase)(void);
};
bool Dedi_List_AllChip(void);
int ChipInfoDbFindItem(CHIP_INFO ChipInfoDb[], int NumberOfItems, long JedecDeviceIDToFind);
void ChipInfoDump(long JedecDeviceIDToFind);
long ChipInfoDumpChipSizeInKByte(long Jedec);
#if 0
int Dedi_Search_Chip_Db(long RDIDCommand, long UniqueID, CHIP_INFO* Chip_Info, int search_all);
#else
int Dedi_Search_Chip_Db(char* TypeName, long RDIDCommand, long UniqueID, CHIP_INFO* Chip_Info, int search_all);
#endif
int Dedi_Search_Chip_Db_ByTypeName(char* TypeName, CHIP_INFO* Chip_Info);
FILE* openChipInfoDb(void);
#endif