Struct ControlPage

Source
pub struct ControlPage { /* private fields */ }

Implementations§

Source§

impl ControlPage

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl ControlPage

Source

pub const fn into_bytes(self) -> [u8; 12]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 12]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl ControlPage

Source

pub fn parameters_saveable(&self) -> <B1 as Specifier>::InOut

Returns the value of parameters_saveable.

Source

pub fn parameters_saveable_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of parameters_saveable.

#Errors

If the returned value contains an invalid bit pattern for parameters_saveable.

Source

pub fn with_parameters_saveable(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of parameters_saveable set to the given value.

#Panics

If the given value is out of bounds for parameters_saveable.

Source

pub fn with_parameters_saveable_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of parameters_saveable set to the given value.

#Errors

If the given value is out of bounds for parameters_saveable.

Source

pub fn set_parameters_saveable(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of parameters_saveable to the given value.

#Panics

If the given value is out of bounds for parameters_saveable.

Source

pub fn set_parameters_saveable_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of parameters_saveable to the given value.

#Errors

If the given value is out of bounds for parameters_saveable.

Source

pub fn subpage_format(&self) -> <B1 as Specifier>::InOut

Returns the value of subpage_format.

Source

pub fn subpage_format_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of subpage_format.

#Errors

If the returned value contains an invalid bit pattern for subpage_format.

Source

pub fn with_subpage_format(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of subpage_format set to the given value.

#Panics

If the given value is out of bounds for subpage_format.

Source

pub fn with_subpage_format_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of subpage_format set to the given value.

#Errors

If the given value is out of bounds for subpage_format.

Source

pub fn set_subpage_format(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of subpage_format to the given value.

#Panics

If the given value is out of bounds for subpage_format.

Source

pub fn set_subpage_format_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of subpage_format to the given value.

#Errors

If the given value is out of bounds for subpage_format.

Source

pub fn page_code(&self) -> <B6 as Specifier>::InOut

Returns the value of page_code.

Source

pub fn page_code_or_err( &self, ) -> Result<<B6 as Specifier>::InOut, InvalidBitPattern<<B6 as Specifier>::Bytes>>

Returns the value of page_code.

#Errors

If the returned value contains an invalid bit pattern for page_code.

Source

pub fn with_page_code(self, new_val: <B6 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of page_code set to the given value.

#Panics

If the given value is out of bounds for page_code.

Source

pub fn with_page_code_checked( self, new_val: <B6 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of page_code set to the given value.

#Errors

If the given value is out of bounds for page_code.

Source

pub fn set_page_code(&mut self, new_val: <B6 as Specifier>::InOut)

Sets the value of page_code to the given value.

#Panics

If the given value is out of bounds for page_code.

Source

pub fn set_page_code_checked( &mut self, new_val: <B6 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of page_code to the given value.

#Errors

If the given value is out of bounds for page_code.

Source

pub fn page_length(&self) -> <B8 as Specifier>::InOut

Returns the value of page_length.

Source

pub fn page_length_or_err( &self, ) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>

Returns the value of page_length.

#Errors

If the returned value contains an invalid bit pattern for page_length.

Source

pub fn with_page_length(self, new_val: <B8 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of page_length set to the given value.

#Panics

If the given value is out of bounds for page_length.

Source

pub fn with_page_length_checked( self, new_val: <B8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of page_length set to the given value.

#Errors

If the given value is out of bounds for page_length.

Source

pub fn set_page_length(&mut self, new_val: <B8 as Specifier>::InOut)

Sets the value of page_length to the given value.

#Panics

If the given value is out of bounds for page_length.

Source

pub fn set_page_length_checked( &mut self, new_val: <B8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of page_length to the given value.

#Errors

If the given value is out of bounds for page_length.

Source

pub fn task_set_type(&self) -> <B3 as Specifier>::InOut

Returns the value of task_set_type.

Source

pub fn task_set_type_or_err( &self, ) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>

Returns the value of task_set_type.

#Errors

If the returned value contains an invalid bit pattern for task_set_type.

Source

pub fn with_task_set_type(self, new_val: <B3 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of task_set_type set to the given value.

#Panics

If the given value is out of bounds for task_set_type.

Source

pub fn with_task_set_type_checked( self, new_val: <B3 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of task_set_type set to the given value.

#Errors

If the given value is out of bounds for task_set_type.

Source

pub fn set_task_set_type(&mut self, new_val: <B3 as Specifier>::InOut)

Sets the value of task_set_type to the given value.

#Panics

If the given value is out of bounds for task_set_type.

Source

pub fn set_task_set_type_checked( &mut self, new_val: <B3 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of task_set_type to the given value.

#Errors

If the given value is out of bounds for task_set_type.

Source

pub fn task_management_functions_only(&self) -> <B1 as Specifier>::InOut

Returns the value of task_management_functions_only.

Source

pub fn task_management_functions_only_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of task_management_functions_only.

#Errors

If the returned value contains an invalid bit pattern for task_management_functions_only.

Source

pub fn with_task_management_functions_only( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of task_management_functions_only set to the given value.

#Panics

If the given value is out of bounds for task_management_functions_only.

Source

pub fn with_task_management_functions_only_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of task_management_functions_only set to the given value.

#Errors

If the given value is out of bounds for task_management_functions_only.

Source

pub fn set_task_management_functions_only( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of task_management_functions_only to the given value.

#Panics

If the given value is out of bounds for task_management_functions_only.

Source

pub fn set_task_management_functions_only_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of task_management_functions_only to the given value.

#Errors

If the given value is out of bounds for task_management_functions_only.

Source

pub fn dpicz(&self) -> <B1 as Specifier>::InOut

Returns the value of dpicz.

Source

pub fn dpicz_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of dpicz.

#Errors

If the returned value contains an invalid bit pattern for dpicz.

Source

pub fn with_dpicz(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of dpicz set to the given value.

#Panics

If the given value is out of bounds for dpicz.

Source

pub fn with_dpicz_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of dpicz set to the given value.

#Errors

If the given value is out of bounds for dpicz.

Source

pub fn set_dpicz(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of dpicz to the given value.

#Panics

If the given value is out of bounds for dpicz.

Source

pub fn set_dpicz_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of dpicz to the given value.

#Errors

If the given value is out of bounds for dpicz.

Source

pub fn descriptor_format_sense_data(&self) -> <B1 as Specifier>::InOut

Returns the value of descriptor_format_sense_data.

Source

pub fn descriptor_format_sense_data_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of descriptor_format_sense_data.

#Errors

If the returned value contains an invalid bit pattern for descriptor_format_sense_data.

Source

pub fn with_descriptor_format_sense_data( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of descriptor_format_sense_data set to the given value.

#Panics

If the given value is out of bounds for descriptor_format_sense_data.

Source

pub fn with_descriptor_format_sense_data_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of descriptor_format_sense_data set to the given value.

#Errors

If the given value is out of bounds for descriptor_format_sense_data.

Source

pub fn set_descriptor_format_sense_data( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of descriptor_format_sense_data to the given value.

#Panics

If the given value is out of bounds for descriptor_format_sense_data.

Source

pub fn set_descriptor_format_sense_data_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of descriptor_format_sense_data to the given value.

#Errors

If the given value is out of bounds for descriptor_format_sense_data.

Source

pub fn global_logging_target_save_disable(&self) -> <B1 as Specifier>::InOut

Returns the value of global_logging_target_save_disable.

Source

pub fn global_logging_target_save_disable_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of global_logging_target_save_disable.

#Errors

If the returned value contains an invalid bit pattern for global_logging_target_save_disable.

Source

pub fn with_global_logging_target_save_disable( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of global_logging_target_save_disable set to the given value.

#Panics

If the given value is out of bounds for global_logging_target_save_disable.

Source

pub fn with_global_logging_target_save_disable_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of global_logging_target_save_disable set to the given value.

#Errors

If the given value is out of bounds for global_logging_target_save_disable.

Source

pub fn set_global_logging_target_save_disable( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of global_logging_target_save_disable to the given value.

#Panics

If the given value is out of bounds for global_logging_target_save_disable.

Source

pub fn set_global_logging_target_save_disable_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of global_logging_target_save_disable to the given value.

#Errors

If the given value is out of bounds for global_logging_target_save_disable.

Source

pub fn report_log_exception_condition(&self) -> <B1 as Specifier>::InOut

Returns the value of report_log_exception_condition.

Source

pub fn report_log_exception_condition_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of report_log_exception_condition.

#Errors

If the returned value contains an invalid bit pattern for report_log_exception_condition.

Source

pub fn with_report_log_exception_condition( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of report_log_exception_condition set to the given value.

#Panics

If the given value is out of bounds for report_log_exception_condition.

Source

pub fn with_report_log_exception_condition_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of report_log_exception_condition set to the given value.

#Errors

If the given value is out of bounds for report_log_exception_condition.

Source

pub fn set_report_log_exception_condition( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of report_log_exception_condition to the given value.

#Panics

If the given value is out of bounds for report_log_exception_condition.

Source

pub fn set_report_log_exception_condition_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of report_log_exception_condition to the given value.

#Errors

If the given value is out of bounds for report_log_exception_condition.

Source

pub fn queue_algorithm_modifier(&self) -> <B4 as Specifier>::InOut

Returns the value of queue_algorithm_modifier.

Source

pub fn queue_algorithm_modifier_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>

Returns the value of queue_algorithm_modifier.

#Errors

If the returned value contains an invalid bit pattern for queue_algorithm_modifier.

Source

pub fn with_queue_algorithm_modifier( self, new_val: <B4 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of queue_algorithm_modifier set to the given value.

#Panics

If the given value is out of bounds for queue_algorithm_modifier.

Source

pub fn with_queue_algorithm_modifier_checked( self, new_val: <B4 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of queue_algorithm_modifier set to the given value.

#Errors

If the given value is out of bounds for queue_algorithm_modifier.

Source

pub fn set_queue_algorithm_modifier( &mut self, new_val: <B4 as Specifier>::InOut, )

Sets the value of queue_algorithm_modifier to the given value.

#Panics

If the given value is out of bounds for queue_algorithm_modifier.

Source

pub fn set_queue_algorithm_modifier_checked( &mut self, new_val: <B4 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of queue_algorithm_modifier to the given value.

#Errors

If the given value is out of bounds for queue_algorithm_modifier.

Source

pub fn no_unit_attention_on_release(&self) -> <B1 as Specifier>::InOut

Returns the value of no_unit_attention_on_release.

Source

pub fn no_unit_attention_on_release_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of no_unit_attention_on_release.

#Errors

If the returned value contains an invalid bit pattern for no_unit_attention_on_release.

Source

pub fn with_no_unit_attention_on_release( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of no_unit_attention_on_release set to the given value.

#Panics

If the given value is out of bounds for no_unit_attention_on_release.

Source

pub fn with_no_unit_attention_on_release_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_unit_attention_on_release set to the given value.

#Errors

If the given value is out of bounds for no_unit_attention_on_release.

Source

pub fn set_no_unit_attention_on_release( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of no_unit_attention_on_release to the given value.

#Panics

If the given value is out of bounds for no_unit_attention_on_release.

Source

pub fn set_no_unit_attention_on_release_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_unit_attention_on_release to the given value.

#Errors

If the given value is out of bounds for no_unit_attention_on_release.

Source

pub fn queue_error_management(&self) -> <B2 as Specifier>::InOut

Returns the value of queue_error_management.

Source

pub fn queue_error_management_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>

Returns the value of queue_error_management.

#Errors

If the returned value contains an invalid bit pattern for queue_error_management.

Source

pub fn with_queue_error_management( self, new_val: <B2 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of queue_error_management set to the given value.

#Panics

If the given value is out of bounds for queue_error_management.

Source

pub fn with_queue_error_management_checked( self, new_val: <B2 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of queue_error_management set to the given value.

#Errors

If the given value is out of bounds for queue_error_management.

Source

pub fn set_queue_error_management(&mut self, new_val: <B2 as Specifier>::InOut)

Sets the value of queue_error_management to the given value.

#Panics

If the given value is out of bounds for queue_error_management.

Source

pub fn set_queue_error_management_checked( &mut self, new_val: <B2 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of queue_error_management to the given value.

#Errors

If the given value is out of bounds for queue_error_management.

Source

pub fn disable_queuing(&self) -> <B1 as Specifier>::InOut

👎Deprecated

Returns the value of disable_queuing.

Source

pub fn disable_queuing_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

👎Deprecated

Returns the value of disable_queuing.

#Errors

If the returned value contains an invalid bit pattern for disable_queuing.

Source

pub fn with_disable_queuing(self, new_val: <B1 as Specifier>::InOut) -> Self

👎Deprecated

Returns a copy of the bitfield with the value of disable_queuing set to the given value.

#Panics

If the given value is out of bounds for disable_queuing.

Source

pub fn with_disable_queuing_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

👎Deprecated

Returns a copy of the bitfield with the value of disable_queuing set to the given value.

#Errors

If the given value is out of bounds for disable_queuing.

Source

pub fn set_disable_queuing(&mut self, new_val: <B1 as Specifier>::InOut)

👎Deprecated

Sets the value of disable_queuing to the given value.

#Panics

If the given value is out of bounds for disable_queuing.

Source

pub fn set_disable_queuing_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

👎Deprecated

Sets the value of disable_queuing to the given value.

#Errors

If the given value is out of bounds for disable_queuing.

Source

pub fn vendor_specific(&self) -> <B1 as Specifier>::InOut

Returns the value of vendor_specific.

Source

pub fn vendor_specific_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of vendor_specific.

#Errors

If the returned value contains an invalid bit pattern for vendor_specific.

Source

pub fn with_vendor_specific(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of vendor_specific set to the given value.

#Panics

If the given value is out of bounds for vendor_specific.

Source

pub fn with_vendor_specific_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of vendor_specific set to the given value.

#Errors

If the given value is out of bounds for vendor_specific.

Source

pub fn set_vendor_specific(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of vendor_specific to the given value.

#Panics

If the given value is out of bounds for vendor_specific.

Source

pub fn set_vendor_specific_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of vendor_specific to the given value.

#Errors

If the given value is out of bounds for vendor_specific.

Source

pub fn report_a_check(&self) -> <B1 as Specifier>::InOut

Returns the value of report_a_check.

Source

pub fn report_a_check_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of report_a_check.

#Errors

If the returned value contains an invalid bit pattern for report_a_check.

Source

pub fn with_report_a_check(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of report_a_check set to the given value.

#Panics

If the given value is out of bounds for report_a_check.

Source

pub fn with_report_a_check_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of report_a_check set to the given value.

#Errors

If the given value is out of bounds for report_a_check.

Source

pub fn set_report_a_check(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of report_a_check to the given value.

#Panics

If the given value is out of bounds for report_a_check.

Source

pub fn set_report_a_check_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of report_a_check to the given value.

#Errors

If the given value is out of bounds for report_a_check.

Source

pub fn unit_attention_interlocks_control(&self) -> <B2 as Specifier>::InOut

Returns the value of unit_attention_interlocks_control.

Source

pub fn unit_attention_interlocks_control_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>

Returns the value of unit_attention_interlocks_control.

#Errors

If the returned value contains an invalid bit pattern for unit_attention_interlocks_control.

Source

pub fn with_unit_attention_interlocks_control( self, new_val: <B2 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of unit_attention_interlocks_control set to the given value.

#Panics

If the given value is out of bounds for unit_attention_interlocks_control.

Source

pub fn with_unit_attention_interlocks_control_checked( self, new_val: <B2 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of unit_attention_interlocks_control set to the given value.

#Errors

If the given value is out of bounds for unit_attention_interlocks_control.

Source

pub fn set_unit_attention_interlocks_control( &mut self, new_val: <B2 as Specifier>::InOut, )

Sets the value of unit_attention_interlocks_control to the given value.

#Panics

If the given value is out of bounds for unit_attention_interlocks_control.

Source

pub fn set_unit_attention_interlocks_control_checked( &mut self, new_val: <B2 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of unit_attention_interlocks_control to the given value.

#Errors

If the given value is out of bounds for unit_attention_interlocks_control.

Source

pub fn software_write_protect(&self) -> <B1 as Specifier>::InOut

Returns the value of software_write_protect.

Source

pub fn software_write_protect_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of software_write_protect.

#Errors

If the returned value contains an invalid bit pattern for software_write_protect.

Source

pub fn with_software_write_protect( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of software_write_protect set to the given value.

#Panics

If the given value is out of bounds for software_write_protect.

Source

pub fn with_software_write_protect_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of software_write_protect set to the given value.

#Errors

If the given value is out of bounds for software_write_protect.

Source

pub fn set_software_write_protect(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of software_write_protect to the given value.

#Panics

If the given value is out of bounds for software_write_protect.

Source

pub fn set_software_write_protect_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of software_write_protect to the given value.

#Errors

If the given value is out of bounds for software_write_protect.

Source

pub fn ready_aer_permission(&self) -> <B1 as Specifier>::InOut

👎Deprecated

Returns the value of ready_aer_permission.

Source

pub fn ready_aer_permission_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

👎Deprecated

Returns the value of ready_aer_permission.

#Errors

If the returned value contains an invalid bit pattern for ready_aer_permission.

Source

pub fn with_ready_aer_permission( self, new_val: <B1 as Specifier>::InOut, ) -> Self

👎Deprecated

Returns a copy of the bitfield with the value of ready_aer_permission set to the given value.

#Panics

If the given value is out of bounds for ready_aer_permission.

Source

pub fn with_ready_aer_permission_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

👎Deprecated

Returns a copy of the bitfield with the value of ready_aer_permission set to the given value.

#Errors

If the given value is out of bounds for ready_aer_permission.

Source

pub fn set_ready_aer_permission(&mut self, new_val: <B1 as Specifier>::InOut)

👎Deprecated

Sets the value of ready_aer_permission to the given value.

#Panics

If the given value is out of bounds for ready_aer_permission.

Source

pub fn set_ready_aer_permission_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

👎Deprecated

Sets the value of ready_aer_permission to the given value.

#Errors

If the given value is out of bounds for ready_aer_permission.

Source

pub fn unit_attention_aer_permission(&self) -> <B1 as Specifier>::InOut

👎Deprecated

Returns the value of unit_attention_aer_permission.

Source

pub fn unit_attention_aer_permission_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

👎Deprecated

Returns the value of unit_attention_aer_permission.

#Errors

If the returned value contains an invalid bit pattern for unit_attention_aer_permission.

Source

pub fn with_unit_attention_aer_permission( self, new_val: <B1 as Specifier>::InOut, ) -> Self

👎Deprecated

Returns a copy of the bitfield with the value of unit_attention_aer_permission set to the given value.

#Panics

If the given value is out of bounds for unit_attention_aer_permission.

Source

pub fn with_unit_attention_aer_permission_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

👎Deprecated

Returns a copy of the bitfield with the value of unit_attention_aer_permission set to the given value.

#Errors

If the given value is out of bounds for unit_attention_aer_permission.

Source

pub fn set_unit_attention_aer_permission( &mut self, new_val: <B1 as Specifier>::InOut, )

👎Deprecated

Sets the value of unit_attention_aer_permission to the given value.

#Panics

If the given value is out of bounds for unit_attention_aer_permission.

Source

pub fn set_unit_attention_aer_permission_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

👎Deprecated

Sets the value of unit_attention_aer_permission to the given value.

#Errors

If the given value is out of bounds for unit_attention_aer_permission.

Source

pub fn error_aer_permission(&self) -> <B1 as Specifier>::InOut

👎Deprecated

Returns the value of error_aer_permission.

Source

pub fn error_aer_permission_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

👎Deprecated

Returns the value of error_aer_permission.

#Errors

If the returned value contains an invalid bit pattern for error_aer_permission.

Source

pub fn with_error_aer_permission( self, new_val: <B1 as Specifier>::InOut, ) -> Self

👎Deprecated

Returns a copy of the bitfield with the value of error_aer_permission set to the given value.

#Panics

If the given value is out of bounds for error_aer_permission.

Source

pub fn with_error_aer_permission_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

👎Deprecated

Returns a copy of the bitfield with the value of error_aer_permission set to the given value.

#Errors

If the given value is out of bounds for error_aer_permission.

Source

pub fn set_error_aer_permission(&mut self, new_val: <B1 as Specifier>::InOut)

👎Deprecated

Sets the value of error_aer_permission to the given value.

#Panics

If the given value is out of bounds for error_aer_permission.

Source

pub fn set_error_aer_permission_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

👎Deprecated

Sets the value of error_aer_permission to the given value.

#Errors

If the given value is out of bounds for error_aer_permission.

Source

pub fn application_tag_owner(&self) -> <B1 as Specifier>::InOut

Returns the value of application_tag_owner.

Source

pub fn application_tag_owner_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of application_tag_owner.

#Errors

If the returned value contains an invalid bit pattern for application_tag_owner.

Source

pub fn with_application_tag_owner( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of application_tag_owner set to the given value.

#Panics

If the given value is out of bounds for application_tag_owner.

Source

pub fn with_application_tag_owner_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of application_tag_owner set to the given value.

#Errors

If the given value is out of bounds for application_tag_owner.

Source

pub fn set_application_tag_owner(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of application_tag_owner to the given value.

#Panics

If the given value is out of bounds for application_tag_owner.

Source

pub fn set_application_tag_owner_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of application_tag_owner to the given value.

#Errors

If the given value is out of bounds for application_tag_owner.

Source

pub fn task_aborted_status(&self) -> <B1 as Specifier>::InOut

Returns the value of task_aborted_status.

Source

pub fn task_aborted_status_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of task_aborted_status.

#Errors

If the returned value contains an invalid bit pattern for task_aborted_status.

Source

pub fn with_task_aborted_status(self, new_val: <B1 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of task_aborted_status set to the given value.

#Panics

If the given value is out of bounds for task_aborted_status.

Source

pub fn with_task_aborted_status_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of task_aborted_status set to the given value.

#Errors

If the given value is out of bounds for task_aborted_status.

Source

pub fn set_task_aborted_status(&mut self, new_val: <B1 as Specifier>::InOut)

Sets the value of task_aborted_status to the given value.

#Panics

If the given value is out of bounds for task_aborted_status.

Source

pub fn set_task_aborted_status_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of task_aborted_status to the given value.

#Errors

If the given value is out of bounds for task_aborted_status.

Source

pub fn application_tag_mode_page_enabled(&self) -> <B1 as Specifier>::InOut

Returns the value of application_tag_mode_page_enabled.

Source

pub fn application_tag_mode_page_enabled_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of application_tag_mode_page_enabled.

#Errors

If the returned value contains an invalid bit pattern for application_tag_mode_page_enabled.

Source

pub fn with_application_tag_mode_page_enabled( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of application_tag_mode_page_enabled set to the given value.

#Panics

If the given value is out of bounds for application_tag_mode_page_enabled.

Source

pub fn with_application_tag_mode_page_enabled_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of application_tag_mode_page_enabled set to the given value.

#Errors

If the given value is out of bounds for application_tag_mode_page_enabled.

Source

pub fn set_application_tag_mode_page_enabled( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of application_tag_mode_page_enabled to the given value.

#Panics

If the given value is out of bounds for application_tag_mode_page_enabled.

Source

pub fn set_application_tag_mode_page_enabled_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of application_tag_mode_page_enabled to the given value.

#Errors

If the given value is out of bounds for application_tag_mode_page_enabled.

Source

pub fn reject_write_without_protection(&self) -> <B1 as Specifier>::InOut

Returns the value of reject_write_without_protection.

Source

pub fn reject_write_without_protection_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>

Returns the value of reject_write_without_protection.

#Errors

If the returned value contains an invalid bit pattern for reject_write_without_protection.

Source

pub fn with_reject_write_without_protection( self, new_val: <B1 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of reject_write_without_protection set to the given value.

#Panics

If the given value is out of bounds for reject_write_without_protection.

Source

pub fn with_reject_write_without_protection_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of reject_write_without_protection set to the given value.

#Errors

If the given value is out of bounds for reject_write_without_protection.

Source

pub fn set_reject_write_without_protection( &mut self, new_val: <B1 as Specifier>::InOut, )

Sets the value of reject_write_without_protection to the given value.

#Panics

If the given value is out of bounds for reject_write_without_protection.

Source

pub fn set_reject_write_without_protection_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of reject_write_without_protection to the given value.

#Errors

If the given value is out of bounds for reject_write_without_protection.

Source

pub fn autoload_mode(&self) -> <B3 as Specifier>::InOut

Returns the value of autoload_mode.

Source

pub fn autoload_mode_or_err( &self, ) -> Result<<B3 as Specifier>::InOut, InvalidBitPattern<<B3 as Specifier>::Bytes>>

Returns the value of autoload_mode.

#Errors

If the returned value contains an invalid bit pattern for autoload_mode.

Source

pub fn with_autoload_mode(self, new_val: <B3 as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of autoload_mode set to the given value.

#Panics

If the given value is out of bounds for autoload_mode.

Source

pub fn with_autoload_mode_checked( self, new_val: <B3 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of autoload_mode set to the given value.

#Errors

If the given value is out of bounds for autoload_mode.

Source

pub fn set_autoload_mode(&mut self, new_val: <B3 as Specifier>::InOut)

Sets the value of autoload_mode to the given value.

#Panics

If the given value is out of bounds for autoload_mode.

Source

pub fn set_autoload_mode_checked( &mut self, new_val: <B3 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of autoload_mode to the given value.

#Errors

If the given value is out of bounds for autoload_mode.

Source

pub fn ready_aer_holdoff_period(&self) -> <B16 as Specifier>::InOut

👎Deprecated

Returns the value of ready_aer_holdoff_period.

Source

pub fn ready_aer_holdoff_period_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>

👎Deprecated

Returns the value of ready_aer_holdoff_period.

#Errors

If the returned value contains an invalid bit pattern for ready_aer_holdoff_period.

Source

pub fn with_ready_aer_holdoff_period( self, new_val: <B16 as Specifier>::InOut, ) -> Self

👎Deprecated

Returns a copy of the bitfield with the value of ready_aer_holdoff_period set to the given value.

#Panics

If the given value is out of bounds for ready_aer_holdoff_period.

Source

pub fn with_ready_aer_holdoff_period_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

👎Deprecated

Returns a copy of the bitfield with the value of ready_aer_holdoff_period set to the given value.

#Errors

If the given value is out of bounds for ready_aer_holdoff_period.

Source

pub fn set_ready_aer_holdoff_period( &mut self, new_val: <B16 as Specifier>::InOut, )

👎Deprecated

Sets the value of ready_aer_holdoff_period to the given value.

#Panics

If the given value is out of bounds for ready_aer_holdoff_period.

Source

pub fn set_ready_aer_holdoff_period_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

👎Deprecated

Sets the value of ready_aer_holdoff_period to the given value.

#Errors

If the given value is out of bounds for ready_aer_holdoff_period.

Source

pub fn busy_timeout_period(&self) -> <B16 as Specifier>::InOut

Returns the value of busy_timeout_period.

Source

pub fn busy_timeout_period_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>

Returns the value of busy_timeout_period.

#Errors

If the returned value contains an invalid bit pattern for busy_timeout_period.

Source

pub fn with_busy_timeout_period( self, new_val: <B16 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of busy_timeout_period set to the given value.

#Panics

If the given value is out of bounds for busy_timeout_period.

Source

pub fn with_busy_timeout_period_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of busy_timeout_period set to the given value.

#Errors

If the given value is out of bounds for busy_timeout_period.

Source

pub fn set_busy_timeout_period(&mut self, new_val: <B16 as Specifier>::InOut)

Sets the value of busy_timeout_period to the given value.

#Panics

If the given value is out of bounds for busy_timeout_period.

Source

pub fn set_busy_timeout_period_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of busy_timeout_period to the given value.

#Errors

If the given value is out of bounds for busy_timeout_period.

Source

pub fn extended_self_test_completion_time(&self) -> <B16 as Specifier>::InOut

Returns the value of extended_self_test_completion_time.

Source

pub fn extended_self_test_completion_time_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>

Returns the value of extended_self_test_completion_time.

#Errors

If the returned value contains an invalid bit pattern for extended_self_test_completion_time.

Source

pub fn with_extended_self_test_completion_time( self, new_val: <B16 as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of extended_self_test_completion_time set to the given value.

#Panics

If the given value is out of bounds for extended_self_test_completion_time.

Source

pub fn with_extended_self_test_completion_time_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of extended_self_test_completion_time set to the given value.

#Errors

If the given value is out of bounds for extended_self_test_completion_time.

Source

pub fn set_extended_self_test_completion_time( &mut self, new_val: <B16 as Specifier>::InOut, )

Sets the value of extended_self_test_completion_time to the given value.

#Panics

If the given value is out of bounds for extended_self_test_completion_time.

Source

pub fn set_extended_self_test_completion_time_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of extended_self_test_completion_time to the given value.

#Errors

If the given value is out of bounds for extended_self_test_completion_time.

Trait Implementations§

Source§

impl CheckTotalSizeMultipleOf8 for ControlPage

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for ControlPage

Source§

fn clone(&self) -> ControlPage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ControlPage

Source§

fn fmt(&self, __bf_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ModePage for ControlPage

Source§

fn new() -> Self

Source§

fn from_bytes(bytes: &[u8]) -> (Self, &[u8])

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl Copy for ControlPage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.