info@panadisplay.com
FTDI Foinse FT_Emu_main.cpp

FTDI Foinse FT_Emu_main.cpp

May 08, 2019

# cuir "FT_Platform.h" san áireamh


#ifdef MSVC_FT800EMU

# cuir san áireamh

# cuir san áireamh





thus seachtrach "C" neamhní ();

lúb neamhní “C” ();


príomhshuime (ft_int32_t argc, ft_char8_t * argv [])

{

FT800EMU :: paraiméadair EmulatorParameters;

params.Setup = setup;

params.Loop = lúb;

params.Flags =

FT800EMU :: EochairfhocalEnableKeyboard

| FT800EMU :: EmulatorEnableMouse

| FT800EMU :: EmulatorEnableAudio

| FT800EMU :: EmulatorEnableDebugShortkeys

| FT800EMU :: EmulatorEnableRegRotate

| FT800EMU :: IompróirCumasaithe

| FT800EMU :: EmulatorEnableGraphicsMultithread

| FT800EMU :: EmulatorEnableRegPwmDutyEmulation

#if sainmhínithe FT_801_ENABLE

| FT800EMU :: EmulatorFT801

#endif

;

FT800EMU :: Emulator.run (params);

//FT800EMU::SPII2C.end ();

}


neamhní Ft_GpuEmu_SPII2C_begin ()

{

FT800EMU :: SPII2C.begin ();

}


neamhní Ft_GpuEmu_SPII2C_csLow ()

{

FT800EMU :: SPII2C.csLow ();

}


neamhní Ft_GpuEmu_SPII2C_csHigh ()

{

FT800EMU :: SPII2C.csHigh ();

}


neamhní Ft_GpuEmu_SPII2C_end ()

{

FT800EMU :: SPII2C.end ();

}


uint8_t Ft_GpuEmu_SPII2C_transfer (sonraí uint8_t)

{

seol ar ais FT800EMU :: SPII2C.transfer (sonraí);

}



ar neamhní Ft_GpuEmu_SPII2C_StartRead (uint32_t addr)

{

Ft_GpuEmu_SPII2C_csLow ();

Ft_GpuEmu_SPII2C_transfer ((add >> 16) & 0xFF);

Ft_GpuEmu_SPII2C_transfer ((add >> 8) & 0xFF);

Ft_GpuEmu_SPII2C_transfer (addr & 0xFF);


Ft_GpuEmu_SPII2C_transfer (0); // Dummy Read Byte

}


neamhní Ft_GpuEmu_SPII2C_StartWrite (uint32_t addr)

{

Ft_GpuEmu_SPII2C_csLow ();

Ft_GpuEmu_SPII2C_transfer ((cuir isteach 16) & 0xFF) | 0x80);

Ft_GpuEmu_SPII2C_transfer ((add >> 8) & 0xFF);

Ft_GpuEmu_SPII2C_transfer (addr & 0xFF);

}

#endif