OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
Leapster.h
1#pragma once
2#if !defined(OSCR_CORE_LEAPSTER_H_)
3# define OSCR_CORE_LEAPSTER_H_
4
5# include "config.h"
6
7# if HAS_LEAP
8# include "syslibinc.h"
9# include "common/Types.h"
10
15{
16 void menu();
17
18 void openCRDB();
19 void closeCRDB();
20
21 void cartOn();
22 void cartOff();
23
24 void printHeader();
25
26 uint16_t read_rom_word(uint32_t address);
27 uint8_t read_flash_byte(uint32_t address);
28 void write_flash_byte(uint32_t address, uint8_t data);
29 void checkStart();
30 void findTable(uint32_t startAddr, uint32_t endAddr);
31 void readTable(uint32_t startAddr, uint32_t endAddr);
32 void readROM();
33 void setROMSize();
34 void dataOut();
35 void dataIn();
36 void idFLASH();
37 void resetFLASH();
38 void eraseFLASH();
39 void programFLASH();
40 void statusFLASH();
41 void readFLASH();
42 void writeFLASH();
43 void eepromStart();
44 void eepromSet0();
45 void eepromSet1();
46 void eepromDevice();
47 void eepromSetDeviceAddress(uint32_t addrhi);
48 void eepromStatus();
49 void eepromReadMode();
50 void eepromWriteMode();
51 void eepromReadData();
52 void eepromWriteData(uint8_t data);
53 void eepromStop();
54 void eepromSetAddress(uint16_t address);
55 void readEepromByte(uint16_t address);
56 void writeEepromByte(uint16_t address);
57 void readEEP();
58 void writeEEP();
59 void setCart();
60} /* namespace OSCR::Cores::Leapster */
61
62# endif /* HAS_LEAP */
63#endif /* OSCR_CORE_LEAPSTER_H_ */
System core for the Leapster.
Definition Leapster.h:15