make hcp writeable
This commit is contained in:
@ -12,7 +12,9 @@ proc stdConfig::hcp {} {
|
|||||||
prop update hcp::update
|
prop update hcp::update
|
||||||
prop complete hcp::complete
|
prop complete hcp::complete
|
||||||
|
|
||||||
obj hcp rd
|
obj hcp wr
|
||||||
|
prop check hcp::setMain
|
||||||
|
prop write hcp::writeMain
|
||||||
prop reg M0
|
prop reg M0
|
||||||
kids "high voltage" {
|
kids "high voltage" {
|
||||||
|
|
||||||
@ -53,6 +55,14 @@ proc stdConfig::hcp {} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc hcp::setMain {} {
|
||||||
|
hset [sct]/set [sct target]
|
||||||
|
}
|
||||||
|
|
||||||
|
proc hcp::writeMain {} {
|
||||||
|
return hcp::read
|
||||||
|
}
|
||||||
|
|
||||||
proc hcp::read {} {
|
proc hcp::read {} {
|
||||||
sct send ">[sct reg]?"
|
sct send ">[sct reg]?"
|
||||||
return update
|
return update
|
||||||
|
Reference in New Issue
Block a user