MODE

Type Alias MODE 

Source
pub type MODE = Reg<MODE_SPEC>;
Expand description

Mode (rw) register accessor: Mode register. This :class:csr.Register contains an array of pin_count read/write fields. Each field is 2-bit wide and its possible values are defined by the :class:PinMode enumeration. If pin_count is 8, then the register has the following fields: .. bitfield:: :bits: 16 [ { “name”: “pin[0]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[1]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[2]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[3]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[4]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[5]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[6]”, “bits”: 2, “attr”: “RW” }, { “name”: “pin[7]”, “bits”: 2, “attr”: “RW” }, ] Parameters ––––– pin_count : :class:int Number of GPIO pins.

You can read this register and get mode::R. You can reset, write, write_with_zero this register using mode::W. You can also modify this register. See API.

For information about available fields see mode module

Aliased Type§

pub struct MODE { /* private fields */ }