Struct stm32f30x_memory_map::i2c::Cr2W
[−]
[src]
pub struct Cr2W { /* fields omitted */ }
Methods
impl Cr2W
[src]
fn reset_value() -> Self
Reset value
fn pecbyte(&mut self, value: bool) -> &mut Self
Bit 26 - Packet error checking byte
fn autoend(&mut self, value: bool) -> &mut Self
Bit 25 - Automatic end mode (master mode)
fn reload(&mut self, value: bool) -> &mut Self
Bit 24 - NBYTES reload mode
fn nbytes(&mut self, value: u8) -> &mut Self
Bits 16:23 - Number of bytes
fn nack(&mut self, value: bool) -> &mut Self
Bit 15 - NACK generation (slave mode)
fn stop(&mut self, value: bool) -> &mut Self
Bit 14 - Stop generation (master mode)
fn start(&mut self, value: bool) -> &mut Self
Bit 13 - Start generation
fn head10r(&mut self, value: bool) -> &mut Self
Bit 12 - 10-bit address header only read direction (master receiver mode)
fn add10(&mut self, value: bool) -> &mut Self
Bit 11 - 10-bit addressing mode (master mode)
fn rd_wrn(&mut self, value: bool) -> &mut Self
Bit 10 - Transfer direction (master mode)
fn sadd8(&mut self, value: u8) -> &mut Self
Bits 8:9 - Slave address bit 9:8 (master mode)
fn sadd1(&mut self, value: u8) -> &mut Self
Bits 1:7 - Slave address bit 7:1 (master mode)
fn sadd0(&mut self, value: bool) -> &mut Self
Bit 0 - Slave address bit 0 (master mode)
Trait Implementations
impl Clone for Cr2W
[src]
fn clone(&self) -> Cr2W
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more