42 #ifndef __TSCH_CONST_H__ 43 #define __TSCH_CONST_H__ 53 #define LINK_OPTION_TX 1 54 #define LINK_OPTION_RX 2 55 #define LINK_OPTION_SHARED 4 56 #define LINK_OPTION_TIME_KEEPING 8 60 #define TSCH_HOPPING_SEQUENCE_16_16 (uint8_t[]){ 16, 17, 23, 18, 26, 15, 25, 22, 19, 11, 12, 13, 24, 14, 20, 21 } 62 #define TSCH_HOPPING_SEQUENCE_4_16 (uint8_t[]){ 20, 26, 25, 26, 15, 15, 25, 20, 26, 15, 26, 25, 20, 15, 20, 25 } 64 #define TSCH_HOPPING_SEQUENCE_4_4 (uint8_t[]){ 15, 25, 26, 20 } 66 #define TSCH_HOPPING_SEQUENCE_2_2 (uint8_t[]){ 20, 25 } 68 #define TSCH_HOPPING_SEQUENCE_1_1 (uint8_t[]){ 20 } 71 #define TSCH_PACKET_MAX_LEN PACKETBUF_SIZE 76 #define TSCH_TIMESYNC_MEASUREMENT_ERROR US_TO_RTIMERTICKS(32) 79 #define TSCH_SLOTS_PER_SECOND (1000000 / tsch_timing_us[tsch_ts_timeslot_length]) 82 #define TSCH_PACKET_DURATION(len) US_TO_RTIMERTICKS(RADIO_BYTE_AIR_TIME * ((len) + RADIO_PHY_OVERHEAD)) 85 #define TSCH_CLOCK_TO_TICKS(c) (((c) * RTIMER_SECOND) / CLOCK_SECOND) 86 #define TSCH_CLOCK_TO_SLOTS(c, timeslot_length) ((TSCH_CLOCK_TO_TICKS(c) + timeslot_length - 1) / timeslot_length)
Header file for the Packet buffer (packetbuf) management
Include file for the Contiki low-layer network stack (NETSTACK)