27 lines
583 B
C++
27 lines
583 B
C++
#pragma once
|
|
#include <ircolib/types.hpp>
|
|
|
|
namespace weee::core {
|
|
struct mem;
|
|
struct audio_interface {
|
|
audio_interface(mem &);
|
|
|
|
ircolib::u32 read32(ircolib::u32);
|
|
void write32(ircolib::u32, ircolib::u32);
|
|
|
|
union {
|
|
struct {
|
|
unsigned pstat : 1;
|
|
unsigned afr : 1;
|
|
unsigned aiintmsk : 1;
|
|
unsigned aiint : 1;
|
|
unsigned aiintvld : 1;
|
|
unsigned screset : 1;
|
|
unsigned dsp_sr : 1;
|
|
unsigned : 25;
|
|
};
|
|
ircolib::u32 raw;
|
|
} ctrl;
|
|
};
|
|
} // namespace weee::core
|