avr_device/devices/atmega328p/
twi.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - TWI Bit Rate register"]
5 pub twbr: TWBR,
6 #[doc = "0x01 - TWI Status Register"]
7 pub twsr: TWSR,
8 #[doc = "0x02 - TWI (Slave) Address register"]
9 pub twar: TWAR,
10 #[doc = "0x03 - TWI Data register"]
11 pub twdr: TWDR,
12 #[doc = "0x04 - TWI Control Register"]
13 pub twcr: TWCR,
14 #[doc = "0x05 - TWI (Slave) Address Mask Register"]
15 pub twamr: TWAMR,
16}
17#[doc = "TWAMR (rw) register accessor: an alias for `Reg<TWAMR_SPEC>`"]
18pub type TWAMR = crate::Reg<twamr::TWAMR_SPEC>;
19#[doc = "TWI (Slave) Address Mask Register"]
20pub mod twamr;
21#[doc = "TWAR (rw) register accessor: an alias for `Reg<TWAR_SPEC>`"]
22pub type TWAR = crate::Reg<twar::TWAR_SPEC>;
23#[doc = "TWI (Slave) Address register"]
24pub mod twar;
25#[doc = "TWBR (rw) register accessor: an alias for `Reg<TWBR_SPEC>`"]
26pub type TWBR = crate::Reg<twbr::TWBR_SPEC>;
27#[doc = "TWI Bit Rate register"]
28pub mod twbr;
29#[doc = "TWCR (rw) register accessor: an alias for `Reg<TWCR_SPEC>`"]
30pub type TWCR = crate::Reg<twcr::TWCR_SPEC>;
31#[doc = "TWI Control Register"]
32pub mod twcr;
33#[doc = "TWDR (rw) register accessor: an alias for `Reg<TWDR_SPEC>`"]
34pub type TWDR = crate::Reg<twdr::TWDR_SPEC>;
35#[doc = "TWI Data register"]
36pub mod twdr;
37#[doc = "TWSR (rw) register accessor: an alias for `Reg<TWSR_SPEC>`"]
38pub type TWSR = crate::Reg<twsr::TWSR_SPEC>;
39#[doc = "TWI Status Register"]
40pub mod twsr;