NjxUndo Function

Description

This function undoes learning information for the specified number of undo actions. It also clears data according to preconfirmed information.
The oldest information in the learning dictionary is deleted as new learning information is added. It is not possible, therefore, to undo learning information that has already been deleted.

Syntax

#include <mw/iwnn/iwnnCTR.h>

s16 NjxUndo(
     IWNN_CLASS* iwnn,                            // Parsing information class
     u16 undoCount                                // Undo count
);

Arguments

NameDescription
IN / OUT IWNN_CLASS* iwnn Parsing information class
An error results if NULL is specified.
IN u16 undoCount The undo count.

Return Value

s16 Negative value: Error
Other: The number of undo actions performed

Error

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn
NJ_ERR_DIC_NOT_FOUND The dictionary specified by type does not exist in the dictionary set specified in iwnn->dicSet
NJ_ERR_PROTECTION_ERR Operations have been performed on memory secured by a learning dictionary function
NJ_ERR_DIC_BROKEN   ■ When the add location for learning dictionary information and user dictionary information could not be obtained from the learning dictionary and user dictionary specified in iwnn->dicSet
  ■ When the number of words to register is greater than the maximum number of registerable words as defined in the learning dictionary and user dictionary header specified in iwnn->dicSet
 ■ When the data in the learning dictionary and user dictionary queue specified in iwnn->dicSet is corrupted

CONFIDENTIAL