Use write and read for BitRangeValues

This commit is contained in:
2023-01-15 20:21:48 +01:00
parent 3687fda821
commit db8a51fff9
6 changed files with 11 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ namespace JabyEngine {
}
static void ack(VolatileBitMapPOD<InterruptFlag>& port) {
port.write_range_value(InterruptFlag::InterruptTypValue.max());
port.write(InterruptFlag::InterruptTypValue.max());
}
};

View File

@@ -31,7 +31,7 @@ namespace JabyEngine {
return T{this->pod.read()};
}
constexpr Raw read_range_value(const BitRange<Raw>& range) const {
constexpr Raw read(const BitRange<Raw>& range) const {
return VolatileBitMapPOD<T>::read().get_value(range);
}
@@ -43,7 +43,7 @@ namespace JabyEngine {
this->pod.write(static_cast<Raw>(value));
}
constexpr void write_range_value(const BitRangeValue<Raw>& value) {
constexpr void write(const BitRangeValue<Raw>& value) {
VolatileBitMapPOD<T>::write(T{T::with(value)});
}
};