If used, nobody else should read out the related FIFOs!
All the routines present in rockfifo have a parameter of this type.
Five types of cache are implemented:
You can change the cache type at any time using rockfifo cache set.
You can also access the cache at a very low level using rockfifo cache flush and rockfifo cache refill , but this can be very dangerous.
When you finish using the FIFO, please call rockfifo close to close the channel associated to the id.
If the status is not empty, call the rockfifo synch or rockfifo synch_bits to syncronize the FIFO to the next frame.
Use rockfifo read and rockfifo read_bits for this task.
Do not use the "rock" command!
#open the ROCK set rid [rock open 5 10] #open a FIFO set fid [rockfifo open efifo $rid] ... # decode the FIFO set decode [rockfifo decode $fid 8192] set alist [lindex $decode 1] foreach {el} $alist { ... } #if there was an error, synch if {[lindex $decode 0]==""} { set adump [rockfifo synch $fid] ... } ... # read the FIFO set alist [rockfifo read $fid 8192] foreach {el} $alist { ... } ... #close the FIFO set acache [rockfifo close $fid] ... #close the rock rock close $rid
Top of the page. | Rock documention. | Send comments to: Igor Sfiligoi |
Created | : | 11.3.1997 |
Last modified | : | 20.3.1997 |