Interface: tos.interfaces.ParameterInit

interface ParameterInit<typedef parameter>

Author:
Phil Levis
David Gay Revision: $Revision: 1.11 $ Defines global error codes for error_t in TinyOS.

Commands
command error_t init(parameter param) Initialize this component.

Commands - Details

init

command error_t init(parameter param)

Initialize this component. Initialization should not assume that any component is running: init() cannot call any commands besides those that initialize other components. This command behaves identically to Init.init, except that it takes a parameter.

Parameters:
param - the initialization parameter
Returns:
SUCCESS if initialized properly, FAIL otherwise.