Remove the ComplexBitMap

This commit is contained in:
2023-03-22 20:46:08 +01:00
parent 550d657478
commit 94c078dc9f
13 changed files with 307 additions and 489 deletions

View File

@@ -32,41 +32,41 @@ namespace JabyEngine {
};
__declare_io_type(IndexStatus, uint8_t,
static constexpr auto PortIndex = IOValueSet::from_to(0, 1);
static constexpr auto HasXAFifoData = IOBitSet(2);
static constexpr auto IsParameterFifoEmpty = IOBitSet(3);
static constexpr auto HasParameterFifoSpace = IOBitSet(4);
static constexpr auto HasResponseFifoData = IOBitSet(5);
static constexpr auto HasDataFifoData = IOBitSet(6);
static constexpr auto IsTransmissionBusy = IOBitSet(7);
static constexpr auto PortIndex = BitRange::from_to(0, 1);
static constexpr auto HasXAFifoData = Bit(2);
static constexpr auto IsParameterFifoEmpty = Bit(3);
static constexpr auto HasParameterFifoSpace = Bit(4);
static constexpr auto HasResponseFifoData = Bit(5);
static constexpr auto HasDataFifoData = Bit(6);
static constexpr auto IsTransmissionBusy = Bit(7);
);
__declare_io_type(InterruptEnable, uint8_t,
static constexpr auto InterruptTypValue = IOValueSet::from_to(0, 2);
static constexpr auto InterruptExtended = IOValueSet::from_to(0, 4);
static constexpr auto UnknownIRQ = IOBitSet(3);
static constexpr auto CommandStartIRQ = IOBitSet(4);
static constexpr auto InterruptTypValue = BitRange::from_to(0, 2);
static constexpr auto InterruptExtended = BitRange::from_to(0, 4);
static constexpr auto UnknownIRQ = Bit(3);
static constexpr auto CommandStartIRQ = Bit(4);
);
typedef InterruptEnable_v InterruptFlag_v;
__declare_io_type(Request, uint8_t,
static constexpr auto WantCommandStartIRQ = IOBitSet(5);
static constexpr auto WantData = IOBitSet(7);
static constexpr auto WantCommandStartIRQ = Bit(5);
static constexpr auto WantData = Bit(7);
);
__declare_io_type(SoundMapCoding, uint8_t,
static constexpr auto Stereo = IOBitSet(0);
static constexpr auto Stereo = Bit(0);
static constexpr auto Mono = !Stereo;
static constexpr auto SampleRate_18900hz = IOBitSet(2);
static constexpr auto SampleRate_18900hz = Bit(2);
static constexpr auto SampleRate_37800hz = !SampleRate_18900hz;
static constexpr auto BitsPerSample8 = IOBitSet(4);
static constexpr auto BitsPerSample8 = Bit(4);
static constexpr auto BitsPerSample4 = !BitsPerSample8;
static constexpr auto Emphasis = IOBitSet(6);
static constexpr auto Emphasis = Bit(6);
);
__declare_io_type(AudioVolumeApply, uint8_t,
static constexpr auto Mute = IOBitSet(0);
static constexpr auto ApplyChanges = IOBitSet(5);
static constexpr auto Mute = Bit(0);
static constexpr auto ApplyChanges = Bit(5);
);
__declare_io_type(ResponseFifo, uint8_t,);