pub struct INPUT_SPEC;Expand description
Input register. This :class:csr.Register contains an array of pin_count read-only fields. Each field is 1-bit wide and driven by the input of its associated pin in the :attr:Peripheral.pins array. Values sampled from pin inputs go through :attr:Peripheral.input_stages synchronization stages (on a rising edge of ClockSignal("sync")) before reaching the register. If pin_count is 8, then the register has the following fields: .. bitfield:: :bits: 8 [ { “name”: “pin[0]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[1]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[2]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[3]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[4]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[5]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[6]”, “bits”: 1, “attr”: “R” }, { “name”: “pin[7]”, “bits”: 1, “attr”: “R” }, ]
Parameters ––––– pin_count : :class:int Number of GPIO pins.
You can read this register and get input::R. You can reset, write, write_with_zero this register using input::W. You can also modify this register. See API.
Trait Implementations§
Source§impl RegisterSpec for INPUT_SPEC
impl RegisterSpec for INPUT_SPEC
Source§impl Resettable for INPUT_SPEC
reset() method sets Input to value 0
impl Resettable for INPUT_SPEC
reset() method sets Input to value 0
Source§const RESET_VALUE: u8 = 0u8
const RESET_VALUE: u8 = 0u8
Source§fn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Source§impl Writable for INPUT_SPEC
write(|w| ..) method takes input::W writer structure
impl Writable for INPUT_SPEC
write(|w| ..) method takes input::W writer structure
Source§const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0u8
const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0u8
1 and are changed if you pass 0Source§const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0u8
const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0u8
0 and are changed if you pass 1impl Readable for INPUT_SPEC
read() method returns input::R reader structure