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.
- Field 1, the Manufacturer field, should be identical for all devices produced by a single company.
- Field 2, the Model field, should NOT contain the word “MODEL”.
- 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.
Fields
manufacturer: &'a [u8]
model: &'a [u8]
serial: &'a [u8]
firmware: &'a [u8]
Trait Implementations
sourceimpl<'a> Command for IdnCommand<'a>
impl<'a> Command for IdnCommand<'a>
fn meta(&self) -> CommandTypeMeta
sourcefn event(
&self,
_context: &mut Context<'_>,
_args: &mut Tokenizer<'_>
) -> Result<()>
fn event(
&self,
_context: &mut Context<'_>,
_args: &mut Tokenizer<'_>
) -> Result<()>
Called when the event form is used
sourcefn query(
&self,
_context: &mut Context<'_>,
_args: &mut Tokenizer<'_>,
response: &mut ResponseUnit<'_>
) -> Result<()>
fn query(
&self,
_context: &mut Context<'_>,
_args: &mut Tokenizer<'_>,
response: &mut ResponseUnit<'_>
) -> Result<()>
Called when the query form is used
fn help(&self, _response: &mut ResponseUnit<'_>)
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more