Rev.1.01 2007.02.16
RJJ10J1643-0101
200
__ClearADCStatus
Synopsis
<Clear the status of A/D converter>
Boolean __ClearADCStatus(unsigned int status)
status Status of A/D converter
Description
Clears the status flag of a specified A/D converter.
Specify the status of interrupt bit (when using the M16C or R8C) or the value of A/D
end flag (when using the H8/300H) in the first low-order bit of status.
When used in the M16C, specify the value of A/D conversion status register 0 in the 8
high-order bits of status. Write 0 to the bits to be cleared and 1 to the bits that do not
need to be cleared.
[Configuration of status]
Value of A/D conversion status register 0 (for
only the M16C; 0 for the R8C and H8/300H)
Value of interrupt bit or
A/D end flag
Return value
If A/D converter status flag was successfully cleared, RAPI_TRUE is returned; if failed,
RAPI_FALSE is returned.
Functionality
A/D converter
Reference
__GetADCStatus
Program example
#include "rapi_ad_r8c_13.h"
void func( void )
{
/* Clear status of A/D convertered */
__ClearADCStatus( 0 );
}
0000000