R_DOC_SetMode

Configures the operation mode of data operation circuit.

[Syntax]

#include r_cg_macrodriver.h

#include r_cg_doc.h

MD_STATUS R_DOC_SetMode ( doc_mode_t mode, unit16_t value );

[Argument(s)]

I/O

Argument

Description

I

doc_mode_t mode;

Operation mode of data operation circuit

ADDITION : Data addition mode

SUBTRACTION : Data subtraction mode

COMPARE_MATCH : Data comparison mode

(Detection Condition: Data match is detected)

COMPARE_MISMATCH : Data subtraction mode

(Detection Condition: Data mismatch is detected)

I

uint16_t value;

Data addition and data subtraction : Results of operations

Data comparison : 16-bit data for use as a reference

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument specification