pub struct IdnCommand<'a> {
pub manufacturer: &'a [u8],
pub model: &'a [u8],
pub serial: &'a [u8],
pub firmware: &'a [u8],
}
Expand description
§10.14 *IDN?, Identification Query
The intent of the Identification query is for the unique identification of devices over the system interface.
§4.1.3.6 SCPI-99 Comments:
IEEE 488.2 is purposefully vague about the content of each of the four fields in the response syntax. SCPI adds no further requirement, but here are some suggestions:
All devices produced by a company should implement the *IDN? response consistently.
Fields§
§manufacturer: &'a [u8]
- Field 1, the Manufacturer field, should be identical for all devices produced by a single company.
model: &'a [u8]
- Field 2, the Model field, should NOT contain the word “MODEL”.
serial: &'a [u8]
- Field 3, the serial number field.
firmware: &'a [u8]
- Field 4, the Firmware level field, should contain information about all separately revisable subsystems. This information can be contained in single or multiple revision codes.
Trait Implementations§
Source§impl<'a> Clone for IdnCommand<'a>
impl<'a> Clone for IdnCommand<'a>
Source§fn clone(&self) -> IdnCommand<'a>
fn clone(&self) -> IdnCommand<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, D> Command<D> for IdnCommand<'a>
impl<'a, D> Command<D> for IdnCommand<'a>
Source§fn meta(&self) -> CommandTypeMeta
fn meta(&self) -> CommandTypeMeta
Hint about the allowed forms this command allows. Read more
Source§fn query(
&self,
_device: &mut D,
_context: &mut Context<'_>,
_params: Parameters<'_, '_>,
response: ResponseUnit<'_>,
) -> Result<()>
fn query( &self, _device: &mut D, _context: &mut Context<'_>, _params: Parameters<'_, '_>, response: ResponseUnit<'_>, ) -> Result<()>
Called when the query form
COMmand?
is used Read moreSource§impl<'a> Debug for IdnCommand<'a>
impl<'a> Debug for IdnCommand<'a>
Source§impl<'a> Display for IdnCommand<'a>
impl<'a> Display for IdnCommand<'a>
impl<'a> Copy for IdnCommand<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdnCommand<'a>
impl<'a> RefUnwindSafe for IdnCommand<'a>
impl<'a> Send for IdnCommand<'a>
impl<'a> Sync for IdnCommand<'a>
impl<'a> Unpin for IdnCommand<'a>
impl<'a> UnwindSafe for IdnCommand<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more