Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:bc21elements [2017/02/17 17:34] – created qem103en:software:qview:qview_6:qcl_library:bc21elements [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== BC21Elements ======
 +
 +**B = **//Buffer//
 +
 +**C = **//Calculation functions//
 +
 +The BC21Elements function __makes it possible to know the number of items inserted in the FIFO__.
 +
 +===== IMPLEMENTATION =====
 +
 +**BC21Elements (Buffer, Element, ErrorCode, head, tail)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRGBL/ ARRSYS  |  Buffer  |  B/W/L/ |Array containing the Buffer|
 +|  OUT  |  GLOBAL  |  Element  |  L  |Variable containing the number of elements included in the FIFO.|
 +|  OUT  |  GLOBAL  |  ErrorCode  |  F  |Variable containing the error possibly occurred during insertion of the value|
 +|  IN  |  GLOBAL / SYSTEM  |  head  |  L  |Internal index|
 +|  IN  |  GLOBAL / SYSTEM  |  tail  |  L  |Internal index|
 +
 +==== Error ====
 +
 +Once invoked the function if there are any errors the error variable (ErrorCode) takes the following values:\\
 +0 - No error\\
 +1 - No data in FIFO.\\
 +2 - FIFO memory that contains data not correctly formatted.