#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub data_value: Reg<DATA_VALUE_SPEC>, pub data_enable: Reg<DATA_ENABLE_SPEC>, pub direction: Reg<DIRECTION_SPEC>, pub pull_up: Reg<PULL_UP_SPEC>, pub alternate_enable: Reg<ALTERNATE_ENABLE_SPEC>, pub function_high: Reg<FUNCTION_HIGH_SPEC>, pub function_low: Reg<FUNCTION_LOW_SPEC>, pub pull_down: Reg<PULL_DOWN_SPEC>, pub trigger_mode: Reg<TRIGGER_MODE_SPEC>, pub trigger_both: Reg<TRIGGER_BOTH_SPEC>, pub trigger_edge_level: Reg<TRIGGER_EDGE_LEVEL_SPEC>, pub interrupt_enable: Reg<INTERRUPT_ENABLE_SPEC>, pub interrupt_state_raw: Reg<INTERRUPT_STATE_RAW_SPEC>, pub interrupt_state: Reg<INTERRUPT_STATE_SPEC>, pub interrupt_clear: Reg<INTERRUPT_CLEAR_SPEC>,
}
Expand description

Register block

Fields

data_value: Reg<DATA_VALUE_SPEC>

0x00 - GPIO data value read/write register

data_enable: Reg<DATA_ENABLE_SPEC>

0x04 - GPIO data read/write enable register

direction: Reg<DIRECTION_SPEC>

0x08 - GPIO direction register

pull_up: Reg<PULL_UP_SPEC>

0x0c - Internal pull up mask register

alternate_enable: Reg<ALTERNATE_ENABLE_SPEC>

0x10 - Alternate function enable register

Each bit corresponds to whether the corresponding GPIO multiplexing function is turned on.

When the bit is set, the multiplexing function depends on the corresponding bits of registers function_high and function_low.

function_high: Reg<FUNCTION_HIGH_SPEC>

0x14 - Alternate function select high register

This register and function_low jointly determine multiplexing function number.

function_low: Reg<FUNCTION_LOW_SPEC>

0x18 - Alternate function select low register

This register and function_high jointly determine multiplexing function number.

pull_down: Reg<PULL_DOWN_SPEC>

0x1c - Internal pull down register

trigger_mode: Reg<TRIGGER_MODE_SPEC>

0x20 - Interrupt trigger mode selection

trigger_both: Reg<TRIGGER_BOTH_SPEC>

0x24 - Interrupt trigger on both sides selection

trigger_edge_level: Reg<TRIGGER_EDGE_LEVEL_SPEC>

0x28 - Interrupt trigger edge or level type selection

interrupt_enable: Reg<INTERRUPT_ENABLE_SPEC>

0x2c - Interrupt enable register

interrupt_state_raw: Reg<INTERRUPT_STATE_RAW_SPEC>

0x30 - Raw interrupt state register

GPIO bare interrupt status before masking.

interrupt_state: Reg<INTERRUPT_STATE_SPEC>

0x34 - Masked interrupt state register

interrupt_clear: Reg<INTERRUPT_CLEAR_SPEC>

0x38 - Clear interrupt register

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.