#[repr(C)]
pub struct RegionConfiguration(pub u32);
Expand description

Region Configuration Structure

Follows C-structure conventions

Tuple Fields

0: u32

Implementations

Compare Digest or Write Back Digest

  • true: in Compare Digest mode.
  • false: in Write Back Digest mode.

Compare Digest or Write Back Digest

  • true: in Compare Digest mode.
  • false: in Write Back Digest mode.

Wrap Command

  • true: next region descriptor address loaded is DSCR.
  • false: the next region descriptor address is current + 0x10.

Wrap Command

  • true: next region descriptor address loaded is DSCR.
  • false: the next region descriptor address is current + 0x10.

End of Monitoring

  • true: the current descriptor terminates the Main List, WRAP bit has no effect.
  • false: the current descriptor does not terminate the monitoring.

End of Monitoring

  • true: the current descriptor terminates the Main List, WRAP bit has no effect.
  • false: the current descriptor does not terminate the monitoring.

Region Hash Completed Interrupt Disable

  • true: the RHC flag remains cleared even if the setting condition is met.
  • false: the RHC flag is set when the field NEXT = 0 is found in main or secondary list.

Region Hash Completed Interrupt Disable

  • true: the RHC flag remains cleared even if the setting condition is met.
  • false: the RHC flag is set when the field NEXT = 0 is found in main or secondary list.

Digest Mismatch Interrupt Disable

  • true: the RBE flag remains cleared even if the setting condition is met.
  • false: the RBE flag is set when the hash value just calculated from the processed region differs from expected hash value.

Digest Mismatch Interrupt Disable

  • true: the RBE flag remains cleared even if the setting condition is met.
  • false: the RBE flag is set when the hash value just calculated from the processed region differs from expected hash value.

Bus Error Interrupt Disable

  • true: the flag remains cleared even if the setting condition is met.
  • false: the flag is set when an error is reported on the sysstem bus by the bus MATRIX.

Bus Error Interrupt Disable

  • true: the flag remains cleared even if the setting condition is met.
  • false: the flag is set when an error is reported on the sysstem bus by the bus MATRIX.

Wrap Condition Interrupt Disable

  • true: the RWC flag remains cleared even if the setting condition is met.
  • false: the RWC flag is set when the WRAP is encountered.

Wrap Condition Interrupt Disable

  • true: the RWC flag remains cleared even if the setting condition is met.
  • false: the RWC flag is set when the WRAP is encountered.

End Bit Condition Interrupt Enable

  • true: the REC flag remains cleared even if the setting condition is met.
  • false: the REC flag is set when the descriptor having the EOM bit set is processed.

End Bit Condition Interrupt Enable

  • true: the REC flag remains cleared even if the setting condition is met.
  • false: the REC flag is set when the descriptor having the EOM bit set is processed.

Monitoring Status Updated Condition Interrupt Enable

  • true: the RSU flag remains cleared even if the condition is met.
  • false: the RSU flag is set when the corresponding descriptor is loaded from memory to ICM.

Monitoring Status Updated Condition Interrupt Enable

  • true: the RSU flag remains cleared even if the condition is met.
  • false: the RSU flag is set when the corresponding descriptor is loaded from memory to ICM.

Processing Delay

Allows setting short or long delay.

See ProcessingDelay

Processing Delay

Allows setting short or long delay.

See ProcessingDelay

User SHA Algorithm

Allow setting this regions icm_algorithm.

User SHA Algorithm

Get the current user sha algorithm

Reset the RegionConfiguration to default values

Useful if changing between hashing and monitoring, etc.

Trait Implementations

Get a range of bits.
Set a range of bits.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Get a single bit.
Set a single bit.
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.

Should always be Self
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.