mmi_register_instance
NAME
mmi_register_instance - Register device instance with SAM
SYNOPSIS
#include "mmi.h"
mmi_instance_t mmi_register_instance (const char* instance_name, const char *short_descr)
DESCRIPTION
mmi_register_instance() registers a
module instance with the simulation model and provides a short description. It returns an opaque pointer
used on subsequent actions on the module instance. instance_name is
the name of the device instance, and short_descr is a descriptive string
associated with the instance, and displayed by the modinfo UI command in SAM.
This function is typically called from within the instance creator function registered
by mmi_register_instance_creator().
RETURN VALUES
mmi_register_instance() returns an opaque instance pointer.
ERRORS
mmi_register_instance() will fail if instance_name is not recognized by SAM.
SEE ALSO
Introduction
mmi_register_instance_creator