BC10InitBuf
B = Buffer
C = Calculation functions
The BC10InitBuf function executes the initialization of a ring buffer.
The function requires that you pass the name of the array that serves as a ring buffer and returns a value to the variable ErrCode in case there is an error.
IMPLEMENTATION
BC10InitBuf (Buffer, ErrCode L)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | ARRSYS | Buffer | B/W/L/S | Array containing the Buffer |
OUT | GLOBAL | ErrCode | F | Error Flag (see below) |
Error
ErrCode variable
0 = No error
1 = Array dimension less than 3 elements
Example
INIZ: BC10InitBuf (Buffer, ErrCode) MAIN: WAIT 1 JUMP MAIN END
Note
-
The function must be called at least once (not necessarily every time, just once in a lifetime of the application) if you wish to use the functions BC10PushBuf or BC10PopBuf.