3.2.34  
Data operation circuit (DOC)
 
Below is a list of API functions output by the Code Generator for data operation circuit.
| 
Table 3.34 | API Functions: [Data Operation Circuit] | 
|  |  | 
| 
R_DOC_Create | 
Performs initialization necessary to control the data operation circuit. | 
| 
R_DOC_Create_UserInit | 
Performs user-defined initialization relating to the data operation circuit. | 
| 
r_doc_dopcf_interrupt | 
Performs processing in response to the data operation circuit interrupt. | 
| 
R_DOC_SetMode | 
Sets the operating mode and the initial value of the reference value for use by the data operation circuit. | 
| 
R_DOC_WriteData | 
Sets the input value (value for comparison with, addition to, or subtraction from the reference value) for use by the data operation circuit. | 
| 
R_DOC_GetResult | 
Gets the result of operation. | 
| 
R_DOC_ClearFlag | 
Clears the data operation circuit flag. |