1 /*
2  * Copyright (c) 2021 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef BT_MESH_SAR_CFG_H__
8 #define BT_MESH_SAR_CFG_H__
9 
10 #include <stdint.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /**
17  * @defgroup bt_mesh_sar_cfg SAR Configuration common header
18  * @ingroup bt_mesh
19  * @{
20  */
21 
22 /** SAR Transmitter Configuration state structure */
23 struct bt_mesh_sar_tx {
24 	/** SAR Segment Interval Step state */
25 	uint8_t seg_int_step;
26 
27 	/** SAR Unicast Retransmissions Count state */
28 	uint8_t unicast_retrans_count;
29 
30 	/** SAR Unicast Retransmissions Without Progress Count state */
31 	uint8_t unicast_retrans_without_prog_count;
32 
33 	/* SAR Unicast Retransmissions Interval Step state */
34 	uint8_t unicast_retrans_int_step;
35 
36 	/** SAR Unicast Retransmissions Interval Increment state */
37 	uint8_t unicast_retrans_int_inc;
38 
39 	/** SAR Multicast Retransmissions Count state */
40 	uint8_t multicast_retrans_count;
41 
42 	/** SAR Multicast Retransmissions Interval state */
43 	uint8_t multicast_retrans_int;
44 };
45 
46 /** SAR Receiver Configuration state structure */
47 struct bt_mesh_sar_rx {
48 	/** SAR Segments Threshold state */
49 	uint8_t seg_thresh;
50 
51 	/** SAR Acknowledgment Delay Increment state */
52 	uint8_t ack_delay_inc;
53 
54 	/** SAR Discard Timeout state */
55 	uint8_t discard_timeout;
56 
57 	/** SAR Receiver Segment Interval Step state */
58 	uint8_t rx_seg_int_step;
59 
60 	/** SAR Acknowledgment Retransmissions Count state */
61 	uint8_t ack_retrans_count;
62 };
63 
64 /** @} */
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* BT_MESH_SAR_CFG_H__ */
71