1# TI CC13xx / CC26xx IEEE 802.15.4 configuration options
2
3# Copyright (c) 2019 Brett Witherspoon
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig IEEE802154_CC13XX_CC26XX
7	bool "TI CC13xx / CC26xx IEEE 802.15.4 driver support"
8	select CRC
9	default y
10	depends on DT_HAS_TI_CC13XX_CC26XX_IEEE802154_ENABLED
11
12if IEEE802154_CC13XX_CC26XX
13
14config IEEE802154_CC13XX_CC26XX_INIT_PRIO
15	int "TI CC13xx / CC26xx IEEE 802.15.4 initialization priority"
16	default 80
17	help
18	  Set the initialization priority number.
19
20config IEEE802154_CC13XX_CC26XX_RADIO_TX_RETRIES
21	int "Radio Transmission attempts"
22	default NET_L2_IEEE802154_RADIO_TX_RETRIES if NET_L2_IEEE802154
23	default 3
24	range 1 7
25	help
26	  Number of transmission attempts radio driver should do, before
27	  replying it could not send the packet.
28
29config IEEE802154_CC13XX_CC26XX_RADIO_CSMA_CA_MAX_BO
30	int "CSMA maximum backoffs"
31	default NET_L2_IEEE802154_RADIO_CSMA_CA_MAX_BO if NET_L2_IEEE802154_RADIO_CSMA_CA
32	default 4
33	range 1 5
34	help
35	  The maximum number of backoffs the CSMA-CA algorithm will attempt
36	  before declaring a channel access failure.
37
38config IEEE802154_CC13XX_CC26XX_RADIO_CSMA_CA_MIN_BE
39	int "CSMA MAC minimum backoff exponent"
40	default NET_L2_IEEE802154_RADIO_CSMA_CA_MIN_BE if NET_L2_IEEE802154_RADIO_CSMA_CA
41	default 3
42	range 1 8
43	help
44	  The minimum value of the backoff exponent (BE) in the CSMA-CA
45	  algorithm.
46
47config IEEE802154_CC13XX_CC26XX_RADIO_CSMA_CA_MAX_BE
48	int "CSMA MAC maximum backoff exponent"
49	default NET_L2_IEEE802154_RADIO_CSMA_CA_MAX_BE if NET_L2_IEEE802154_RADIO_CSMA_CA
50	default 5
51	range 1 8
52	help
53	  The maximum value of the backoff exponent (BE) in the CSMA-CA
54	  algorithm.
55
56endif # IEEE802154_CC13XX_CC26XX
57
58menuconfig IEEE802154_CC13XX_CC26XX_SUB_GHZ
59	bool "TI CC13xx / CC26xx IEEE 802.15.4g driver support"
60	default y
61	depends on DT_HAS_TI_CC13XX_CC26XX_IEEE802154_SUBGHZ_ENABLED
62
63if IEEE802154_CC13XX_CC26XX_SUB_GHZ
64
65config IEEE802154_CC13XX_CC26XX_SUB_GHZ_NUM_RX_BUF
66	int "TI CC13xx / CC26xx IEEE 802.15.4g receive buffer count"
67	default 2
68	help
69	  This option allows the user to configure the number of
70	  receive buffers.
71
72config IEEE802154_CC13XX_CC26XX_SUB_GHZ_CS_THRESHOLD
73	int "TI CC13xx / CC26xx IEEE 802.15.4g Carrier Sense ED Threshold in dBm"
74	default -80 # Based on SUN FSK, 200 kHz bit rate, no FEC, see IEEE 802.15.4-2020, section 19.6.7
75	help
76	  This option sets the energy detection (ED) threshold for
77	  clear channel assessment (CCA) modes 1 or 3 in the CSMA/CA
78	  algorithm. Except for the SUN O-QPSK PHY, the ED threshold
79	  shall correspond to a received signal power of at most 10 dB
80	  greater than the specified receiver sensitivity for that PHY,
81	  or in accordance with local regulations (see IEEE 802.15.4-2020,
82	  section 10.2.8). For the SUN O-QPSK PHY, the ED threshold shall
83	  comply with IEEE 802.15.4-2020, section 21.5.13.
84
85config IEEE802154_CC13XX_CC26XX_SUB_GHZ_INIT_PRIO
86	int "TI CC13xx / CC26xx IEEE 802.15.4g initialization priority"
87	default 80
88	help
89	  Set the initialization priority number.
90
91config IEEE802154_CC13XX_CC26XX_SUB_GHZ_RADIO_TX_RETRIES
92	bool
93	select DEPRECATED
94	help
95	  DEPRECATED - use NET_L2_IEEE802154_RADIO_TX_RETRIES instead
96
97config IEEE802154_CC13XX_CC26XX_SUB_GHZ_CUSTOM_RADIO_SETUP
98	bool "Use custom radio setup structures (advanced)"
99	default n
100	help
101	  Imports the radio setup structure from an external module instead of using
102	  the default one.
103	  Allows overriding the RF modulation / protocol settings.
104
105config IEEE802154_CC13XX_CC26XX_SUB_GHZ_CUSTOM_POWER_TABLE
106	bool "Use custom power table structure (advanced)"
107	default n
108	help
109	  Imports the radio power table from an external module.
110	  Allows overriding the RF modulation settings.
111
112endif # IEEE802154_CC13XX_CC26XX_SUB_GHZ
113