Download Reference Guide v1.2 - open-ZB

Transcript
TR-061106
An IEEE 802.15.4 protocol implementation (in nesC/TinyOS): Reference Guide v1.2
procedure of this function will only send if there are messages to send. This function
is only used by non-coordinator devices;
• uint32_t calculate_gts_expiration() – Function used to calculate the expiration time of
the allocated GTSs. Each allocated GTS will expire if there are no transmissions
during a calculated superframe count. This function is only used by the PAN
coordinator;
• task void check_gts_expiration() – Function used to verify if the allocated GTS time
slots are expired or not. If a GTS expires it will be placed in the GTS null descriptors.
This function is only used by the PAN coordinator;
• void init_gts_slot_list() – Used to initialize the gts_slot_element buffer array of the
GTS allocated time slots. This function is only used by the PAN coordinator;
• void init_GTS_null_db() - Used to initialize the GTS_null_db buffer array of the GTS
deallocated time slots. This function is only used by the PAN coordinator;
• void list_gts_null() - Function used to list the GTS null descriptors (GTS_null_db)
through the UART. Debug propose only.
• void list_gts() - Function used to list the GTS allocated descriptors (GTS_db) through
the UART. Debug propose only.
• void init_GTS_db() – Function used to initialize the GTS allocated descriptors
(GTS_db). This function is only used by the PAN coordinator;
• void list_my_gts() - Function used to list the device allocated GTS time slots through
the UART. Debug propose only.
CSMA/CA functions
• void init_csma_ca(bool slotted) – Function used to initialize the CSMA/CA
mechanism variables;
• void perform_csma_ca() – Function used to start the CSMA/CA mechanism;
• task void perform_csma_ca_unslotted() - Function used to execute the final steps of
the application of the unslotted version of CSMA/CA mechanism;
• task void perform_csma_ca_slotted() - Function used to execute the final steps of the
application of the slotted version of CSMA/CA mechanism;
Indirect Transmission functions
• void init_indirect_trans_buffer() - Function used to initialize the indirect transmission
buffer. This function is only used by the PAN coordinator;
• void send_ind_trans_addr(uint32_t DeviceAddress[]) - Function used to search and
send an existing indirect transmission message. This function is only used by the PAN
coordinator;
• result_t remove_indirect_trans(uint8_t handler) - Function used to remove an existing
indirect transmission message. This function is only used by the PAN coordinator;
• void increment_indirect_trans() - Function used to increment the transaction
persistent time on each message. If the transaction time expires the messages are
discarded. This function is only used by the PAN coordinator;
• void list_indirect_trans_buffer() – Function used to list all the handles in the indirect
transmission buffer. Debug purposes only;
© IPP Hurray! Research Group
www.hurray.isep.ipp.pt
38