#[repr(transparent)]pub struct Espimisc(pub u32);Expand description
eSPI Miscellaneous. GPIO_IN is input status; GPIO output controls depend on whether Alert is dedicated. PWRSAV only affects eSPI clock gating, not LPC; may delay writes by less than 200 ns.
Tuple Fields§
§0: u32Implementations§
Source§impl Espimisc
impl Espimisc
Sourcepub const fn gpio_oe(&self) -> bool
pub const fn gpio_oe(&self) -> bool
GPIO Output Enable. Encodings: 0: Input (High-Z); 1: Alert or reset pin is set as an output GPIO.
Sourcepub const fn set_gpio_oe(&mut self, val: bool)
pub const fn set_gpio_oe(&mut self, val: bool)
GPIO Output Enable. Encodings: 0: Input (High-Z); 1: Alert or reset pin is set as an output GPIO.
Sourcepub const fn gpio_od(&self) -> bool
pub const fn gpio_od(&self) -> bool
GPIO Open Drain. Encodings: 1: Alert/Reset pin acts as open drain when ESPIMISC[GPIO_OE] = 1. This means ESPIMISC[GPIO_OUT] = 0 is low, and ESPIMISC[GPIO_OUT] = 1 is high-Z.
Sourcepub const fn set_gpio_od(&mut self, val: bool)
pub const fn set_gpio_od(&mut self, val: bool)
GPIO Open Drain. Encodings: 1: Alert/Reset pin acts as open drain when ESPIMISC[GPIO_OE] = 1. This means ESPIMISC[GPIO_OUT] = 0 is low, and ESPIMISC[GPIO_OUT] = 1 is high-Z.
Sourcepub const fn gpio_out(&self) -> bool
pub const fn gpio_out(&self) -> bool
Not used in eSPI if ESPICFG[ALERT] is 1. Encodings: 0: Low; 1: High, high-Z if ESPIMISC[GPIO_OD] = 1.
Sourcepub const fn set_gpio_out(&mut self, val: bool)
pub const fn set_gpio_out(&mut self, val: bool)
Not used in eSPI if ESPICFG[ALERT] is 1. Encodings: 0: Low; 1: High, high-Z if ESPIMISC[GPIO_OD] = 1.
Sourcepub const fn set_gpio_in(&mut self, val: bool)
pub const fn set_gpio_in(&mut self, val: bool)
GPIO Input
Sourcepub const fn risgp(&self) -> bool
pub const fn risgp(&self) -> bool
RSTN Pin Is GPIO. Encodings: 1: In eSPI mode, if this bit is 1, RSTN pin is not used as Reset (affects behavior). It can be used as GPIO if Alert is dedicated to Alert (instead of MISO). This option does not apply in LPC mode.
Sourcepub const fn set_risgp(&mut self, val: bool)
pub const fn set_risgp(&mut self, val: bool)
RSTN Pin Is GPIO. Encodings: 1: In eSPI mode, if this bit is 1, RSTN pin is not used as Reset (affects behavior). It can be used as GPIO if Alert is dedicated to Alert (instead of MISO). This option does not apply in LPC mode.
Sourcepub const fn set_pwrsav(&mut self, val: bool)
pub const fn set_pwrsav(&mut self, val: bool)
Power Save