TSCH 5-Byte Absolute Slot Number (ASN) management.
More...
Go to the source code of this file.
|
#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.
|
|
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.