Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
cc13xx-50kbps-tsch.c
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018, University of Bristol - http://www.bristol.ac.uk/
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
* 1. Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* 3. Neither the name of the Institute nor the names of its contributors
14
* may be used to endorse or promote products derived from this software
15
* without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
* SUCH DAMAGE.
28
*
29
* This file is part of the Contiki operating system.
30
*
31
*/
32
33
/**
34
* \file
35
* IEEE 802.15.4 TSCH timeslot timings for CC13xx chips at 50kbps datarate
36
* \author
37
* Atis Elsts <atis.elsts@bristol.ac.uk>
38
*
39
*/
40
41
#include "contiki.h"
42
#include "
net/mac/tsch/tsch.h
"
43
44
#define CC13XX_TSCH_DEFAULT_TS_CCA_OFFSET 1800
45
#define CC13XX_TSCH_DEFAULT_TS_CCA 128
46
#define CC13XX_TSCH_DEFAULT_TS_TX_OFFSET 3800
47
#define CC13XX_TSCH_DEFAULT_TS_RX_OFFSET (CC13XX_TSCH_DEFAULT_TS_TX_OFFSET - (TSCH_CONF_RX_WAIT / 2))
48
#define CC13XX_TSCH_DEFAULT_TS_RX_ACK_DELAY 2000
49
#define CC13XX_TSCH_DEFAULT_TS_TX_ACK_DELAY 3000
50
#define CC13XX_TSCH_DEFAULT_TS_RX_WAIT TSCH_CONF_RX_WAIT
51
#define CC13XX_TSCH_DEFAULT_TS_ACK_WAIT 3000
52
#define CC13XX_TSCH_DEFAULT_TS_RX_TX 192
53
#define CC13XX_TSCH_DEFAULT_TS_MAX_ACK 10000
54
#define CC13XX_TSCH_DEFAULT_TS_MAX_TX 21600
55
56
/* Timeslot length: 40000 usec */
57
#define CC13XX_TSCH_DEFAULT_TS_TIMESLOT_LENGTH 40000
58
59
/* TSCH timeslot timing (microseconds) */
60
const
tsch_timeslot_timing_usec
tsch_timing_cc13xx_50kbps = {
61
CC13XX_TSCH_DEFAULT_TS_CCA_OFFSET,
62
CC13XX_TSCH_DEFAULT_TS_CCA,
63
CC13XX_TSCH_DEFAULT_TS_TX_OFFSET,
64
CC13XX_TSCH_DEFAULT_TS_RX_OFFSET,
65
CC13XX_TSCH_DEFAULT_TS_RX_ACK_DELAY,
66
CC13XX_TSCH_DEFAULT_TS_TX_ACK_DELAY,
67
CC13XX_TSCH_DEFAULT_TS_RX_WAIT,
68
CC13XX_TSCH_DEFAULT_TS_ACK_WAIT,
69
CC13XX_TSCH_DEFAULT_TS_RX_TX,
70
CC13XX_TSCH_DEFAULT_TS_MAX_ACK,
71
CC13XX_TSCH_DEFAULT_TS_MAX_TX,
72
CC13XX_TSCH_DEFAULT_TS_TIMESLOT_LENGTH,
73
};
tsch_timeslot_timing_usec
uint16_t tsch_timeslot_timing_usec[tsch_ts_elements_count]
TSCH timeslot timing elements in micro-seconds.
Definition
tsch-types.h:145
tsch.h
Main API declarations for TSCH.
arch
cpu
simplelink-cc13xx-cc26xx
rf
cc13xx-50kbps-tsch.c
Generated on
for Contiki-NG by
1.17.0