#[repr(transparent)]pub struct RpmcSupport1(pub u32);Expand description
RPMC Support 1. Configure before eSPI starts; do not change while eSPI works. TARGET_RPMC_SUPPORTED is a numeric count: prose says 1-based total up to 63, but the encoding list labels 3 as “up to 63”; no four-entry enum is used.
Tuple Fields§
§0: u32Implementations§
Source§impl RpmcSupport1
impl RpmcSupport1
Sourcepub const fn target_rpmc_supported(&self) -> u8
pub const fn target_rpmc_supported(&self) -> u8
Total count, 0 means unsupported, 1..63 is the 1-based total. Source encoding list ambiguously maps 3 to up to 63; do not infer a four-state enum.
Sourcepub const fn set_target_rpmc_supported(&mut self, val: u8)
pub const fn set_target_rpmc_supported(&mut self, val: u8)
Total count, 0 means unsupported, 1..63 is the 1-based total. Source encoding list ambiguously maps 3 to up to 63; do not infer a four-state enum.
Sourcepub const fn num_of_target(&self) -> u8
pub const fn num_of_target(&self) -> u8
Number of Target Attached Flash RPMC flash devices. Encodings: 0: 1 RPMC flash device is supported; 1: 2 RPMC flash device is supported; 2: 3 RPMC flash device is supported; 3: 4 RPMC flash device is supported
Sourcepub const fn set_num_of_target(&mut self, val: u8)
pub const fn set_num_of_target(&mut self, val: u8)
Number of Target Attached Flash RPMC flash devices. Encodings: 0: 1 RPMC flash device is supported; 1: 2 RPMC flash device is supported; 2: 3 RPMC flash device is supported; 3: 4 RPMC flash device is supported
Sourcepub const fn set_rpmc_op1(&mut self, val: u8)
pub const fn set_rpmc_op1(&mut self, val: u8)
RPMC OP1 Opcode on the 1st RPMC Flash device
Sourcepub const fn rpmc_counter(&self) -> u8
pub const fn rpmc_counter(&self) -> u8
RPMC Counter on the 1st RPMC Flash device
Sourcepub const fn set_rpmc_counter(&mut self, val: u8)
pub const fn set_rpmc_counter(&mut self, val: u8)
RPMC Counter on the 1st RPMC Flash device
Sourcepub const fn rpmc_op1_2(&self) -> u8
pub const fn rpmc_op1_2(&self) -> u8
RPMC OP1 Opcode on the 2nd RPMC Flash device
Sourcepub const fn set_rpmc_op1_2(&mut self, val: u8)
pub const fn set_rpmc_op1_2(&mut self, val: u8)
RPMC OP1 Opcode on the 2nd RPMC Flash device
Sourcepub const fn rpmc_counter_2(&self) -> u8
pub const fn rpmc_counter_2(&self) -> u8
RPMC Counter on the 2nd RPMC Flash device
Sourcepub const fn set_rpmc_counter_2(&mut self, val: u8)
pub const fn set_rpmc_counter_2(&mut self, val: u8)
RPMC Counter on the 2nd RPMC Flash device
Trait Implementations§
Source§impl Clone for RpmcSupport1
impl Clone for RpmcSupport1
Source§fn clone(&self) -> RpmcSupport1
fn clone(&self) -> RpmcSupport1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more