module ti.ipc.namesrv.NameServerRemoteRpmsg
C synopsis target-domain sourced in ti/ipc/namesrv/NameServerRemoteRpmsg.xdc
#include <ti/ipc/namesrv/NameServerRemoteRpmsg.h>
Functions
Void
Void
Void
Void
Functions common to all INameServerRemote modules
Int 
Int 
Int 
NameServerRemoteRpmsg_get// (NameServerRemoteRpmsg_Handle handle, String instanceName, String name, Ptr value, UInt32 *valueLen, ISync_Handle syncHandle, Error_Block *eb);
SizeT 
Functions common to all target instances
Functions common to all target modules
Typedefs
typedef struct
typedef struct
typedef enum
typedef struct
Constants
extern const Assert_Id 
extern const UInt 
 
 
enum NameServerRemoteRpmsg_Status

Status codes returned by certain calls

C synopsis target-domain
typedef enum NameServerRemoteRpmsg_Status {
    NameServerRemoteRpmsg_S_SUCCESS,
    NameServerRemoteRpmsg_E_FAIL,
    NameServerRemoteRpmsg_E_ERROR
} NameServerRemoteRpmsg_Status;
 
 
config NameServerRemoteRpmsg_A_nameIsTooLong  // module-wide

Assert raised if too many characters in the name

C synopsis target-domain
extern const Assert_Id NameServerRemoteRpmsg_A_nameIsTooLong;
 
 
config NameServerRemoteRpmsg_timeoutInMicroSecs  // module-wide

The timeout value in terms of microseconds

C synopsis target-domain
extern const UInt NameServerRemoteRpmsg_timeoutInMicroSecs;
 
DETAILS
A NameServer request will return after this amout of time without a response. The default timeout value is 1 s. To not wait, use the value of '0'. To wait forever, use '~(0)'.
 
NameServerRemoteRpmsg_attach()  // module-wide

Function is called by Ipc_attach() through NameServer_SetupProxy

C synopsis target-domain
Int NameServerRemoteRpmsg_attach(UInt16 remoteProcId, Ptr sharedAddr);
 
 
NameServerRemoteRpmsg_detach()  // module-wide

Function is called by Ipc_detach() through NameServer_SetupProxy

C synopsis target-domain
Int NameServerRemoteRpmsg_detach(UInt16 remoteProcId);
 
 
NameServerRemoteRpmsg_sharedMemReq()  // module-wide

Returns the shared memory size requirement for a single instance

C synopsis target-domain
SizeT NameServerRemoteRpmsg_sharedMemReq(Ptr sharedAddr);
 
ARGUMENTS
sharedAddr — Shared address
RETURNS
Number of MAUs needed to create the instance.
DETAILS
Function is called during Ipc_attach() through NameServer_SetupProxy.
Module-Wide Built-Ins

C synopsis target-domain
Types_ModuleId NameServerRemoteRpmsg_Module_id();
// Get this module's unique id
 
Bool NameServerRemoteRpmsg_Module_startupDone();
// Test if this module has completed startup
 
IHeap_Handle NameServerRemoteRpmsg_Module_heap();
// The heap from which this module allocates memory
 
Bool NameServerRemoteRpmsg_Module_hasMask();
// Test whether this module has a diagnostics mask
 
Bits16 NameServerRemoteRpmsg_Module_getMask();
// Returns the diagnostics mask for this module
 
Void NameServerRemoteRpmsg_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
Instance Object Types

C synopsis target-domain
typedef struct NameServerRemoteRpmsg_Object NameServerRemoteRpmsg_Object;
// Opaque internal representation of an instance object
 
typedef NameServerRemoteRpmsg_Object *NameServerRemoteRpmsg_Handle;
// Client reference to an instance object
 
typedef struct NameServerRemoteRpmsg_Struct NameServerRemoteRpmsg_Struct;
// Opaque client structure large enough to hold an instance object
 
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_handle(NameServerRemoteRpmsg_Struct *structP);
// Convert this instance structure pointer into an instance handle
 
NameServerRemoteRpmsg_Struct *NameServerRemoteRpmsg_struct(NameServerRemoteRpmsg_Handle handle);
// Convert this instance handle into an instance structure pointer
Instance Config Parameters

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

C synopsis target-domain
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_create(UInt16 procId, const NameServerRemoteRpmsg_Params *params, Error_Block *eb);
// Allocate and initialize a new instance object and return its handle
 
Void NameServerRemoteRpmsg_construct(NameServerRemoteRpmsg_Struct *structP, UInt16 procId, const NameServerRemoteRpmsg_Params *params);
// Initialize a new instance object inside the provided structure
ARGUMENTS
params — per-instance config params, or NULL to select default values (target-domain only)
eb — active error-handling block, or NULL to select default policy (target-domain only)
Instance Deletion

C synopsis target-domain
Void NameServerRemoteRpmsg_delete(NameServerRemoteRpmsg_Handle *handleP);
// Finalize and free this previously allocated instance object, setting the referenced handle to NULL
 
Void NameServerRemoteRpmsg_destruct(NameServerRemoteRpmsg_Struct *structP);
// Finalize the instance object inside the provided structure
 
NameServerRemoteRpmsg_get()  // instance
C synopsis target-domain
Int NameServerRemoteRpmsg_get(NameServerRemoteRpmsg_Handle handle, String instanceName, String name, Ptr value, UInt32 *valueLen, ISync_Handle syncHandle, Error_Block *eb);
 
ARGUMENTS
handle — handle of a previously-created NameServerRemoteRpmsg instance object
Instance Convertors

C synopsis target-domain
INameServerRemote_Handle NameServerRemoteRpmsg_Handle_upCast(NameServerRemoteRpmsg_Handle handle);
// unconditionally move one level up the inheritance hierarchy
 
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_Handle_downCast(INameServerRemote_Handle handle);
// conditionally move one level down the inheritance hierarchy; NULL upon failure
Instance Built-Ins

C synopsis target-domain
Int NameServerRemoteRpmsg_Object_count();
// The number of statically-created instance objects
 
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_Object_get(NameServerRemoteRpmsg_Object *array, Int i);
// The handle of the i-th statically-created instance object (array == NULL)
 
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_Object_first();
// The handle of the first dynamically-created instance object, or NULL
 
NameServerRemoteRpmsg_Handle NameServerRemoteRpmsg_Object_next(NameServerRemoteRpmsg_Handle handle);
// The handle of the next dynamically-created instance object, or NULL
 
IHeap_Handle NameServerRemoteRpmsg_Object_heap();
// The heap used to allocate dynamically-created instance objects
 
Types_Label *NameServerRemoteRpmsg_Handle_label(NameServerRemoteRpmsg_Handle handle, Types_Label *buf);
// The label associated with this instance object
 
String NameServerRemoteRpmsg_Handle_name(NameServerRemoteRpmsg_Handle handle);
// The name of this instance object
 
Configuration settings sourced in ti/ipc/namesrv/NameServerRemoteRpmsg.xdc
var NameServerRemoteRpmsg = xdc.useModule('ti.ipc.namesrv.NameServerRemoteRpmsg');
module-wide constants & types
        const NameServerRemoteRpmsg.S_SUCCESS;
        const NameServerRemoteRpmsg.E_FAIL;
        const NameServerRemoteRpmsg.E_ERROR;
module-wide config parameters
        msg: "Too many characters in name"
    };
 
per-instance config parameters
    var params = new NameServerRemoteRpmsg.Params// Instance config-params object;
per-instance creation
    var inst = NameServerRemoteRpmsg.create// Create an instance-object(UInt16 procId, params);
 
 
enum NameServerRemoteRpmsg.Status

Status codes returned by certain calls

Configuration settings
values of type NameServerRemoteRpmsg.Status
    const NameServerRemoteRpmsg.S_SUCCESS;
    const NameServerRemoteRpmsg.E_FAIL;
    const NameServerRemoteRpmsg.E_ERROR;
 
C SYNOPSIS
 
config NameServerRemoteRpmsg.A_nameIsTooLong  // module-wide

Assert raised if too many characters in the name

Configuration settings
NameServerRemoteRpmsg.A_nameIsTooLong = Assert.Desc {
    msg: "Too many characters in name"
};
 
C SYNOPSIS
 
config NameServerRemoteRpmsg.timeoutInMicroSecs  // module-wide

The timeout value in terms of microseconds

Configuration settings
NameServerRemoteRpmsg.timeoutInMicroSecs = UInt 1000000;
 
DETAILS
A NameServer request will return after this amout of time without a response. The default timeout value is 1 s. To not wait, use the value of '0'. To wait forever, use '~(0)'.
C SYNOPSIS
 
metaonly config NameServerRemoteRpmsg.common$  // module-wide

Common module configuration parameters

Configuration settings
NameServerRemoteRpmsg.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.
Instance Config Parameters

Configuration settings
var params = new NameServerRemoteRpmsg.Params;
// Instance config-params object
Static Instance Creation

Configuration settings
var params = new NameServerRemoteRpmsg.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = NameServerRemoteRpmsg.create(UInt16 procId, params);
// Create an instance-object
ARGUMENTS
params — per-instance config params, or NULL to select default values (target-domain only)
eb — active error-handling block, or NULL to select default policy (target-domain only)
generated on Fri, 21 Aug 2015 19:35:31 GMT