pub struct SiiControl { /* private fields */ }Expand description
register controling the read/write operations to Slave Information Interface (SII)
ETG.1000.4 table 49
Implementations§
Source§impl SiiControl
impl SiiControl
pub fn new( write_access: bool, eeprom_emulation: bool, read_size: SiiTransaction, address_unit: SiiUnit, read_operation: bool, write_operation: bool, reload_operation: bool, checksum_error: bool, device_info_error: bool, command_error: bool, write_error: bool, busy: bool, ) -> Self
Sourcepub fn write_access(&self) -> bool
pub fn write_access(&self) -> bool
true if SII is writable
Sourcepub fn set_write_access(&mut self, value: bool)
pub fn set_write_access(&mut self, value: bool)
true if SII is writable
Sourcepub fn eeprom_emulation(&self) -> bool
pub fn eeprom_emulation(&self) -> bool
- false: Normal operation (DL interfaces to SII)
- true: DL-user emulates SII
cannot be set by the master
Sourcepub fn set_eeprom_emulation(&mut self, value: bool)
pub fn set_eeprom_emulation(&mut self, value: bool)
- false: Normal operation (DL interfaces to SII)
- true: DL-user emulates SII
cannot be set by the master
Sourcepub fn read_size(&self) -> SiiTransaction
pub fn read_size(&self) -> SiiTransaction
number of bytes per read transaction, cannot be set by master
Sourcepub fn set_read_size(&mut self, value: SiiTransaction)
pub fn set_read_size(&mut self, value: SiiTransaction)
number of bytes per read transaction, cannot be set by master
Sourcepub fn address_unit(&self) -> SiiUnit
pub fn address_unit(&self) -> SiiUnit
unit of SII addresses, cannot be set by master
Sourcepub fn set_address_unit(&mut self, value: SiiUnit)
pub fn set_address_unit(&mut self, value: SiiUnit)
unit of SII addresses, cannot be set by master
Sourcepub fn read_operation(&self) -> bool
pub fn read_operation(&self) -> bool
read operation requested (parameter write) or read operation busy (parameter read) To start a new read operation there must be a positive edge on this parameter
This parameter will be written from the master to start the read operation of 32 bits/64 bits in the slave information interface. This parameter will be read from the master to check if the read operation is finished.
Sourcepub fn set_read_operation(&mut self, value: bool)
pub fn set_read_operation(&mut self, value: bool)
read operation requested (parameter write) or read operation busy (parameter read) To start a new read operation there must be a positive edge on this parameter
This parameter will be written from the master to start the read operation of 32 bits/64 bits in the slave information interface. This parameter will be read from the master to check if the read operation is finished.
Sourcepub fn write_operation(&self) -> bool
pub fn write_operation(&self) -> bool
write operation requested (parameter write) or write operation busy (parameter read) To start a new write operation there must be a positive edge on this parameter
This parameter will be written from the master to start the write operation of 16 bits in the slave information interface. This parameter will be read from the master to check if the write operation is finished. There is no consistence gu arantee for write operation. A break down during write can produce inconsistent values and should be avoided.
Sourcepub fn set_write_operation(&mut self, value: bool)
pub fn set_write_operation(&mut self, value: bool)
write operation requested (parameter write) or write operation busy (parameter read) To start a new write operation there must be a positive edge on this parameter
This parameter will be written from the master to start the write operation of 16 bits in the slave information interface. This parameter will be read from the master to check if the write operation is finished. There is no consistence gu arantee for write operation. A break down during write can produce inconsistent values and should be avoided.
Sourcepub fn reload_operation(&self) -> bool
pub fn reload_operation(&self) -> bool
reload operation requested (parameter write) or reload operation busy (parameter read) To start a new reload operation there must be a positive edge on this parameter
This parameter will be written from the master to start the reload operation of the first 128 bits in the slave information interface. This parameter will be read from the master to check if the reload operation is finished
Sourcepub fn set_reload_operation(&mut self, value: bool)
pub fn set_reload_operation(&mut self, value: bool)
reload operation requested (parameter write) or reload operation busy (parameter read) To start a new reload operation there must be a positive edge on this parameter
This parameter will be written from the master to start the reload operation of the first 128 bits in the slave information interface. This parameter will be read from the master to check if the reload operation is finished
Sourcepub fn checksum_error(&self) -> bool
pub fn checksum_error(&self) -> bool
checksum error while reading at startup
Sourcepub fn set_checksum_error(&mut self, value: bool)
pub fn set_checksum_error(&mut self, value: bool)
checksum error while reading at startup
Sourcepub fn device_info_error(&self) -> bool
pub fn device_info_error(&self) -> bool
error on reading Device Information
Sourcepub fn set_device_info_error(&mut self, value: bool)
pub fn set_device_info_error(&mut self, value: bool)
error on reading Device Information
Sourcepub fn command_error(&self) -> bool
pub fn command_error(&self) -> bool
error on last SII request
writable only in SII emulation mode
Sourcepub fn set_command_error(&mut self, value: bool)
pub fn set_command_error(&mut self, value: bool)
error on last SII request
writable only in SII emulation mode
Sourcepub fn write_error(&self) -> bool
pub fn write_error(&self) -> bool
error on last write operation
Sourcepub fn set_write_error(&mut self, value: bool)
pub fn set_write_error(&mut self, value: bool)
error on last write operation
Trait Implementations§
Source§impl Bitsized for SiiControl
impl Bitsized for SiiControl
Source§impl Clone for SiiControl
impl Clone for SiiControl
Source§fn clone(&self) -> SiiControl
fn clone(&self) -> SiiControl
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SiiControl
impl Debug for SiiControl
Source§impl Default for SiiControl
impl Default for SiiControl
Source§impl From<SiiControl> for u16
impl From<SiiControl> for u16
Source§fn from(value: SiiControl) -> Self
fn from(value: SiiControl) -> Self
Source§impl From<u16> for SiiControl
impl From<u16> for SiiControl
Source§impl PduData for SiiControl
impl PduData for SiiControl
Source§const ID: TypeId = crate::data::TypeId::CUSTOM
const ID: TypeId = crate::data::TypeId::CUSTOM
Source§fn pack(&self, dst: &mut [u8]) -> PackingResult<()>
fn pack(&self, dst: &mut [u8]) -> PackingResult<()>
Source§fn unpack(src: &[u8]) -> PackingResult<Self>
fn unpack(src: &[u8]) -> PackingResult<Self>
Source§fn packed_size() -> usize
fn packed_size() -> usize
Source§fn packed_bitsize() -> usize
fn packed_bitsize() -> usize
Source§fn packed(&self) -> PackingResult<Self::Packed>
fn packed(&self) -> PackingResult<Self::Packed>
impl Copy for SiiControl
Auto Trait Implementations§
impl Freeze for SiiControl
impl RefUnwindSafe for SiiControl
impl Send for SiiControl
impl Sync for SiiControl
impl Unpin for SiiControl
impl UnwindSafe for SiiControl
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.