module ti.sdo.io.DriverTable |
|
|
|
DriverTable module
This module maintains a table of
IDriver.Handle. Other modules can
lookup these handles by name and open channels for IO. The
Stream
module will open channels using this table. All names in this table have to
be unique.
[
more ... ]
#include <ti/sdo/io/DriverTable.h>
Functions |
Void | |
Void | |
Functions common to all target modules |
|
|
Constants |
| |
extern const UInt | |
extern const UInt | |
DETAILS
This module maintains a table of
IDriver.Handle. Other modules can
lookup these handles by name and open channels for IO. The
Stream
module will open channels using this table. All names in this table have to
be unique.
This module allows addition of IDriver handles into the table at
configuration time as well as at runtime. However, the total number of
runtime entries have to be decided at configuration time. There is no limit
to entries added statically.
This module uses
ti.sdo.utils.NameServer to maintain its table
config DriverTable_gate // module-wide |
|
Gate used to make the table thread safe
config DriverTable_maxNameLen // module-wide |
|
Length, in MAUs, of the name field in the table
extern const UInt DriverTable_maxNameLen;
config DriverTable_maxRuntimeEntries // module-wide |
|
Max runtime entries that can be added
extern const UInt DriverTable_maxRuntimeEntries;
DETAILS
Currently this module requires total number of entries that need
to be added at runtime to be identified at configuration time.
DriverTable_add() // module-wide |
|
Add IDriver handle to the table at runtime
ARGUMENTS
name
name of entry
eb
Error Block
DETAILS
Will raise an error when name already exists in table.
This API is not thread safe. Set
gate parameter
to protect table if called from multiple threads.
DriverTable_remove() // module-wide |
|
Remove entry from IDriver table at runtime
ARGUMENTS
name
name of entry
eb
error block
DETAILS
Will raise an error when name not found in table
This API is not thread safe. Set
gate parameter
to protect table if called from multiple threads.
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool DriverTable_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool DriverTable_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 DriverTable_Module_getMask();
// Returns the diagnostics mask for this module
Void DriverTable_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var DriverTable = xdc.useModule('ti.sdo.io.DriverTable');
module-wide config parameters
module-wide functions
generated on Wed, 23 Mar 2011 16:23:26 GMT