module ti.sdo.ipc.Notify

Notification manager

This module has a common header that can be found in the ti.ipc package. Application code should include the common header file (not the RTSC-generated one):
#include <ti/ipc/Notify.h>
The RTSC module must be used in the application's RTSC configuration file (.cfg) if runtime APIs will be used in the application:
Notify = xdc.useModule('ti.sdo.ipc.Notify');
Documentation for all runtime APIs, instance configuration parameters, error codes macros and type definitions available to the application integrator can be found in the Doxygen documenation for the IPC product. However, the documentation presented on this page should be referred to for information specific to the RTSC module, such as module configuration, Errors, and Asserts. [ more ... ]
C synopsis target-domain sourced in ti/sdo/ipc/Notify.xdc
#include <ti/sdo/ipc/Notify.h>
Functions
Void
Functions common to all target instances
Functions common to all target modules
Defines
#define
Typedefs
typedef Notify_Object *
typedef struct
typedef struct
typedef struct
Constants
extern const Assert_Id 
extern const Assert_Id 
extern const Assert_Id 
extern const Assert_Id 
extern const Assert_Id 
extern const Assert_Id 
extern const UInt 
extern const UInt16 
extern const UInt32 
 
DETAILS
This module has a common header that can be found in the ti.ipc package. Application code should include the common header file (not the RTSC-generated one):
#include <ti/ipc/Notify.h>
The RTSC module must be used in the application's RTSC configuration file (.cfg) if runtime APIs will be used in the application:
Notify = xdc.useModule('ti.sdo.ipc.Notify');
Documentation for all runtime APIs, instance configuration parameters, error codes macros and type definitions available to the application integrator can be found in the Doxygen documenation for the IPC product. However, the documentation presented on this page should be referred to for information specific to the RTSC module, such as module configuration, Errors, and Asserts.
The Notify module typically doesn't require much (if any) configuration at static time. However, it is possible to reduce the amount of shared memory used by the Notify subsystem by reducing the value of numEvents.
 
const Notify_MAXEVENTS

Maximum number of events supported by the Notify module

C synopsis target-domain
#define Notify_MAXEVENTS (UInt)32
 
 
config Notify_A_alreadyRegistered  // module-wide

Assert raised when trying to re-register for given line and processor

C synopsis target-domain
extern const Assert_Id Notify_A_alreadyRegistered;
 
 
config Notify_A_internal  // module-wide

Assert raised when an internal error is encountered

C synopsis target-domain
extern const Assert_Id Notify_A_internal;
 
 
config Notify_A_invArgument  // module-wide

Assert raised when an argument is invalid

C synopsis target-domain
extern const Assert_Id Notify_A_invArgument;
 
 
config Notify_A_notRegistered  // module-wide

Assert raised when trying to use an unregistered Notify instance

C synopsis target-domain
extern const Assert_Id Notify_A_notRegistered;
 
 
config Notify_A_outOfOrderNesting  // module-wide

Assert raised when restore called with improper key

C synopsis target-domain
extern const Assert_Id Notify_A_outOfOrderNesting;
 
 
config Notify_A_reservedEvent  // module-wide

Assert raised when trying to improperly use a reserved event

C synopsis target-domain
extern const Assert_Id Notify_A_reservedEvent;
 
 
config Notify_numEvents  // module-wide

Number of events supported by Notify

C synopsis target-domain
extern const UInt Notify_numEvents;
 
DETAILS
Lowering this value offers the benefit of lower footprint especially in shared memory.
 
config Notify_reservedEvents  // module-wide

Number of reserved event numbers

C synopsis target-domain
extern const UInt16 Notify_reservedEvents;
 
DETAILS
The first reservedEvents event numbers are reserved for middleware modules. Attempts to use these reserved events will result in a A_reservedEvent assert.
To use the reserved events, the top 16-bits of the eventId must equal Notify_SYSTEMKEY.
 
config Notify_sendEventPollCount  // module-wide

Poll for specified amount before sendEvent times out

C synopsis target-domain
extern const UInt32 Notify_sendEventPollCount;
 
DETAILS
Setting a finite value for sendEventPollCount will cause Notify_sendEvent to poll for an amount of time proportional to this value when the 'waitClear' flag is TRUE.
Module-Wide Built-Ins

C synopsis target-domain
Types_ModuleId Notify_Module_id();
// Get this module's unique id
 
Bool Notify_Module_startupDone();
// Test if this module has completed startup
 
IHeap_Handle Notify_Module_heap();
// The heap from which this module allocates memory
 
Bool Notify_Module_hasMask();
// Test whether this module has a diagnostics mask
 
Bits16 Notify_Module_getMask();
// Returns the diagnostics mask for this module
 
Void Notify_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
Instance Object Types

C synopsis target-domain
typedef struct Notify_Object Notify_Object;
// Opaque internal representation of an instance object
 
typedef Notify_Object *Notify_Handle;
// Client reference to an instance object
 
typedef struct Notify_Struct Notify_Struct;
// Opaque client structure large enough to hold an instance object
 
Notify_Handle Notify_handle(Notify_Struct *structP);
// Convert this instance structure pointer into an instance handle
 
Notify_Struct *Notify_struct(Notify_Handle handle);
// Convert this instance handle into an instance structure pointer
Instance Config Parameters

C synopsis target-domain
typedef struct Notify_Params {
// Instance config-params structure
    IInstance_Params *instance;
    // Common per-instance configs
} Notify_Params;
 
Void Notify_Params_init(Notify_Params *params);
// Initialize this config-params structure with supplier-specified defaults before instance creation
Instance Built-Ins

C synopsis target-domain
Int Notify_Object_count();
// The number of statically-created instance objects
 
Notify_Handle Notify_Object_get(Notify_Object *array, Int i);
// The handle of the i-th statically-created instance object (array == NULL)
 
Notify_Handle Notify_Object_first();
// The handle of the first dynamically-created instance object, or NULL
 
Notify_Handle Notify_Object_next(Notify_Handle handle);
// The handle of the next dynamically-created instance object, or NULL
 
IHeap_Handle Notify_Object_heap();
// The heap used to allocate dynamically-created instance objects
 
Types_Label *Notify_Handle_label(Notify_Handle handle, Types_Label *buf);
// The label associated with this instance object
 
String Notify_Handle_name(Notify_Handle handle);
// The name of this instance object
 
XDCscript usage meta-domain sourced in ti/sdo/ipc/Notify.xdc
var Notify = xdc.useModule('ti.sdo.ipc.Notify');
local proxy modules
        Notify.SetupProxy.delegate$ = INotifySetup.Module null
module-wide constants & types
module-wide config parameters
        msg: "A_alreadyRegistered: Notify instance for the processor/line already registered"
    };
        msg: "A_internal: An internal error has occurred"
    };
        msg: "A_invArgument: Invalid argument supplied"
    };
        msg: "A_notRegistered: Notify instance not yet registered for the processor/line"
    };
        msg: "A_outOfOrderNesting: Out of order nesting"
    };
        msg: "A_reservedEvent: Improper use of a reserved event"
    };
 
per-instance config parameters
    var params = new Notify.Params// Instance config-params object;
 
 
proxy Notify.SetupProxy

Device-specific Notify setup proxy

XDCscript usage meta-domain
Notify.SetupProxy = INotifySetup.Module null
// some delegate module inheriting the INotifySetup interface
    Notify.SetupProxy.delegate$ = INotifySetup.Module null
    // explicit access to the currently bound delegate module
 
 
const Notify.MAXEVENTS

Maximum number of events supported by the Notify module

XDCscript usage meta-domain
const Notify.MAXEVENTS = 32;
 
C SYNOPSIS
 
config Notify.A_alreadyRegistered  // module-wide

Assert raised when trying to re-register for given line and processor

XDCscript usage meta-domain
Notify.A_alreadyRegistered = Assert.Desc {
    msg: "A_alreadyRegistered: Notify instance for the processor/line already registered"
};
 
C SYNOPSIS
 
config Notify.A_internal  // module-wide

Assert raised when an internal error is encountered

XDCscript usage meta-domain
Notify.A_internal = Assert.Desc {
    msg: "A_internal: An internal error has occurred"
};
 
C SYNOPSIS
 
config Notify.A_invArgument  // module-wide

Assert raised when an argument is invalid

XDCscript usage meta-domain
Notify.A_invArgument = Assert.Desc {
    msg: "A_invArgument: Invalid argument supplied"
};
 
C SYNOPSIS
 
config Notify.A_notRegistered  // module-wide

Assert raised when trying to use an unregistered Notify instance

XDCscript usage meta-domain
Notify.A_notRegistered = Assert.Desc {
    msg: "A_notRegistered: Notify instance not yet registered for the processor/line"
};
 
C SYNOPSIS
 
config Notify.A_outOfOrderNesting  // module-wide

Assert raised when restore called with improper key

XDCscript usage meta-domain
Notify.A_outOfOrderNesting = Assert.Desc {
    msg: "A_outOfOrderNesting: Out of order nesting"
};
 
C SYNOPSIS
 
config Notify.A_reservedEvent  // module-wide

Assert raised when trying to improperly use a reserved event

XDCscript usage meta-domain
Notify.A_reservedEvent = Assert.Desc {
    msg: "A_reservedEvent: Improper use of a reserved event"
};
 
C SYNOPSIS
 
config Notify.numEvents  // module-wide

Number of events supported by Notify

XDCscript usage meta-domain
Notify.numEvents = UInt 32;
 
DETAILS
Lowering this value offers the benefit of lower footprint especially in shared memory.
C SYNOPSIS
 
config Notify.reservedEvents  // module-wide

Number of reserved event numbers

XDCscript usage meta-domain
Notify.reservedEvents = UInt16 5;
 
DETAILS
The first reservedEvents event numbers are reserved for middleware modules. Attempts to use these reserved events will result in a A_reservedEvent assert.
To use the reserved events, the top 16-bits of the eventId must equal Notify_SYSTEMKEY.
C SYNOPSIS
 
config Notify.sendEventPollCount  // module-wide

Poll for specified amount before sendEvent times out

XDCscript usage meta-domain
Notify.sendEventPollCount = UInt32 -1;
 
DETAILS
Setting a finite value for sendEventPollCount will cause Notify_sendEvent to poll for an amount of time proportional to this value when the 'waitClear' flag is TRUE.
C SYNOPSIS
 
metaonly config Notify.common$  // module-wide

Common module configuration parameters

XDCscript usage meta-domain
Notify.common$ = Types.Common$ undefined;
 
DETAILS
All modules have this configuration parameter. Its name contains the '$' character to ensure it does not conflict with configuration parameters declared by the module. This allows new configuration parameters to be added in the future without any chance of breaking existing modules.
 
metaonly config Notify.rovViewInfo  // module-wide
XDCscript usage meta-domain
Notify.rovViewInfo = ViewInfo.Instance ViewInfo.create;
 
Instance Config Parameters

XDCscript usage meta-domain
var params = new Notify.Params;
// Instance config-params object
generated on Sat, 11 Feb 2012 00:38:10 GMT