40 #ifndef __TSCH_SLOT_OPERATION_H__ 41 #define __TSCH_SLOT_OPERATION_H__ 52 extern struct ringbufindex dequeued_ringbuf;
53 extern struct tsch_packet *dequeued_array[TSCH_DEQUEUED_ARRAY_SIZE];
56 extern struct ringbufindex input_ringbuf;
57 extern struct input_packet input_array[TSCH_MAX_INCOMING_PACKETS];
59 extern clock_time_t last_sync_time;
61 extern int tsch_current_burst_count;
Header file for the ringbufindex library
int tsch_get_lock(void)
Takes the TSCH lock.
void tsch_release_lock(void)
Releases the TSCH lock.
uint8_t tsch_calculate_channel(struct tsch_asn_t *asn, uint8_t channel_offset)
Returns a 802.15.4 channel from an ASN and channel offset.
int tsch_is_locked(void)
Checks if the TSCH lock is set.
void tsch_slot_operation_sync(rtimer_clock_t next_slot_start, struct tsch_asn_t *next_slot_asn)
Set global time before starting slot operation, with a rtimer time and an ASN.
void tsch_slot_operation_start(void)
Start actual slot operation.
The ASN is an absolute slot number over 5 bytes.