Tcl command "rock"

ROCK library tcl interface


Index:


Input types

ROCKT_ITrid
pointer

ROCK id
Must be the same as ROCKT_OTrid

ROCKT_ITreadreg
case insensitive set
  • "reset"
  • "FIFO"
  • "watchdog"
  • "CSR0"
  • "CSR1"
  • "CSR2"
  • "elapsed"
  • "trigger"
  • "tque"
  • "tnow"
  • "rockinfo"
  • "golden"
  • "EFIFO"
  • "DFIFO"

ROCKT_ITwritereg
case insensitive set
  • "reset"
  • "watchdog"
  • "CSR0"
  • "CSR2"
  • "trigger"
  • "golden"
  • "EDFIFO"

ROCKT_ITgetreg
case insensitive set
  • "cintf"
  • "xintf"
  • "tfifo"
  • "efifo"
  • "dfifo"
  • "auxrst"
  • "intrst"
  • "fltrst"
  • "dff"
  • "dhf"
  • "def"
  • "eff"
  • "ehf"
  • "eef"
  • "tef"
  • "tff"
  • "watchdog"
  • "efmode"
  • "boe"
  • "tkndis"
  • "inttrg"
  • "diag"
  • "tknin"
  • "tknout"
  • "coeb"
  • "cerr"
  • "crst"
  • "crngt"
  • "cbusy"
  • "ctrgv"
  • "efwren"
  • "auxon"
  • "timeout"
  • "elapsed"
  • "wscale"
  • "elapsedtime"
  • "halt"
  • "busy"
  • "synchf"
  • "xbusy"
  • "xberr"
  • "qtrg"
  • "cstate"
  • "ptrg"
  • "sof"
  • "eof"
  • "syncrespf"
  • "rocksfail"
  • "slvsfail"
  • "lwadd"
  • "xadd"
  • "last"
  • "cradd"
  • "goldenref"

ROCKT_ITsetreg
case insensitive set
  • "cintf"
  • "xintf"
  • "tfifo"
  • "efifo"
  • "dfifo"
  • "auxrst"
  • "intrst"
  • "fltrst"
  • "watchdog"
  • "efmode"
  • "boe"
  • "tkndis"
  • "inttrg"
  • "diag"
  • "elapsed"
  • "wscale"
  • "test"
  • "last"
  • "cradd"
  • "goldenref"

ROCKT_ITencreset
record
fltrst
integer range [0,1]

intrst
integer range [0,1]

auxrst
integer range [0,1]

dfifo
integer range [0,1]

efifo
integer range [0,1]

xintf
integer range [0,1]

tfifo
integer range [0,1]

cintf
integer range [0,1]

ROCKT_ITencwatchdog
natural

ROCKT_ITenccsr0
record
efmode
integer range [0..3]

boe
integer range [0,1]

tkndis
integer range [0,1]

inttrg
integer range [0,1]

diag
integer range [0,1]

ROCKT_ITenccsr2
record
elapsed
integer range [0,1]

wscale
integer range [0..7]

ROCKT_ITenctrigger
natural

ROCKT_ITencgolden
record
last
integer range [0,1]

cradd
integer range [0..7]

goldenref
integer range [0..4095]


Output types

ROCKT_OTrid
pointer

ROCK id
Must be the same as ROCKT_ITrid

ROCKT_OTdummy
integer

Dummy result

ROCKT_OTreadpage_internal
record
reset
natural

fifo
natural

watchdog
natural

csr0
natural

csr1
natural

csr2
natural

elapsed
natural

trigger
natural

ROCKT_OTreadpage_info
record
tque
natural

tnow
natural

rockinfo
natural

golden
natural

ROCKT_OTdecreset
record
fltrst
natural

intrst
natural

auxrst
natural

dfifo
natural

efifo
natural

xintf
natural

tfifo
natural

cintf
natural

ROCKT_OTdecfifo
record
dff
natural

dhf
natural

def
natural

eff
natural

ehf
natural

eef
natural

tef
natural

tff
natural

ROCKT_OTdecwatchdog
natural

ROCKT_OTdeccsr0
record
efmode
natural

boe
natural

tkndis
natural

inttrg
natural

diag
natural

ROCKT_OTdeccsr1
record
tknin
natural

tknout
natural

ceob
natural

cerr
natural

crst
natural

crngt
natural

cbusy
natural

ctrgv
natural

ROCKT_OTdeccsr2
record
efwren
natural

auxon
natural

timeout
natural

elapsed
natural

wscale
natural

ROCKT_OTdecelapsed
natural

ROCKT_OTdectrigger
record
halt
natural

busy
natural

synchf
natural

xbusy
natural

xberr
natural

ROCKT_OTdectque
record
tff
natural

link
natural

qtrg
natural

ROCKT_OTdectnow
record
cstate
natural

ptrg
natural

ROCKT_OTdecrockinfo
record
sof
natural

eof
natural

syncrespf
natural

rocksfail
natural

slvsfail
natural

lwadd
natural

xadd
natural

ROCKT_OTdecgolden
record
last
natural

cradd
natural

goldenref
natural

ROCKT_OTdecefifo
record
nvd
natural

ff
natural

hf
natural

ef
natural

fifodata
natural

ROCKT_OTdecdfifo
record
nvd
natural

ff
natural

hf
natural

ef
natural

fifodata
natural

ROCKT_OTdecodepage_internal
record
fltrst
natural

intrst
natural

auxrst
natural

dfifo
natural

efifo
natural

xintf
natural

tfifo
natural

cintf
natural

dff
natural

dhf
natural

def
natural

eff
natural

ehf
natural

eef
natural

tef
natural

tff
natural

watchdog
natural

efmode
natural

boe
natural

tkndis
natural

inttrg
natural

diag
natural

tknin
natural

tknout
natural

ceob
natural

cerr
natural

crst
natural

crngt
natural

cbusy
natural

ctrgv
natural

efwren
natural

auxon
natural

timeout
natural

elapsed
natural

wscale
natural

elapsedtime
natural

halt
natural

busy
natural

synchf
natural

xbusy
natural

xberr
natural

ROCKT_OTdecodepage_info
record
tff
natural

link
natural

qtrg
natural

cstate
natural

ptrg
natural

sof
natural

eof
natural

syncrespf
natural

rocksfail
natural

slvsfail
natural

lwadd
natural

xadd
natural

last
natural

cradd
natural

goldenref
natural

ROCKT_OTreadfifo_list
list of
natural


Commands

rock ispresent chain crate
Input:
chain
natural

crate
natural

Output:
numeric boolean

C function:
rockt_tl_ispresent

Querry if ROCK is present

rock open chain crate
Input:
chain
natural

crate
natural

Output:
ROCKT_OTrid

C function:
rockt_tl_open

rock close rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdummy

C function:
rockt_tl_close

rock raw open vme_addr [options]
Input:
vme_addr
natural

"-vmeam" vme_am
integer

defaults to 0x09

"-vmesize" vme_size
integer

defaults to offs+0x40

"-offset" offs
integer

defaults to 0

Output:
ROCKT_OTrid

C function:
rockt_tl_raw_open

Open the ROCK using fisical address

rock raw read reg rid
Input:
reg
ROCKT_ITreadreg

rid
ROCKT_ITrid

Output:
natural

C function:
rockt_tl_read

Read a register

rock raw write reg rid value [options]
Input:
reg
ROCKT_ITwritereg

rid
ROCKT_ITrid

value
natural

"-or" or
natural

Apply an or befor writing (after the and)

"-and" and
natural

Apply an and befor writing (before the or)

Output:
ROCKT_OTdummy

C function:
rockt_tl_write

Write into a register

rock raw readpage internal rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTreadpage_internal

C function:
rockt_tl_readpage_internal

Read the internal page

rock raw readpage info rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTreadpage_info

C function:
rockt_tl_readpage_info

Read the info page

rock get bit rid
Input:
bit
ROCKT_ITgetreg

rid
ROCKT_ITrid

Output:
natural

C function:
rockt_tl_get

Get a bit

rock set bit rid value
Input:
bit
ROCKT_ITsetreg

rid
ROCKT_ITrid

value
natural

Output:
ROCKT_OTdummy

C function:
rockt_tl_set

Set a bit

rock read reset rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecreset

C function:
rockt_tl_decode_reset

Decode the reset register

rock read FIFO rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecfifo

C function:
rockt_tl_decode_fifo

Decode the FIFO register

rock read Watchdog rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecwatchdog

C function:
rockt_tl_decode_watchdog

Decode the Watchdog register

rock read CSR0 rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdeccsr0

C function:
rockt_tl_decode_csr0

Decode the CSR0 register

rock read CSR1 rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdeccsr1

C function:
rockt_tl_decode_csr1

Decode the CSR1 register

rock read CSR2 rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdeccsr2

C function:
rockt_tl_decode_csr2

Decode the CSR2 register

rock read Elapsed rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecelapsed

C function:
rockt_tl_decode_elapsed

Decode the Elapsed register

rock read Trigger rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdectrigger

C function:
rockt_tl_decode_trigger

Decode the Trigger register

rock read TQUE rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdectque

C function:
rockt_tl_decode_tque

Decode the TQUE register

rock read TNOW rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdectnow

C function:
rockt_tl_decode_tnow

Decode the TNOW register

rock read Rockinfo rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecrockinfo

C function:
rockt_tl_decode_rockinfo

Decode the Rockinfo register

rock read Golden rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecgolden

C function:
rockt_tl_decode_golden

Decode the Golden register

rock read EFIFO rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecefifo

C function:
rockt_tl_decode_efifo

Decode EFIFO

rock read DFIFO rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecdfifo

C function:
rockt_tl_decode_dfifo

Decode DFIFO

rock write reset rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITencreset

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_reset

Encode the reset register

rock write Watchdog rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITencwatchdog

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_watchdog

Encode the Watchdog register

rock write CSR0 rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITenccsr0

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_csr0

Encode the CSR0 register

rock write CSR2 rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITenccsr2

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_csr2

Encode the CSR2 register

rock write Trigger rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITenctrigger

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_trigger

Encode the Trigger register

rock write Golden rid value
Input:
rid
ROCKT_ITrid

value
ROCKT_ITencgolden

Output:
ROCKT_OTdummy

C function:
rockt_tl_encode_golden

Encode the Golden register

rock readpage internal rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecodepage_internal

C function:
rockt_tl_decodepage_internal

Read the internal page

rock readpage info rid
Input:
rid
ROCKT_ITrid

Output:
ROCKT_OTdecodepage_info

C function:
rockt_tl_decodepage_info

Read the info page

rock readfifo EFIFO rid [size]
Input:
rid
ROCKT_ITrid

size
natural

Defaults to 16K

Output:
ROCKT_OTreadfifo_list

C function:
rockt_tl_readefifo

Read the EFIFO in DMA

rock readfifo DFIFO rid [size]
Input:
rid
ROCKT_ITrid

size
natural

Defaults to 16K

Output:
ROCKT_OTreadfifo_list

C function:
rockt_tl_readdfifo

Read the DFIFO in DMA


Generated Wed 23. Apr 1997 13:14:51 from a tl file.
Do not modify by hand!