SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches
SRL::DevCart::CS1 Namespace Reference

Detailed Description

CS1 area: CPLD registers This namespace groups constants for accessing the CPLD (Complex Programmable Logic Device) registers, which are used to control features like LEDs, the SD card interface, and general-purpose I/O.

Enumerations

enum class  Register : uint32_t {
  Cpld55 = CpldBaseAddr + 0x01 , CpldAa = CpldBaseAddr + 0x03 , CartCpldVer = CpldBaseAddr + 0x05 , CartBetaId = CpldBaseAddr + 0x07 ,
  CpldIo = CpldBaseAddr + 0x09 , SdinBits = CpldBaseAddr + 0x0B , LedSetting = CpldBaseAddr + 0x0D , SdClkSet = CpldBaseAddr + 0x0F ,
  RegStdoutBit = CpldBaseAddr + 0x11 , RegSdIo0 = CpldBaseAddr + 0x11 , RegSdIo1 = CpldBaseAddr + 0x13 , RegSdIo2 = CpldBaseAddr + 0x15 ,
  RegSdIo3 = CpldBaseAddr + 0x17 , RegSdReinsert = CpldBaseAddr + 0x19 , RegSdWriteProtect = CpldBaseAddr + 0x1B
}
 Enumeration of CPLD register addresses These are offsets from CpldBaseAddr. The values 0x55 and 0xAA are likely part of a handshake or initialization sequence. Access to these registers is typically 8-bit or 16-bit; refer to the hardware documentation for specifics. More...

Functions

static bool HasWascaSignature ()
 Returns true when the expected CPLD identification bytes are present.
static bool IsUsbGamersCartridge ()
 Returns true when cartridge reports USB Gamer's CPLD version.
static uint8_t ReadRegister (const Register Reg)
 Reads an 8-bit CS1 register value from the DevCart CPLD space.

Variables

static constexpr uint32_t CpldBaseAddr = 0x24000000L
 Base address for CPLD registers in CS1 space (note: L suffix for long).