Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:bc21initbuf [2017/02/07 17:33] – created qem103 | en:software:qview:qview_6:qcl_library:bc21initbuf [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BC21InitBuf ====== | ||
+ | |||
+ | **B = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The BC21InitBuf function __executes the initialization of an array for use as FIFO memory (First In First Out)__. The function requires that you pass the name of the array that serves as a buffer, of two variables to store the index of beginning and end of data within the array and returns a value to the ErrCode variable in case there is an error. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **BC21InitBuf (array, errcode, head, tail)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS / ARRGBL | ||
+ | | OUT | GLOBAL | ||
+ | | IN | GLOBAL / SYSTEM | ||
+ | | IN | GLOBAL / SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | 0 = No error | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | INIZ: | ||
+ | BC21InitBuf (Buffer, ErrCode, gl001, gl002)** | ||
+ | MAIN: | ||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The function must be called to initialize the memory q after this operation can use the other BC21PopBuf, BC21PushBuf, | ||