![]() |
dsPid33
|
Go to the source code of this file.
Data Structures | |
union | DATA_EE_FLAGS |
Defines | |
#define | DATA_EE_BANKS 2 |
#define | DATA_EE_SIZE 255 |
#define | DATA_EE_TOTAL_SIZE (DATA_EE_BANKS * DATA_EE_SIZE) |
#define | ERASE 0x4042 |
#define | NUM_DATA_EE_PAGES 5 |
#define | PROGRAM_ROW 0x4001 |
#define | PROGRAM_WORD 0x4003 |
#define | ERASE_WRITE_CYCLE_MAX 5 |
#define | NUMBER_OF_INSTRUCTIONS_IN_PAGE 512 |
#define | NUMBER_OF_INSTRUCTIONS_IN_ROW 64 |
#define | NUMBER_OF_ROWS_IN_PAGE (NUMBER_OF_INSTRUCTIONS_IN_PAGE \ NUMBER_OF_INSTRUCTIONS_IN_ROW) |
#define | PAGE_AVAILABLE 1 |
#define | PAGE_CURRENT 0 |
#define | PAGE_EXPIRED 0 |
#define | PAGE_NOT_AVAILABLE 0 |
#define | PAGE_NOT_CURRENT 1 |
#define | PAGE_NOT_EXPIRED 1 |
#define | STATUS_AVAILABLE 18 |
#define | STATUS_CURRENT 19 |
#define | STATUS_EXPIRED 20 |
#define | GetaddrNotFound() dataEEFlags.addrNotFound |
#define | SetaddrNotFound(x) dataEEFlags.addrNotFound = x |
#define | GetPageCorruptStatus() dataEEFlags.pageCorrupt |
#define | SetPageCorruptStatus(x) dataEEFlags.pageCorrupt = x |
#define | GetPageExpiredPage() dataEEFlags.expiredPage |
#define | SetPageExpiredPage(x) dataEEFlags.expiredPage = x |
#define | GetPageIllegalAddress() dataEEFlags.IllegalAddress |
#define | SetPageIllegalAddress(x) dataEEFlags.IllegalAddress = x |
#define | GetPagePackBeforeInit() dataEEFlags.packBeforeInit |
#define | SetPagePackBeforeInit(x) dataEEFlags.packBeforeInit = x |
#define | GetPagePackBeforePageFull() dataEEFlags.packBeforePageFull |
#define | SetPagePackBeforePageFull(x) dataEEFlags.packBeforePageFull = x |
#define | GetPagePackSkipped() dataEEFlags.packSkipped |
#define | SetPagePackSkipped(x) dataEEFlags.packSkipped = x |
#define | GetPageWriteError() dataEEFlags.writeError |
#define | SetPageWriteError(x) dataEEFlags.writeError = x |
Functions | |
int | ReadPMHigh (int) |
int | ReadPMLow (int) |
void | UnlockPM (void) |
int | WritePMHigh (int, int) |
int | WritePMHighB (int, int) |
int | WritePMLow (int, int) |
int | WritePMLowB (int, int) |
void | UnlockWrite (void) |
int | GetPageStatus (unsigned char bank, unsigned volatile char page, unsigned volatile char field) |
void | ErasePage (unsigned char bank, unsigned char page) |
char | IncEWCount (unsigned char *index) |
unsigned int | GetNextAvailCount (unsigned char bank) |
int | PackEE (unsigned char bank) |
unsigned char | DataEEInit (void) |
unsigned int | DataEERead (unsigned int addr) |
unsigned char | DataEEWrite (unsigned int data, unsigned int addr) |
Variables | |
DATA_EE_FLAGS | dataEEFlags |
#define DATA_EE_BANKS 2 |
Definition at line 43 of file DEE Emulation 16-bit.h.
#define DATA_EE_SIZE 255 |
Definition at line 44 of file DEE Emulation 16-bit.h.
#define DATA_EE_TOTAL_SIZE (DATA_EE_BANKS * DATA_EE_SIZE) |
Definition at line 45 of file DEE Emulation 16-bit.h.
#define ERASE 0x4042 |
Definition at line 46 of file DEE Emulation 16-bit.h.
#define ERASE_WRITE_CYCLE_MAX 5 |
Definition at line 52 of file DEE Emulation 16-bit.h.
#define GetaddrNotFound | ( | ) | dataEEFlags.addrNotFound |
Definition at line 66 of file DEE Emulation 16-bit.h.
#define GetPageCorruptStatus | ( | ) | dataEEFlags.pageCorrupt |
Definition at line 69 of file DEE Emulation 16-bit.h.
#define GetPageExpiredPage | ( | ) | dataEEFlags.expiredPage |
Definition at line 72 of file DEE Emulation 16-bit.h.
#define GetPageIllegalAddress | ( | ) | dataEEFlags.IllegalAddress |
Definition at line 75 of file DEE Emulation 16-bit.h.
#define GetPagePackBeforeInit | ( | ) | dataEEFlags.packBeforeInit |
Definition at line 78 of file DEE Emulation 16-bit.h.
#define GetPagePackBeforePageFull | ( | ) | dataEEFlags.packBeforePageFull |
Definition at line 81 of file DEE Emulation 16-bit.h.
#define GetPagePackSkipped | ( | ) | dataEEFlags.packSkipped |
Definition at line 84 of file DEE Emulation 16-bit.h.
#define GetPageWriteError | ( | ) | dataEEFlags.writeError |
Definition at line 87 of file DEE Emulation 16-bit.h.
#define NUM_DATA_EE_PAGES 5 |
Definition at line 47 of file DEE Emulation 16-bit.h.
#define NUMBER_OF_INSTRUCTIONS_IN_PAGE 512 |
Definition at line 53 of file DEE Emulation 16-bit.h.
#define NUMBER_OF_INSTRUCTIONS_IN_ROW 64 |
Definition at line 54 of file DEE Emulation 16-bit.h.
Definition at line 55 of file DEE Emulation 16-bit.h.
#define PAGE_AVAILABLE 1 |
Definition at line 56 of file DEE Emulation 16-bit.h.
#define PAGE_CURRENT 0 |
Definition at line 57 of file DEE Emulation 16-bit.h.
#define PAGE_EXPIRED 0 |
Definition at line 58 of file DEE Emulation 16-bit.h.
#define PAGE_NOT_AVAILABLE 0 |
Definition at line 59 of file DEE Emulation 16-bit.h.
#define PAGE_NOT_CURRENT 1 |
Definition at line 60 of file DEE Emulation 16-bit.h.
#define PAGE_NOT_EXPIRED 1 |
Definition at line 61 of file DEE Emulation 16-bit.h.
#define PROGRAM_ROW 0x4001 |
Definition at line 48 of file DEE Emulation 16-bit.h.
#define PROGRAM_WORD 0x4003 |
Definition at line 49 of file DEE Emulation 16-bit.h.
#define SetaddrNotFound | ( | x | ) | dataEEFlags.addrNotFound = x |
Definition at line 67 of file DEE Emulation 16-bit.h.
#define SetPageCorruptStatus | ( | x | ) | dataEEFlags.pageCorrupt = x |
Definition at line 70 of file DEE Emulation 16-bit.h.
#define SetPageExpiredPage | ( | x | ) | dataEEFlags.expiredPage = x |
Definition at line 73 of file DEE Emulation 16-bit.h.
#define SetPageIllegalAddress | ( | x | ) | dataEEFlags.IllegalAddress = x |
Definition at line 76 of file DEE Emulation 16-bit.h.
#define SetPagePackBeforeInit | ( | x | ) | dataEEFlags.packBeforeInit = x |
Definition at line 79 of file DEE Emulation 16-bit.h.
#define SetPagePackBeforePageFull | ( | x | ) | dataEEFlags.packBeforePageFull = x |
Definition at line 82 of file DEE Emulation 16-bit.h.
#define SetPagePackSkipped | ( | x | ) | dataEEFlags.packSkipped = x |
Definition at line 85 of file DEE Emulation 16-bit.h.
#define SetPageWriteError | ( | x | ) | dataEEFlags.writeError = x |
Definition at line 88 of file DEE Emulation 16-bit.h.
#define STATUS_AVAILABLE 18 |
Definition at line 62 of file DEE Emulation 16-bit.h.
#define STATUS_CURRENT 19 |
Definition at line 63 of file DEE Emulation 16-bit.h.
#define STATUS_EXPIRED 20 |
Definition at line 64 of file DEE Emulation 16-bit.h.
unsigned char DataEEInit | ( | void | ) |
Definition at line 466 of file DEE Emulation 16-bit.c.
unsigned int DataEERead | ( | unsigned int | addr | ) |
Definition at line 590 of file DEE Emulation 16-bit.c.
unsigned char DataEEWrite | ( | unsigned int | data, |
unsigned int | addr | ||
) |
Definition at line 672 of file DEE Emulation 16-bit.c.
void ErasePage | ( | unsigned char | bank, |
unsigned char | page | ||
) |
Definition at line 189 of file DEE Emulation 16-bit.c.
unsigned int GetNextAvailCount | ( | unsigned char | bank | ) |
Definition at line 227 of file DEE Emulation 16-bit.c.
int GetPageStatus | ( | unsigned char | bank, |
unsigned volatile char | page, | ||
unsigned volatile char | field | ||
) |
char IncEWCount | ( | unsigned char * | index | ) |
int PackEE | ( | unsigned char | bank | ) |
Definition at line 282 of file DEE Emulation 16-bit.c.
int ReadPMHigh | ( | int | ) |
int ReadPMLow | ( | int | ) |
void UnlockPM | ( | void | ) |
void UnlockWrite | ( | void | ) |
Definition at line 120 of file DEE Emulation 16-bit.c.
int WritePMHigh | ( | int | , |
int | |||
) |
int WritePMHighB | ( | int | , |
int | |||
) |
int WritePMLow | ( | int | , |
int | |||
) |
int WritePMLowB | ( | int | , |
int | |||
) |
Definition at line 93 of file DEE Emulation 16-bit.c.