metaonly module ti.bios.SEM

SEM module

legacy module to support BIOS 5.x, see BIOS 5.x docs for more info
XDCspec summary sourced in ti/bios/SEM.xdc
metaonly module SEM {  ...
instance:  ...
XDCscript usage meta-domain
var SEM = xdc.useModule('ti.bios.SEM');
module-wide config parameters
per-instance config parameters
    var params = new SEM.Params// Instance config-params object;
        params.comment// Type a comment to identify this object = String "";
        params.count// Initial semaphore count = UInt 0;
        params.name// Specify the name of the object = String "";
per-instance creation
    var inst = SEM.create// Create an instance-object( String name, params );
 
XDCspec declarations sourced in ti/bios/SEM.xdc
package ti.bios;
 
metaonly module SEM {
module-wide config parameters
 
 
instance:
per-instance config parameters
    config UInt count// Initial semaphore count = 0;
    config String name// Specify the name of the object = "";
per-instance creation
    create// Create an instance-object( String name );
}
 
config SEM.OBJMEMSEG  // module-wide

The memory segment that contains the SEM objects

XDCscript usage meta-domain
SEM.OBJMEMSEG = MEM.Instance null;
 
 
per-instance config parameters

XDCscript usage meta-domain
var params = new SEM.Params;
// Instance config-params object
    params.comment = String "";
    // Type a comment to identify this object
    params.count = UInt 0;
    // Initial semaphore count
    params.name = String "";
    // Specify the name of the object
 
config SEM.comment  // per-instance

Type a comment to identify this object

XDCscript usage meta-domain
var params = new SEM.Params;
  ...
params.comment = String "";
 
 
config SEM.count  // per-instance

Initial semaphore count

XDCscript usage meta-domain
var params = new SEM.Params;
  ...
params.count = UInt 0;
 
 
config SEM.name  // per-instance

Specify the name of the object

XDCscript usage meta-domain
var params = new SEM.Params;
  ...
params.name = String "";
 
 
per-instance creation

XDCscript usage meta-domain
var params = new SEM.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = SEM.create( String name, params );
// Create an instance-object
generated on Fri, 16 Oct 2009 20:56:45 GMT