Download Reference Guide v1.2 - open-ZB

Transcript
TR-061106
An IEEE 802.15.4 protocol implementation (in nesC/TinyOS): Reference Guide v1.2
Figure 20 - Timer events in superframe structure.
Provided Interfaces
The provided interfaces of the TimerAsyncM component are the following:
• TimerAsync
Variables
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
uint32_t ticks_counter – current number of clock ticks on each beacon interval.
uint32_t bi_ticks – number of clock ticks needed to reach the beacon interval
boundary.
uint32_t bi_backoff_periods – number of backoffs in one beacon interval.
uint32_t before_bi_ticks – number of clock ticks needed to reach the boundary
defined by the bi_ticks – BEFORE_BI_INTERVAL (constant).
uint32_t sd_ticks – number of clock ticks needed to reach the superframe
duration interval boundary.
uint32_t time_slot_backoff_periods – number of backoffs in one time slot.
uint32_t time_slot_ticks –total number of clock ticks needed to reach the beacon
interval boundary.
uint32_t before_time_slot_ticks - number of clock ticks needed to reach the
boundary defined by the bi_ticks – BEFORE_BB_INTERVAL (constant).
uint32_t time_slot_tick_next_fire – number of clock ticks needed to reach the
next time slot boundary.
uint32_t backoff_symbols – number of symbols in one backoff.
uint32_t backoff_ticks – number of clock ticks in one backoff.
uint32_t backoff_ticks_counter – current number of clock ticks on each backoff.
uint8_t current_time_slot – current time slot number.
uint32_t current_number_backoff_on_time_slot – current backoff number on
each time slot.
uint32_t current_number_backoff – current number of backoff on each beacon
interval.
bool backoffs – enable/disable backoff events .
uint8_t previous_sfd – temporary variable that stores the SFD pin reading .
uint8_t current_sfd – temporary variable that stores the SFD pin reading.
uint32_t process_frame_tick_counter – current number of clock ticks needed to
fully receive a data frame.
uint32_t total_tick_counter – current number of clock ticks.
Function description
© IPP Hurray! Research Group
www.hurray.isep.ipp.pt
49