Contiki-NG
Data Structures | Macros
tsch-asn.h File Reference

TSCH 5-Byte Absolute Slot Number (ASN) management. More...

Go to the source code of this file.

Data Structures

struct  tsch_asn_t
 The ASN is an absolute slot number over 5 bytes. More...
 
struct  tsch_asn_divisor_t
 For quick modulo operation on ASN. More...
 

Macros

#define TSCH_ASN_INIT(asn, ms1b_, ls4b_)
 Initialize ASN.
 
#define TSCH_ASN_INC(asn, inc)
 Increment an ASN by inc (32 bits)
 
#define TSCH_ASN_DEC(asn, dec)
 Decrement an ASN by inc (32 bits)
 
#define TSCH_ASN_DIFF(asn1, asn2)   ((asn1).ls4b - (asn2).ls4b)
 Returns the 32-bit diff between asn1 and asn2.
 
#define TSCH_ASN_DIVISOR_INIT(div, val_)
 Initialize a struct asn_divisor_t.
 
#define TSCH_ASN_MOD(asn, div)
 Returns the result (16 bits) of a modulo operation on ASN, with divisor being a struct asn_divisor_t.
 

Detailed Description

TSCH 5-Byte Absolute Slot Number (ASN) management.

Author
Simon Duquennoy simon.nosp@m.duq@.nosp@m.sics..nosp@m.se

Definition in file tsch-asn.h.