Interface: tos.chips.cc1000.LowPowerListening
interface LowPowerListening
Low Power Listening interface
- Author:
-
David Moss
-
Jonathan Hui
Commands
command uint16_t dutyCycleToSleepInterval(uint16_t dutyCycle)
command void setLocalDutyCycle(uint16_t dutyCycle)
command void setLocalSleepInterval(uint16_t sleepIntervalMs)
command void setRxDutyCycle(message_t *msg, uint16_t dutyCycle)
command void setRxSleepInterval(message_t *msg, uint16_t sleepIntervalMs)
command uint16_t sleepIntervalToDutyCycle(uint16_t sleepInterval)
Commands - Details
dutyCycleToSleepInterval
command uint16_t dutyCycleToSleepInterval(uint16_t dutyCycle)
- Parameters:
-
dutyCycle - The duty cycle in units of [percentage*100]
- Returns:
-
The equivalent sleep interval, in units of [ms]
getLocalDutyCycle
command uint16_t getLocalDutyCycle()
- Returns:
-
this node's radio duty cycle rate, in units of [percentage*100]
getLocalSleepInterval
command uint16_t getLocalSleepInterval()
- Returns:
-
the local node's sleep interval, in [ms]
getRxDutyCycle
command uint16_t getRxDutyCycle(message_t *msg)
- Returns:
-
the destination node's duty cycle configured in this message
in units of [percentage*100]
getRxSleepInterval
command uint16_t getRxSleepInterval(message_t *msg)
- Returns:
-
the destination node's sleep interval configured in this message
setLocalDutyCycle
command void setLocalDutyCycle(uint16_t dutyCycle)
- Parameters:
-
dutyCycle - The duty cycle percentage, in units of [percentage*100]
setLocalSleepInterval
command void setLocalSleepInterval(uint16_t sleepIntervalMs)
- Parameters:
-
sleepIntervalMs - the length of this node's Rx check interval, in [ms]
setRxDutyCycle
command void setRxDutyCycle(message_t *msg, uint16_t dutyCycle)
- Parameters:
-
msg - Pointer to the message that will be sent
-
dutyCycle - The duty cycle of the receiving mote, in units of
[percentage*100]
setRxSleepInterval
command void setRxSleepInterval(message_t *msg, uint16_t sleepIntervalMs)
- Parameters:
-
'message_t* ONE msg' Pointer to the message that will be sent
-
sleepInterval - The receiving node's sleep interval, in [ms]
sleepIntervalToDutyCycle
command uint16_t sleepIntervalToDutyCycle(uint16_t sleepInterval)
- Parameters:
-
sleepInterval - The sleep interval in units of [ms]
- Returns:
-
The duty cycle in units of [percentage*100]