Struct sam4l::crccu::Crccu
[−]
[src]
pub struct Crccu<'a> { client: Option<&'a Client>, state: Cell<State>, alg: Cell<CrcAlg>, descriptor_space: [u8; 532], }
State for managing the CRCCU
Fields
client: Option<&'a Client>
state: Cell<State>
alg: Cell<CrcAlg>
descriptor_space: [u8; 532]
Methods
impl<'a> Crccu<'a>
[src]
const fn new() -> Self
[src]
fn init(&self)
[src]
pub fn enable(&self)
[src][−]
Enable the CRCCU's clocks and interrupt
pub fn disable(&self)
[src][−]
Disable the CRCCU's clocks and interrupt
pub fn set_client(&mut self, client: &'a Client)
[src][−]
Set a client to receive results from the CRCCU
pub fn get_client(&self) -> Option<&'a Client>
[src][−]
Get the client currently receiving results from the CRCCU
fn set_descriptor(&self, addr: u32, ctrl: TCR, crc: u32)
[src]
fn get_tcr(&self) -> TCR
[src]
fn descriptor(&self) -> *mut Descriptor
[src]
pub fn handle_interrupt(&mut self)
[src][−]
Handle an interrupt from the CRCCU