1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - USART Baud Rate Register Low Byte"] pub ubrrl: crate::Reg<ubrrl::UBRRL_SPEC>, #[doc = "0x01 - USART Control and Status Register B"] pub ucsrb: crate::Reg<ucsrb::UCSRB_SPEC>, #[doc = "0x02 - USART Control and Status Register A"] pub ucsra: crate::Reg<ucsra::UCSRA_SPEC>, #[doc = "0x03 - USART I/O Data Register"] pub udr: crate::Reg<udr::UDR_SPEC>, _reserved4: [u8; 19usize], _reserved_4_ubrrh: [u8; 1usize], } impl RegisterBlock { #[doc = "0x17 - USART Control and Status Register C"] #[inline(always)] pub fn ucsrc(&self) -> &crate::Reg<ucsrc::UCSRC_SPEC> { unsafe { &*(((self as *const Self) as *const u8).add(23usize) as *const crate::Reg<ucsrc::UCSRC_SPEC>) } } #[doc = "0x17 - USART Baud Rate Register Hight Byte"] #[inline(always)] pub fn ubrrh(&self) -> &crate::Reg<ubrrh::UBRRH_SPEC> { unsafe { &*(((self as *const Self) as *const u8).add(23usize) as *const crate::Reg<ubrrh::UBRRH_SPEC>) } } } #[doc = "UBRRH register accessor: an alias for `Reg<UBRRH_SPEC>`"] pub type UBRRH = crate::Reg<ubrrh::UBRRH_SPEC>; #[doc = "USART Baud Rate Register Hight Byte"] pub mod ubrrh; #[doc = "UBRRL register accessor: an alias for `Reg<UBRRL_SPEC>`"] pub type UBRRL = crate::Reg<ubrrl::UBRRL_SPEC>; #[doc = "USART Baud Rate Register Low Byte"] pub mod ubrrl; #[doc = "UCSRA register accessor: an alias for `Reg<UCSRA_SPEC>`"] pub type UCSRA = crate::Reg<ucsra::UCSRA_SPEC>; #[doc = "USART Control and Status Register A"] pub mod ucsra; #[doc = "UCSRB register accessor: an alias for `Reg<UCSRB_SPEC>`"] pub type UCSRB = crate::Reg<ucsrb::UCSRB_SPEC>; #[doc = "USART Control and Status Register B"] pub mod ucsrb; #[doc = "UCSRC register accessor: an alias for `Reg<UCSRC_SPEC>`"] pub type UCSRC = crate::Reg<ucsrc::UCSRC_SPEC>; #[doc = "USART Control and Status Register C"] pub mod ucsrc; #[doc = "UDR register accessor: an alias for `Reg<UDR_SPEC>`"] pub type UDR = crate::Reg<udr::UDR_SPEC>; #[doc = "USART I/O Data Register"] pub mod udr;