# This is the group register Channel Enable Mask 0x1na8 for {set i 0} {$i < 8} {incr i} { variable Grp$i.ChEnable 0 } proc GetChEnable {} { for {set i 0} {$i < 8} {incr i} { variable Grp$i.ChEnable set Grp$i.ChEnable [ReadRegister Grp$i.ChEnable] } } proc SetChEnable {} { for {set i 0} {$i < 8} {incr i} { variable Grp$i.ChEnable WriteRegister Grp$i.ChEnable [set Grp$i.ChEnable] } } proc SaveChEnable {} { for {set i 0} {$i < 8} {incr i} { DBSetValue Grp$i.ChEnable [ReadRegister Grp$i.ChEnable] } } proc RestChEnable {} { for {set i 0} {$i < 8} {incr i} { WriteRegister Grp$i.ChEnable [DBGetValue Grp$i.ChEnable] } } proc DrawChEnable {} { set html "" append html "
" append html "
| Group | " append html "Channel Enable Mask | " append html "
| $i | " append html "" append html "" append html " | " append html "