forked from DediProgSW/SF100Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChipInfoDb.h
More file actions
37 lines (19 loc) · 749 Bytes
/
ChipInfoDb.h
File metadata and controls
37 lines (19 loc) · 749 Bytes
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
#pragma once
#ifndef ChipInfo_H
#define ChipInfo_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);
};
int ChipInfoDbFindItem(CHIP_INFO ChipInfoDb[], int NumberOfItems, long JedecDeviceIDToFind);
void ChipInfoDump(long JedecDeviceIDToFind);
long ChipInfoDumpChipSizeInKByte(long Jedec);
int Dedi_Search_Chip_Db_ByTypeName(char* TypeName, CHIP_INFO *Chip_Info, int search_all);
void Dedi_Search_AllChip( CHIP_INFO *Chip_Info, int search_all);
#endif