Everything

ref_mpf

Outline
Reference fixed-sized memory pool state.
C format
 ER      ref_mpf ( ID mpfid, T_RMPF *pk_rmpf );

Assembly format
 MOVW    BC, #LOWW(_pk_rmpf)
 MOV     A,  #mpfid
 CALL    !!_ref_mpf

Parameter(s)
I/O
Parameter
Description
I
 ID      mpfid;
ID number of the fixed-sized memory pool to be referenced.
O
 T_RMPF  *pk_rmpf;
Pointer to the packet returning the fixed-sized memory pool state.

Explanation
Stores fixed-sized memory pool state packet (such as existence of waiting tasks) of the fixed-sized memory pool specified by parameter mpfid in the area specified by parameter pk_rmpf.
Note For details about the fixed-sized memory pool state packet, refer to "12.5.7 Fixed-sized memory pool state packet".
Return value
Macro
Value
Description
E_OK
0
Normal completion.