mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 16:51:33 +11:00
Rename get_as_bits to remove get_ prefix
This commit is contained in:
parent
9ba455ca35
commit
1f28499efb
|
@ -21,7 +21,7 @@ pub enum Divider {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Divider {
|
impl Divider {
|
||||||
fn get_as_bits(&self) -> u16 {
|
fn as_bits(&self) -> u16 {
|
||||||
use Divider::*;
|
use Divider::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
|
@ -76,8 +76,7 @@ impl Timer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_divider(&mut self, divider: Divider) {
|
pub fn set_divider(&mut self, divider: Divider) {
|
||||||
self.control_register()
|
self.control_register().set_bits(divider.as_bits(), 2, 0);
|
||||||
.set_bits(divider.get_as_bits(), 2, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_enabled(&mut self, enabled: bool) {
|
pub fn set_enabled(&mut self, enabled: bool) {
|
||||||
|
|
Loading…
Reference in a new issue