Struct stm32_hal2::pac::usart1::cr2::MSBFIRST_W [−][src]
pub struct MSBFIRST_W<'a> { /* fields omitted */ }
Write proxy for field MSBFIRST
Implementations
impl<'a> MSBFIRST_W<'a>
[src]
impl<'a> MSBFIRST_W<'a>
[src]pub fn variant(self, variant: MSBFIRST_A) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
Writes variant
to the field
pub fn lsb(self) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
data is transmitted/received with data bit 0 first, following the start bit
pub fn msb(self) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
data is transmitted/received with MSB (bit 7/8/9) first, following the start bit
pub fn set_bit(self) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
Sets the field bit
pub fn clear_bit(self) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
Clears the field bit
pub fn bit(self, value: bool) -> &'a mut W<u32, Reg<u32, _CR2>>
[src]
Writes raw bits to the field