Look at the PowerCycle Interface in chips/cc2420/interfaces
Just wire to the PowerCycle Interface of PowerCycleC:
MyAppC.detectiontriggered -> PowerCycleC.PowerCycle
Include the PowerCycle Interface in your implementation and you have
your event:
event void PowerCycle .detected() {
// do whatever you want e.g. save the time or increment a counter
}
Murray, Ben wrote:
Is there a simple way to catch the triggering of a single event within a
module (assuming the module/component contains a number of commands and
events and signals etc) and to pass just this event out to my component?
This question stems from using low power listening and a wish to know when
energy has been detected, not just when a packet has been received so that I
know when as an extra long "listen/wake" time has elapsed without a package
being received. The specific event I would like my programme to know about
is PowerCycle.detected() and the subsequent call of startOffTimer().
Is there an easy way to catch just this event within my programme without
interfering with the general operation of LPL?
MyAppC.detectiontriggered -> PowerCycleP.detected
...or something?
TinyOS 2.0.2
Micaz & mib510
XP/Cygwin
many thanks,
Ben
*******************************************************************************
Please consider the environment before printing this email.
*******************************************************************************
This email and any files transmitted with it are intended solely for the use of
the individual or entity to whom they are addressed and may not be divulged to
any third party without the express permission of the originator. Any views
expressed in this message are those of the individual sender, except where the
sender specifically states them to be the views of Thales Research & Technology
(UK) Limited.
*******************************************************************************
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help