Apps     Components     Interfaces     All Files     Source Tree     source: tos.interfaces.StdControl.nc

Interface: StdControl

The TinyOS standard control interface. All components that require initialization or can be powered down should provide this interface. start() and stop() are synonymous with powering on and off, when appropriate. On boot, the init() of all wired components must be called. init() may be called multiple times, and in subcomponents before some of their supercomponents (e.g. if they are the subcomponent of multiple components). After init() has been called, start() and stop() may be called multiple times, in any order. The call sequence is therefore:

init* (start|stop)*

Components providing this interface:
apps.BAPBase.BAPBaseM
apps.Blink.BlinkM
apps.BlinkTask.BlinkTaskM
apps.Chirp.ChirpM
apps.Diagnostic.DiagnosticM
apps.DotId.DotIdM
apps.GenericBase.GenericBaseM
apps.Ident.AppM
apps.Oscilloscope.OscilloscopeM
apps.OscilloscopeRF.OscilloscopeM
apps.Sense.SenseM
apps.SenseLightToLog.SenseLightToLogM
apps.SenseLightToLog.SimpleCmdM
apps.SenseLightToSounder.SenseLightToSounderM
apps.SenseTask.SenseTaskM
apps.SimpleCmd.SimpleCmdM
apps.Social.SocialM
apps.Surge.SurgeM
apps.TestBAP.TestBAPM
apps.TestByteEEPROM.TestByteEEPROMC
apps.TestEEPROM.TestEEPROMM
apps.TestI2CPot.TestI2CPotM
apps.TestMig1.Mig1M
apps.TestTemp.TestTempM
apps.TestTimer.TestSyncTimerM
apps.TestTinyAlloc.TestTinyAllocM
apps_sinan.CompositionUsageForCounter.composeM
apps_sinan.MessageSending.msgsend
apps_sinan.MessageSending.msgsendAppM
apps_sinan.calisma.testM
tos.lib.Attr
tos.lib.Attributes.AttrGlobal
tos.lib.Attributes.AttrGlobalM
tos.lib.Attributes.AttrPhoto
tos.lib.Attributes.AttrPhotoM
tos.lib.Attributes.AttrPot
tos.lib.Attributes.AttrPotM
tos.lib.Attributes.AttrTemp
tos.lib.Attributes.AttrTempM
tos.lib.Bap
tos.lib.BapM
tos.lib.BapPing
tos.lib.Bombilla.Bombilla
tos.lib.Broadcast.Bcast
tos.lib.Broadcast.BcastM
tos.lib.Command
tos.lib.Commands.CommandAttr
tos.lib.Commands.CommandAttrM
tos.lib.Commands.CommandLeds
tos.lib.Commands.CommandLedsM
tos.lib.Commands.CommandPot
tos.lib.Commands.CommandPotM
tos.lib.Commands.CommandReset
tos.lib.Commands.CommandResetM
tos.lib.Commands.CommandSounder
tos.lib.Commands.CommandSounderM
tos.lib.Counter
tos.lib.Event
tos.lib.EventM
tos.lib.IdentC
tos.lib.IntToLeds
tos.lib.IntToLedsM
tos.lib.IntToRfm
tos.lib.IntToRfmM
tos.lib.Queue.QueuedSend
tos.lib.Queue.QueuedSendM
tos.lib.RfmToInt
tos.lib.RfmToIntM
tos.lib.Route.MultiHopRouteM
tos.lib.Route.MultiHopRouter
tos.lib.SenseToInt
tos.lib.TinyAlloc
tos.lib.TinyDB.DBBufferC
tos.lib.TinyDB.NetworkC
tos.lib.TinyDB.TableM
tos.lib.TinyDB.TinyDBAttr
tos.lib.TinyDB.TinyDBCommand
tos.lib.TinyDB.TinyDBEvent
tos.lib.TinyDB.TinyDBEventM
tos.lib.TinyDB.TupleRouter
tos.lib.TinyDB.TupleRouterM
tos.lib.UartDebuggerM
tos.platform.pc.EEPROM
tos.platform.pc.HPLClock
tos.platform.pc.I2CC
tos.platform.pc.I2CM
tos.platform.pc.MicaHighSpeedRadioM
tos.platform.pc.RadioCRCPacket
tos.platform.pc.TimerC
tos.platform.pc.TimerM
tos.platform.pc.UARTNoCRCPacket
tos.platform.pc.UARTNoCRCPacketM
tos.sensorboards.basicsb.Photo
tos.sensorboards.basicsb.PhotoM
tos.sensorboards.micasb.I2CPotC
tos.sensorboards.micasb.I2CPotM
tos.sensorboards.micasb.Photo
tos.sensorboards.micasb.PhotoTemp
tos.sensorboards.micasb.PhotoTempM
tos.sensorboards.micasb.Sounder
tos.sensorboards.micasb.SounderM
tos.sensorboards.micasb.Temp
tos.system.AMPromiscuous
tos.system.AMStandard
tos.system.ByteEEPROM
tos.system.ByteEEPROMC
tos.system.ClockC
tos.system.GenericComm
tos.system.GenericCommPromiscuous
tos.system.Logger
tos.system.LoggerM
tos.system.LogicalTime
tos.system.LogicalTimeM
tos.system.NoCRCPacket
tos.system.PacketSink
tos.system.UART
tos.system.UARTComm
tos.system.UARTM

Components requiring this interface:
apps.BAPBase.BAPBaseM
apps.Chirp.ChirpM
apps.Diagnostic.DiagnosticM
apps.DotId.DotIdM
apps.GenericBase.GenericBaseM
apps.Ident.AppM
apps.Oscilloscope.OscilloscopeM
apps.OscilloscopeRF.OscilloscopeM
apps.Sense.SenseM
apps.SenseLightToLog.SenseLightToLogM
apps.SenseLightToLog.SimpleCmdM
apps.SenseLightToSounder.SenseLightToSounderM
apps.SenseTask.SenseTaskM
apps.SimpleCmd.SimpleCmdM
apps.Social.SocialM
apps.Surge.SurgeM
apps.TestBAP.TestBAPM
apps.TestByteEEPROM.TestByteEEPROMC
apps.TestEEPROM.TestEEPROMM
apps.TestI2CPot.TestI2CPotM
apps.TestMig1.Mig1M
apps.TestTemp.TestTempM
apps.TestTimer.TestSyncTimerM
apps_sinan.MessageSending.msgsendM
apps_sinan.calisma.testM
tos.lib.Attributes.AttrPhotoM
tos.lib.Attributes.AttrTempM
tos.lib.BapM
tos.lib.Bombilla.Bombilla
tos.lib.Broadcast.BcastM
tos.lib.Commands.CommandSounderM
tos.lib.IntToRfmM
tos.lib.RfmToIntM
tos.lib.Route.MultiHopRouteM
tos.lib.SenseToInt
tos.lib.TinyDB.TupleRouterM
tos.platform.pc.Main
tos.platform.pc.Nido
tos.sensorboards.micasb.I2CPotM
tos.system.AMPromiscuous
tos.system.AMStandard
tos.system.ByteEEPROMC
tos.system.Checkpoint
tos.system.LoggerM
tos.system.LogicalTimeM
tos.system.NoCRCPacket

Commands

Commands - Details

init

result_t init(void)

Initialize the component and its subcomponents.
Returns: Whether initialization was successful.

start

result_t start(void)

Start the component and its subcomponents.
Returns: Whether starting was successful.

stop

result_t stop(void)

Stop the component and pertinent subcomponents (not all subcomponents may be turned off due to wakeup timers, etc.).
Returns: Whether stopping was successful.