pub struct OUTPUT_SPEC;Expand description
Output register. This :class:csr.Register contains an array of pin_count read/write fields. Each field is 1-bit wide and drives the output of its associated pin in the :attr:Peripheral.pins array, depending on its associated :class:~Peripheral.Mode field. If pin_count is 8, then the register has the following fields: .. bitfield:: :bits: 8 [ { “name”: “pin[0]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[1]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[2]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[3]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[4]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[5]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[6]”, “bits”: 1, “attr”: “RW” }, { “name”: “pin[7]”, “bits”: 1, “attr”: “RW” }, ]
Parameters ––––– pin_count : :class:int Number of GPIO pins.
You can read this register and get output::R. You can reset, write, write_with_zero this register using output::W. You can also modify this register. See API.
Trait Implementations§
Source§impl RegisterSpec for OUTPUT_SPEC
impl RegisterSpec for OUTPUT_SPEC
Source§impl Resettable for OUTPUT_SPEC
reset() method sets Output to value 0
impl Resettable for OUTPUT_SPEC
reset() method sets Output 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 OUTPUT_SPEC
write(|w| ..) method takes output::W writer structure
impl Writable for OUTPUT_SPEC
write(|w| ..) method takes output::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 OUTPUT_SPEC
read() method returns output::R reader structure