pub struct W(_);
Expand description

Register GPIO5 writer

Implementations

Bit 0 - Output enable of the pin in sleep mode. 1: Output enabled. 0: Output disabled.

Bit 1 - Sleep mode selection of this pin. Set to 1 to put the pin in sleep mode.

Bit 2 - Pull-down enable of the pin during sleep mode. 1: Internal pull-down enabled. 0: internal pull-down disabled.

Bit 3 - Pull-up enable of the pin during sleep mode. 1: Internal pull-up enabled. 0: Internal pull-up disabled.

Bit 4 - Input enable of the pin during sleep mode. 1: Input enabled. 0: Input disabled.

Bit 7 - Pull-down enable of the pin. 1: Internal pull-down enabled. 0: internal pull-down disabled.

Bit 8 - Pull-up enable of the pin. 1: Internal pull-up enabled. 0: Internal pull-up disabled.

Bit 9 - Input enable of the pin. 1: Input enabled. 0: Input disabled.

Bits 10:11 - Select the drive strength of the pin. 0: ~5 mA. 1: ~10 mA. 2: ~20 mA. 3: ~40 mA.

Bits 12:14 - Select IO MUX function for this signal. 0: Select Function 1. 1: Select Function 2, etc.

Bit 15 - Enable filter for pin input signals. 1: Filter enabled. 2: Filter disabled.

Writes raw bits to the register.

Methods from Deref<Target = W<GPIO5_SPEC>>

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

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.