Sets the operating mode and the initial value of the reference value for use by the data operation circuit.
When COMPARE_MISMATCH or COMPARE_MATCH (data comparison mode) is specified as the mode of operation, the 16-bit reference value is stored in the DOC data setting register (DODSR). |
When ADDITION (data addition mode) or SUBTRACTION (data subtraction mode) is specified for the mode (operation mode), the 16-bit value is stored in the DOC data setting register (DODSR) as the initial value. |
#include "r_cg_macrodriver.h" #include "r_cg_doc.h" void R_DOC_SetMode ( doc_mode_t mode, uint16_t value ); |