mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
tag TODOs in docs
This commit is contained in:
parent
5d89414c13
commit
9e7937b956
|
@ -6,6 +6,7 @@ use super::*;
|
||||||
pub const BLDCNT: VolAddress<ColorEffectSetting> = unsafe { VolAddress::new(0x400_0050) };
|
pub const BLDCNT: VolAddress<ColorEffectSetting> = unsafe { VolAddress::new(0x400_0050) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
ColorEffectSetting, u16
|
ColorEffectSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,10 +30,15 @@ impl ColorEffectSetting {
|
||||||
}
|
}
|
||||||
|
|
||||||
newtype_enum! {
|
newtype_enum! {
|
||||||
|
/// TODO: docs
|
||||||
ColorSpecialEffect = u16,
|
ColorSpecialEffect = u16,
|
||||||
|
/// TODO: docs
|
||||||
None = 0,
|
None = 0,
|
||||||
|
/// TODO: docs
|
||||||
AlphaBlending = 1,
|
AlphaBlending = 1,
|
||||||
|
/// TODO: docs
|
||||||
BrightnessIncrease = 2,
|
BrightnessIncrease = 2,
|
||||||
|
/// TODO: docs
|
||||||
BrightnessDecrease = 3,
|
BrightnessDecrease = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +46,7 @@ newtype_enum! {
|
||||||
pub const BLDALPHA: VolAddress<AlphaBlendingSetting> = unsafe { VolAddress::new(0x400_0052) };
|
pub const BLDALPHA: VolAddress<AlphaBlendingSetting> = unsafe { VolAddress::new(0x400_0052) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
AlphaBlendingSetting, u16
|
AlphaBlendingSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +62,7 @@ impl AlphaBlendingSetting {
|
||||||
pub const BLDY: VolAddress<BrightnessSetting> = unsafe { VolAddress::new(0x400_0054) };
|
pub const BLDY: VolAddress<BrightnessSetting> = unsafe { VolAddress::new(0x400_0054) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
BrightnessSetting, u32
|
BrightnessSetting, u32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
///! Module for sound registers.
|
//! Module for sound registers.
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
//TODO within these "read/write" registers only some bits are actually read/write!
|
//TODO within these "read/write" registers only some bits are actually read/write!
|
||||||
|
@ -7,6 +8,7 @@ use super::*;
|
||||||
pub const SOUND1CNT_L: VolAddress<SweepRegisterSetting> = unsafe { VolAddress::new(0x400_0060) };
|
pub const SOUND1CNT_L: VolAddress<SweepRegisterSetting> = unsafe { VolAddress::new(0x400_0060) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
SweepRegisterSetting, u16
|
SweepRegisterSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +25,7 @@ impl SweepRegisterSetting {
|
||||||
pub const SOUND1CNT_H: VolAddress<DutyLenEnvelopeSetting> = unsafe { VolAddress::new(0x400_0062) };
|
pub const SOUND1CNT_H: VolAddress<DutyLenEnvelopeSetting> = unsafe { VolAddress::new(0x400_0062) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
DutyLenEnvelopeSetting, u16
|
DutyLenEnvelopeSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +44,7 @@ impl DutyLenEnvelopeSetting {
|
||||||
pub const SOUND1CNT_X: VolAddress<FrequencyControlSetting> = unsafe { VolAddress::new(0x400_0064) };
|
pub const SOUND1CNT_X: VolAddress<FrequencyControlSetting> = unsafe { VolAddress::new(0x400_0064) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
FrequencyControlSetting, u32 // TODO: u16 or u32?
|
FrequencyControlSetting, u32 // TODO: u16 or u32?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +68,7 @@ pub const SOUND3CNT_L: VolAddress<StopWaveRAMSelectSetting> =
|
||||||
unsafe { VolAddress::new(0x400_0070) };
|
unsafe { VolAddress::new(0x400_0070) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
StopWaveRAMSelectSetting, u16
|
StopWaveRAMSelectSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +85,7 @@ impl StopWaveRAMSelectSetting {
|
||||||
pub const SOUND3CNT_H: VolAddress<LengthVolumeSetting> = unsafe { VolAddress::new(0x400_0072) };
|
pub const SOUND3CNT_H: VolAddress<LengthVolumeSetting> = unsafe { VolAddress::new(0x400_0072) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
LengthVolumeSetting, u16
|
LengthVolumeSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,6 +122,7 @@ pub const WAVE_RAM3_H: VolAddress<u16> = unsafe { VolAddress::new(0x400_009E) };
|
||||||
pub const SOUND4CNT_L: VolAddress<LengthEnvelopeSetting> = unsafe { VolAddress::new(0x400_0078) };
|
pub const SOUND4CNT_L: VolAddress<LengthEnvelopeSetting> = unsafe { VolAddress::new(0x400_0078) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
LengthEnvelopeSetting, u32 // TODO: is this u32?
|
LengthEnvelopeSetting, u32 // TODO: is this u32?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +140,7 @@ impl LengthEnvelopeSetting {
|
||||||
pub const SOUND4CNT_H: VolAddress<NoiseFrequencySetting> = unsafe { VolAddress::new(0x400_007C) };
|
pub const SOUND4CNT_H: VolAddress<NoiseFrequencySetting> = unsafe { VolAddress::new(0x400_007C) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
NoiseFrequencySetting, u32 // TODO: is this u32?
|
NoiseFrequencySetting, u32 // TODO: is this u32?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,6 +171,7 @@ pub const SOUNDCNT_L: VolAddress<NonWaveVolumeEnableSetting> =
|
||||||
unsafe { VolAddress::new(0x400_0080) };
|
unsafe { VolAddress::new(0x400_0080) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
NonWaveVolumeEnableSetting, u16
|
NonWaveVolumeEnableSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,6 +189,7 @@ impl NonWaveVolumeEnableSetting {
|
||||||
pub const SOUNDCNT_H: VolAddress<WaveVolumeEnableSetting> = unsafe { VolAddress::new(0x400_0082) };
|
pub const SOUNDCNT_H: VolAddress<WaveVolumeEnableSetting> = unsafe { VolAddress::new(0x400_0082) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
WaveVolumeEnableSetting, u16
|
WaveVolumeEnableSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,9 +211,13 @@ impl WaveVolumeEnableSetting {
|
||||||
}
|
}
|
||||||
|
|
||||||
newtype_enum! {
|
newtype_enum! {
|
||||||
|
/// TODO: docs
|
||||||
NumberSoundVolume = u16,
|
NumberSoundVolume = u16,
|
||||||
|
/// TODO: docs
|
||||||
Quarter = 0,
|
Quarter = 0,
|
||||||
|
/// TODO: docs
|
||||||
Half = 1,
|
Half = 1,
|
||||||
|
/// TODO: docs
|
||||||
Full = 2,
|
Full = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,6 +225,7 @@ newtype_enum! {
|
||||||
pub const SOUNDCNT_X: VolAddress<SoundMasterSetting> = unsafe { VolAddress::new(0x400_0084) };
|
pub const SOUNDCNT_X: VolAddress<SoundMasterSetting> = unsafe { VolAddress::new(0x400_0084) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
SoundMasterSetting, u16
|
SoundMasterSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,6 +244,7 @@ impl SoundMasterSetting {
|
||||||
pub const SOUNDBIAS: VolAddress<SoundPWMSetting> = unsafe { VolAddress::new(0x400_0088) };
|
pub const SOUNDBIAS: VolAddress<SoundPWMSetting> = unsafe { VolAddress::new(0x400_0088) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
SoundPWMSetting, u16
|
SoundPWMSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ pub const WIN0H: VolAddress<HorizontalWindowSetting> = unsafe { VolAddress::new(
|
||||||
pub const WIN1H: VolAddress<HorizontalWindowSetting> = unsafe { VolAddress::new(0x400_0042) };
|
pub const WIN1H: VolAddress<HorizontalWindowSetting> = unsafe { VolAddress::new(0x400_0042) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
HorizontalWindowSetting, u16
|
HorizontalWindowSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +28,7 @@ pub const WIN0V: VolAddress<VerticalWindowSetting> = unsafe { VolAddress::new(0x
|
||||||
pub const WIN1V: VolAddress<VerticalWindowSetting> = unsafe { VolAddress::new(0x400_0046) };
|
pub const WIN1V: VolAddress<VerticalWindowSetting> = unsafe { VolAddress::new(0x400_0046) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
VerticalWindowSetting, u16
|
VerticalWindowSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +44,7 @@ impl VerticalWindowSetting {
|
||||||
pub const WININ: VolAddress<InsideWindowSetting> = unsafe { VolAddress::new(0x400_0048) };
|
pub const WININ: VolAddress<InsideWindowSetting> = unsafe { VolAddress::new(0x400_0048) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
InsideWindowSetting, u16
|
InsideWindowSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +70,7 @@ impl InsideWindowSetting {
|
||||||
pub const WINOUT: VolAddress<OutsideWindowSetting> = unsafe { VolAddress::new(0x400_004A) };
|
pub const WINOUT: VolAddress<OutsideWindowSetting> = unsafe { VolAddress::new(0x400_004A) };
|
||||||
|
|
||||||
newtype! {
|
newtype! {
|
||||||
|
/// TODO: docs
|
||||||
OutsideWindowSetting, u16
|
OutsideWindowSetting, u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue