3.1.0.0R9
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Module management

Functions

const void * ltrx_module_functions_lookup (const char *module_name)
 Reference another module. More...
 
void ltrx_module_register (const struct ltrx_module_info *lmi)
 Register your module. More...
 

Detailed Description

Modules contain blocks of code that may optionally be selected for loading onto the device.

Access is restricted to functions that are formally exported by the module.

Each module must provide a registration and a startup function that will be called during initialization. The registration function is <module name>_module_registration and should contain all of the module's registration calls. The startup function is <module name>_module_startup. All of the module registration functions are called before any of the startup functions, so at startup all of the registrations from other modules will be visible.

See the SDK sample modules for examples of its usage.

Function Documentation

const void* ltrx_module_functions_lookup ( const char *  module_name)

Reference another module.

Picks up the table of functions exported by another module.

Assign return value to g_<the_module>ExternalFunctionEntry_pointer

Where g_<the_module> is the name of the module you are referencing.

Returns
Structure of function pointers.
Return values
NULLLookup failed.
Parameters
[in]module_nameName of desired module.
void ltrx_module_register ( const struct ltrx_module_info *  lmi)

Register your module.

Register your module in its initialization, before running any of your code.

Parameters
[in]lmiRegistration information. Refer to structure generated by make: &g_<module_name>ModuleInfo

Where <module_name> is the name of your module.