forked from M-Labs/humpback-dds
eth_server: modify scpi tree
This commit is contained in:
parent
56cb6eb3fd
commit
6184e58308
@ -76,7 +76,7 @@ use firmware::{
|
|||||||
cpld::{
|
cpld::{
|
||||||
CPLD,
|
CPLD,
|
||||||
},
|
},
|
||||||
scpi::{ HelloWorldCommand, SwitchOnCommand },
|
scpi::{ HelloWorldCommand, Channel1SwitchCommand },
|
||||||
Urukul,
|
Urukul,
|
||||||
};
|
};
|
||||||
use scpi::prelude::*;
|
use scpi::prelude::*;
|
||||||
@ -318,25 +318,6 @@ fn main() -> ! {
|
|||||||
//
|
//
|
||||||
scpi_crate_version!(),
|
scpi_crate_version!(),
|
||||||
//Test
|
//Test
|
||||||
Node {
|
|
||||||
name: b"ABORt",
|
|
||||||
handler: None,
|
|
||||||
optional: false,
|
|
||||||
sub: &[],
|
|
||||||
},
|
|
||||||
Node {
|
|
||||||
name: b"INITiate",
|
|
||||||
handler: None,
|
|
||||||
optional: false,
|
|
||||||
sub: &[
|
|
||||||
Node {
|
|
||||||
name: b"IMMediate",
|
|
||||||
handler: None,
|
|
||||||
optional: true,
|
|
||||||
sub: &[],
|
|
||||||
}
|
|
||||||
],
|
|
||||||
},
|
|
||||||
Node {
|
Node {
|
||||||
name: b"EXAMple",
|
name: b"EXAMple",
|
||||||
optional: true,
|
optional: true,
|
||||||
@ -357,12 +338,19 @@ fn main() -> ! {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Node {
|
||||||
|
name: b"CHANNEL1",
|
||||||
|
optional: false,
|
||||||
|
handler: None,
|
||||||
|
sub: &[
|
||||||
Node {
|
Node {
|
||||||
name: b"SWitch",
|
name: b"SWitch",
|
||||||
optional: false,
|
optional: false,
|
||||||
handler: Some(&SwitchOnCommand {}),
|
handler: Some(&Channel1SwitchCommand {}),
|
||||||
sub: &[],
|
sub: &[],
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// Device was declared in prior
|
// Device was declared in prior
|
||||||
|
Loading…
Reference in New Issue
Block a user