gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

mqtypes.h (686B)


      1 #pragma once
      2 
      3 #include <array>
      4 #include <vector>
      5 
      6 #include "dsp56kEmu/types.h"
      7 
      8 namespace mqLib
      9 {
     10 	enum PortBits
     11 	{
     12 		// Port E
     13 		Encoders0CS = 0,
     14 		Encoders1CS = 1,
     15 		Buttons0CS = 2,
     16 		Buttons1CS = 3,
     17 		BtPower = 5,						// Power Button
     18 		LedPower = 6,
     19 
     20 		// Port F
     21 		LcdRS = 1,
     22 		LcdRW = 2,
     23 		LcdLatch = 3,
     24 		LedWriteLatch = 7,
     25 
     26 		// Port QS
     27 		DspNMI = 6,
     28 	};
     29 
     30 	template<size_t Count> using TAudioBuffer = std::array<std::vector<dsp56k::TWord>, Count>;
     31 
     32 	using TAudioOutputs = TAudioBuffer<6>;
     33 	using TAudioInputs = TAudioBuffer<2>;
     34 
     35 	enum class BootMode
     36 	{
     37 		Default,
     38 		FactoryTest,
     39 		EraseFlash,
     40 		WaitForSystemDump,
     41 		DspClockResetAndServiceMode,
     42 		ServiceMode,
     43 		MemoryGame
     44 	};
     45 }