Use write and read for BitRangeValues
This commit is contained in:
@@ -43,7 +43,7 @@ namespace JabyEngine {
|
||||
}
|
||||
|
||||
static void ack(VolatileBitMapPOD<InterruptFlag>& port) {
|
||||
port.write_range_value(InterruptFlag::InterruptTypValue.max());
|
||||
port.write(InterruptFlag::InterruptTypValue.max());
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -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)});
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user