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
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - Values to appear on GPIO when respective `drive` bit is asserted"]
    pub output: OUTPUT,
    #[doc = "0x04 - Value measured on the respective GPIO pin"]
    pub input: INPUT,
    #[doc = "0x08 - When a bit is set to `1`, the respective pad drives its value out"]
    pub drive: DRIVE,
    #[doc = "0x0c - Enable interrupts when a respective bit is set"]
    pub intena: INTENA,
    #[doc = "0x10 - When a bit is `1`, falling-edges cause interrupts. Otherwise, rising edges cause interrupts."]
    pub intpol: INTPOL,
    #[doc = "0x14 - "]
    pub ev_status: EV_STATUS,
    #[doc = "0x18 - "]
    pub ev_pending: EV_PENDING,
    #[doc = "0x1c - "]
    pub ev_enable: EV_ENABLE,
}
#[doc = "Values to appear on GPIO when respective `drive` bit is asserted\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [output](output) module"]
pub type OUTPUT = crate::Reg<u32, _OUTPUT>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _OUTPUT;
#[doc = "`read()` method returns [output::R](output::R) reader structure"]
impl crate::Readable for OUTPUT {}
#[doc = "`write(|w| ..)` method takes [output::W](output::W) writer structure"]
impl crate::Writable for OUTPUT {}
#[doc = "Values to appear on GPIO when respective `drive` bit is asserted"]
pub mod output;
#[doc = "Value measured on the respective GPIO pin\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [input](input) module"]
pub type INPUT = crate::Reg<u32, _INPUT>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _INPUT;
#[doc = "`read()` method returns [input::R](input::R) reader structure"]
impl crate::Readable for INPUT {}
#[doc = "`write(|w| ..)` method takes [input::W](input::W) writer structure"]
impl crate::Writable for INPUT {}
#[doc = "Value measured on the respective GPIO pin"]
pub mod input;
#[doc = "When a bit is set to `1`, the respective pad drives its value out\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [drive](drive) module"]
pub type DRIVE = crate::Reg<u32, _DRIVE>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _DRIVE;
#[doc = "`read()` method returns [drive::R](drive::R) reader structure"]
impl crate::Readable for DRIVE {}
#[doc = "`write(|w| ..)` method takes [drive::W](drive::W) writer structure"]
impl crate::Writable for DRIVE {}
#[doc = "When a bit is set to `1`, the respective pad drives its value out"]
pub mod drive;
#[doc = "Enable interrupts when a respective bit is set\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intena](intena) module"]
pub type INTENA = crate::Reg<u32, _INTENA>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _INTENA;
#[doc = "`read()` method returns [intena::R](intena::R) reader structure"]
impl crate::Readable for INTENA {}
#[doc = "`write(|w| ..)` method takes [intena::W](intena::W) writer structure"]
impl crate::Writable for INTENA {}
#[doc = "Enable interrupts when a respective bit is set"]
pub mod intena;
#[doc = "When a bit is `1`, falling-edges cause interrupts. Otherwise, rising edges cause interrupts.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intpol](intpol) module"]
pub type INTPOL = crate::Reg<u32, _INTPOL>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _INTPOL;
#[doc = "`read()` method returns [intpol::R](intpol::R) reader structure"]
impl crate::Readable for INTPOL {}
#[doc = "`write(|w| ..)` method takes [intpol::W](intpol::W) writer structure"]
impl crate::Writable for INTPOL {}
#[doc = "When a bit is `1`, falling-edges cause interrupts. Otherwise, rising edges cause interrupts."]
pub mod intpol;
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ev_status](ev_status) module"]
pub type EV_STATUS = crate::Reg<u32, _EV_STATUS>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _EV_STATUS;
#[doc = "`read()` method returns [ev_status::R](ev_status::R) reader structure"]
impl crate::Readable for EV_STATUS {}
#[doc = "`write(|w| ..)` method takes [ev_status::W](ev_status::W) writer structure"]
impl crate::Writable for EV_STATUS {}
#[doc = ""]
pub mod ev_status;
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ev_pending](ev_pending) module"]
pub type EV_PENDING = crate::Reg<u32, _EV_PENDING>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _EV_PENDING;
#[doc = "`read()` method returns [ev_pending::R](ev_pending::R) reader structure"]
impl crate::Readable for EV_PENDING {}
#[doc = "`write(|w| ..)` method takes [ev_pending::W](ev_pending::W) writer structure"]
impl crate::Writable for EV_PENDING {}
#[doc = ""]
pub mod ev_pending;
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ev_enable](ev_enable) module"]
pub type EV_ENABLE = crate::Reg<u32, _EV_ENABLE>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _EV_ENABLE;
#[doc = "`read()` method returns [ev_enable::R](ev_enable::R) reader structure"]
impl crate::Readable for EV_ENABLE {}
#[doc = "`write(|w| ..)` method takes [ev_enable::W](ev_enable::W) writer structure"]
impl crate::Writable for EV_ENABLE {}
#[doc = ""]
pub mod ev_enable;