Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CC registers reader and writer for nRF51 #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pacs/nrf51-pac/src/timer0/cc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,23 @@ impl From<crate::W<CC_SPEC>> for W {
W(writer)
}
}
#[doc = "Field `CC` reader - Capture/Compare value"]
pub type CC_R = crate::FieldReader<u32, u32>;
#[doc = "Field `CC` writer - Capture/Compare value"]
pub type CC_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CC_SPEC, u32, u32, 32, O>;
impl R {
#[doc = "Bits 0:31 - Capture/Compare value"]
#[inline(always)]
pub fn cc(&self) -> CC_R {
CC_R::new(self.bits)
}
}
impl W {
#[doc = "Bits 0:31 - Capture/Compare value"]
#[inline(always)]
pub fn cc(&mut self) -> CC_W<0> {
CC_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
Expand Down
Loading