1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
/* automatically generated by rust-bindgen 0.56.0 */

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::core::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::core::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const NRF_MODEM_MAX_SOCKET_COUNT: u32 = 8;
pub const NRF_MODEM_AT_MAX_CMD_SIZE: u32 = 4096;
pub const NRF_MODEM_IP_MAX_MESSAGE_SIZE: u32 = 4096;
pub const NRF_MODEM_TLS_MAX_MESSAGE_SIZE: u32 = 2048;
pub const NRF_MODEM_MAX_PDN_COUNT: u32 = 10;
pub const NRF_MODEM_FULL_DFU_DIGEST_LEN: u32 = 32;
pub const NRF_MODEM_FULL_DFU_UUID_LEN: u32 = 36;
pub const NRF_MODEM_FULL_DFU_SHM_LEN: u32 = 8220;
pub const NRF_MODEM_OS_NO_WAIT: u32 = 0;
pub const NRF_MODEM_OS_FOREVER: i32 = -1;
pub const NRF_MODEM_SHMEM_CTRL_SIZE: u32 = 1256;
pub const NRF_MODEM_NETWORK_IRQ_PRIORITY: u32 = 0;
pub const NRF_MODEM_APPLICATION_IRQ_PRIORITY: u32 = 6;
pub const NRF_EPERM: u32 = 1;
pub const NRF_ENOENT: u32 = 2;
pub const NRF_EIO: u32 = 5;
pub const NRF_ENOEXEC: u32 = 8;
pub const NRF_EBADF: u32 = 9;
pub const NRF_ENOMEM: u32 = 12;
pub const NRF_EACCES: u32 = 13;
pub const NRF_EFAULT: u32 = 14;
pub const NRF_EINVAL: u32 = 22;
pub const NRF_EMFILE: u32 = 24;
pub const NRF_ENOSPC: u32 = 28;
pub const NRF_EAGAIN: u32 = 35;
pub const NRF_EDOM: u32 = 37;
pub const NRF_EMSGSIZE: u32 = 40;
pub const NRF_EPROTOTYPE: u32 = 41;
pub const NRF_ENOPROTOOPT: u32 = 42;
pub const NRF_EPROTONOSUPPORT: u32 = 43;
pub const NRF_ESOCKTNOSUPPORT: u32 = 44;
pub const NRF_EOPNOTSUPP: u32 = 45;
pub const NRF_EAFNOSUPPORT: u32 = 47;
pub const NRF_EADDRINUSE: u32 = 48;
pub const NRF_ENETDOWN: u32 = 50;
pub const NRF_ENETUNREACH: u32 = 51;
pub const NRF_ENETRESET: u32 = 52;
pub const NRF_ECONNABORTED: u32 = 53;
pub const NRF_ECONNRESET: u32 = 54;
pub const NRF_EISCONN: u32 = 56;
pub const NRF_ENOTCONN: u32 = 57;
pub const NRF_ETIMEDOUT: u32 = 60;
pub const NRF_ENOBUFS: u32 = 105;
pub const NRF_EHOSTDOWN: u32 = 112;
pub const NRF_EALREADY: u32 = 114;
pub const NRF_EINPROGRESS: u32 = 115;
pub const NRF_ECANCELED: u32 = 125;
pub const NRF_ENOKEY: u32 = 126;
pub const NRF_EKEYEXPIRED: u32 = 127;
pub const NRF_EKEYREVOKED: u32 = 128;
pub const NRF_EKEYREJECTED: u32 = 129;
pub const NRF_INET_ADDRSTRLEN: u32 = 16;
pub const NRF_INET6_ADDRSTRLEN: u32 = 46;
pub const NRF_PDN_MAX_USERNAME_LEN: u32 = 100;
pub const NRF_PDN_MAX_PASSWORD_LEN: u32 = 100;
pub const NRF_AF_LOCAL: u32 = 1;
pub const NRF_AF_INET: u32 = 2;
pub const NRF_AF_PACKET: u32 = 5;
pub const NRF_AF_INET6: u32 = 10;
pub const NRF_AF_LTE: u32 = 102;
pub const NRF_SOCK_STREAM: u32 = 1;
pub const NRF_SOCK_DGRAM: u32 = 2;
pub const NRF_SOCK_RAW: u32 = 3;
pub const NRF_SOCK_MGMT: u32 = 512;
pub const NRF_IPPROTO_TCP: u32 = 1;
pub const NRF_IPPROTO_UDP: u32 = 2;
pub const NRF_SPROTO_TLS1v2: u32 = 260;
pub const NRF_SPROTO_TLS1v3: u32 = 261;
pub const NRF_SPROTO_DTLS1v2: u32 = 270;
pub const NRF_PROTO_AT: u32 = 513;
pub const NRF_PROTO_PDN: u32 = 514;
pub const NRF_PROTO_DFU: u32 = 515;
pub const NRF_PROTO_GNSS: u32 = 516;
pub const NRF_SO_SEC_ROLE: u32 = 1;
pub const NRF_SO_SEC_TAG_LIST: u32 = 2;
pub const NRF_SO_SEC_SESSION_CACHE: u32 = 3;
pub const NRF_SO_SEC_PEER_VERIFY: u32 = 4;
pub const NRF_SO_HOSTNAME: u32 = 5;
pub const NRF_SO_CIPHERSUITE_LIST: u32 = 6;
pub const NRF_SO_CIPHER_IN_USE: u32 = 7;
pub const NRF_SO_PDN_AF: u32 = 1;
pub const NRF_SO_PDN_CONTEXT_ID: u32 = 2;
pub const NRF_SO_PDN_STATE: u32 = 3;
pub const NRF_SO_PDN_AUTH: u32 = 4;
pub const NRF_SO_DFU_FW_VERSION: u32 = 1;
pub const NRF_SO_DFU_RESOURCES: u32 = 2;
pub const NRF_SO_DFU_TIMEO: u32 = 3;
pub const NRF_SO_DFU_APPLY: u32 = 4;
pub const NRF_SO_DFU_REVERT: u32 = 5;
pub const NRF_SO_DFU_BACKUP_DELETE: u32 = 6;
pub const NRF_SO_DFU_OFFSET: u32 = 7;
pub const NRF_SO_DFU_ERROR: u32 = 20;
pub const NRF_SO_GNSS_FIX_INTERVAL: u32 = 1;
pub const NRF_SO_GNSS_FIX_RETRY: u32 = 2;
pub const NRF_SO_GNSS_SYSTEM: u32 = 3;
pub const NRF_SO_GNSS_NMEA_MASK: u32 = 4;
pub const NRF_SO_GNSS_ELEVATION_MASK: u32 = 5;
pub const NRF_SO_GNSS_USE_CASE: u32 = 6;
pub const NRF_SO_GNSS_START: u32 = 7;
pub const NRF_SO_GNSS_STOP: u32 = 8;
pub const NRF_SO_GNSS_POWER_SAVE_MODE: u32 = 9;
pub const NRF_SO_GNSS_ENABLE_PRIORITY: u32 = 10;
pub const NRF_SO_GNSS_DISABLE_PRIORITY: u32 = 11;
pub const NRF_GNSS_NMEA_GGA_MASK: u32 = 1;
pub const NRF_GNSS_NMEA_GLL_MASK: u32 = 2;
pub const NRF_GNSS_NMEA_GSA_MASK: u32 = 4;
pub const NRF_GNSS_NMEA_GSV_MASK: u32 = 8;
pub const NRF_GNSS_NMEA_RMC_MASK: u32 = 16;
pub const NRF_GNSS_PSM_DISABLED: u32 = 0;
pub const NRF_GNSS_PSM_DUTY_CYCLING_PERFORMANCE: u32 = 1;
pub const NRF_GNSS_PSM_DUTY_CYCLING_POWER: u32 = 2;
pub const NRF_GNSS_USE_CASE_SINGLE_COLD_START: u32 = 0;
pub const NRF_GNSS_USE_CASE_MULTIPLE_HOT_START: u32 = 1;
pub const NRF_GNSS_USE_CASE_NORMAL_ACCURACY: u32 = 0;
pub const NRF_GNSS_USE_CASE_LOW_ACCURACY: u32 = 2;
pub const NRF_GNSS_PVT_FLAG_FIX_VALID_BIT: u32 = 1;
pub const NRF_GNSS_PVT_FLAG_LEAP_SECOND_VALID: u32 = 2;
pub const NRF_GNSS_PVT_FLAG_SLEEP_BETWEEN_PVT: u32 = 4;
pub const NRF_GNSS_PVT_FLAG_DEADLINE_MISSED: u32 = 8;
pub const NRF_GNSS_PVT_FLAG_NOT_ENOUGH_WINDOW_TIME: u32 = 16;
pub const NRF_GNSS_SV_FLAG_USED_IN_FIX: u32 = 2;
pub const NRF_GNSS_SV_FLAG_UNHEALTHY: u32 = 8;
pub const NRF_GNSS_AGPS_UTC_PARAMETERS: u32 = 1;
pub const NRF_GNSS_AGPS_EPHEMERIDES: u32 = 2;
pub const NRF_GNSS_AGPS_ALMANAC: u32 = 3;
pub const NRF_GNSS_AGPS_KLOBUCHAR_IONOSPHERIC_CORRECTION: u32 = 4;
pub const NRF_GNSS_AGPS_NEQUICK_IONOSPHERIC_CORRECTION: u32 = 5;
pub const NRF_GNSS_AGPS_GPS_SYSTEM_CLOCK_AND_TOWS: u32 = 6;
pub const NRF_GNSS_AGPS_LOCATION: u32 = 7;
pub const NRF_GNSS_AGPS_INTEGRITY: u32 = 8;
pub const NRF_SO_ERROR: u32 = 4;
pub const NRF_SO_RCVTIMEO: u32 = 20;
pub const NRF_SO_SNDTIMEO: u32 = 21;
pub const NRF_SO_BINDTODEVICE: u32 = 25;
pub const NRF_SO_SILENCE_ALL: u32 = 30;
pub const NRF_SO_SILENCE_IP_ECHO_REPLY: u32 = 31;
pub const NRF_SO_SILENCE_IPV6_ECHO_REPLY: u32 = 32;
pub const NRF_SO_REUSEADDR: u32 = 40;
pub const NRF_SOL_SOCKET: u32 = 1;
pub const NRF_SOL_SECURE: u32 = 282;
pub const NRF_SOL_PDN: u32 = 514;
pub const NRF_SOL_DFU: u32 = 515;
pub const NRF_SOL_GNSS: u32 = 516;
pub const NRF_MSG_DONTROUTE: u32 = 1;
pub const NRF_MSG_DONTWAIT: u32 = 2;
pub const NRF_MSG_OOB: u32 = 4;
pub const NRF_MSG_PEEK: u32 = 8;
pub const NRF_MSG_WAITALL: u32 = 16;
pub const NRF_MSG_TRUNC: u32 = 32;
pub const NRF_F_SETFL: u32 = 1;
pub const NRF_F_GETFL: u32 = 2;
pub const NRF_O_NONBLOCK: u32 = 1;
pub const NRF_IFNAMSIZ: u32 = 64;
pub const NRF_GNSS_MAX_SATELLITES: u32 = 12;
pub const NRF_GNSS_NMEA_MAX_LEN: u32 = 83;
pub const NRF_GNSS_AGPS_GPS_UTC_REQUEST: u32 = 0;
pub const NRF_GNSS_AGPS_KLOBUCHAR_REQUEST: u32 = 1;
pub const NRF_GNSS_AGPS_NEQUICK_REQUEST: u32 = 2;
pub const NRF_GNSS_AGPS_SYS_TIME_AND_SV_TOW_REQUEST: u32 = 3;
pub const NRF_GNSS_AGPS_POSITION_REQUEST: u32 = 4;
pub const NRF_GNSS_AGPS_INTEGRITY_REQUEST: u32 = 5;
pub const NRF_GNSS_PVT_DATA_ID: u32 = 1;
pub const NRF_GNSS_NMEA_DATA_ID: u32 = 2;
pub const NRF_GNSS_AGPS_DATA_ID: u32 = 3;
pub const NRF_GNSS_AGPS_MAX_SV_TOW: u32 = 32;
pub const NRF_POLLIN: u32 = 1;
pub const NRF_POLLOUT: u32 = 2;
pub const NRF_POLLERR: u32 = 4;
pub const NRF_POLLHUP: u32 = 8;
pub const NRF_POLLNVAL: u32 = 16;
pub const NRF_CC3XX_PLATFORM_ENTROPY_MAX_GATHER: u32 = 144;
pub const NRF_CC3XX_PLATFORM_USE_COUNT_MAX: u32 = 10;
pub const NRF_CC3XX_PLATFORM_SUCCESS: u32 = 0;
pub const NRF_CC3XX_PLATFORM_ERROR_PARAM_NULL: i32 = -28673;
pub const NRF_CC3XX_PLATFORM_ERROR_INTERNAL: i32 = -28674;
pub const NRF_CC3XX_PLATFORM_ERROR_RNG_TEST_FAILED: i32 = -28675;
pub const NRF_CC3XX_PLATFORM_ERROR_HW_VERSION_FAILED: i32 = -28676;
pub const NRF_CC3XX_PLATFORM_ERROR_PARAM_WRITE_FAILED: i32 = -28677;
pub const NRF_CC3XX_PLATFORM_ERROR_MUTEX_NOT_INITIALIZED: i32 = -28694;
pub const NRF_CC3XX_PLATFORM_ERROR_MUTEX_FAILED: i32 = -28695;
pub const NRF_CC3XX_PLATFORM_ERROR_ENTROPY_NOT_INITIALIZED: i32 = -28696;
pub const NRF_CC3XX_PLATFORM_ERROR_ENTROPY_TRNG_TOO_LONG: i32 = -28697;
pub const NRF_CC3XX_PLATFORM_ERROR_KMU_INVALID_SLOT: i32 = -28698;
pub const NRF_CC3XX_PLATFORM_ERROR_KMU_ALREADY_FILLED: i32 = -28699;
pub const NRF_CC3XX_PLATFORM_ERROR_KMU_WRONG_ADDRESS: i32 = -28700;
pub const NRF_CC3XX_PLATFORM_ERROR_KMU_WRITE_KEY_FAILED: i32 = -28701;
pub const NRF_CC3XX_PLATFORM_ERROR_KMU_WRITE_INVALID_PERM: i32 = -28702;
pub const NRF_CC3XX_PLATFORM_ERROR_KDR_INVALID_WRITE: i32 = -28703;
pub const NRF_CC3XX_PLATFORM_ERROR_KDR_INVALID_PUSH: i32 = -28704;
pub const NRF_CC3XX_PLATFORM_MUTEX_MASK_INVALID: u32 = 0;
pub const NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_VALID: u32 = 1;
pub const NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ALLOCATED: u32 = 2;
pub const NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ATOMIC: u32 = 4;
pub const NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_HW_MUTEX: u32 = 8;
pub const NRF_CC310_PLATFORM_ENTROPY_MAX_GATHER: u32 = 144;
pub const NRF_CC310_PLATFORM_USE_COUNT_MAX: u32 = 10;
pub const NRF_CC310_PLATFORM_SUCCESS: u32 = 0;
pub const NRF_CC310_PLATFORM_ERROR_PARAM_NULL: i32 = -28673;
pub const NRF_CC310_PLATFORM_ERROR_INTERNAL: i32 = -28674;
pub const NRF_CC310_PLATFORM_ERROR_RNG_TEST_FAILED: i32 = -28675;
pub const NRF_CC310_PLATFORM_ERROR_HW_VERSION_FAILED: i32 = -28676;
pub const NRF_CC310_PLATFORM_ERROR_PARAM_WRITE_FAILED: i32 = -28677;
pub const NRF_CC310_PLATFORM_ERROR_MUTEX_NOT_INITIALIZED: i32 = -28694;
pub const NRF_CC310_PLATFORM_ERROR_MUTEX_FAILED: i32 = -28695;
pub const NRF_CC310_PLATFORM_ERROR_ENTROPY_NOT_INITIALIZED: i32 = -28696;
pub const NRF_CC310_PLATFORM_ERROR_ENTROPY_TRNG_TOO_LONG: i32 = -28697;
pub const NRF_CC310_PLATFORM_MUTEX_MASK_INVALID: u32 = 0;
pub const NRF_CC310_PLATFORM_MUTEX_MASK_IS_VALID: u32 = 1;
pub const NRF_CC310_PLATFORM_MUTEX_MASK_IS_ALLOCATED: u32 = 2;
#[doc = "  Shared memory configuration."]
#[doc = ""]
#[doc = "  @note: Only the lower 128k of RAM may be shared with the modem core."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_shmem_cfg {
    pub ctrl: nrf_modem_shmem_cfg__bindgen_ty_1,
    pub tx: nrf_modem_shmem_cfg__bindgen_ty_2,
    pub rx: nrf_modem_shmem_cfg__bindgen_ty_3,
    pub trace: nrf_modem_shmem_cfg__bindgen_ty_4,
}
#[doc = " Control memory, used for control structures."]
#[doc = "  The size of this area is build constant, and must be equal to"]
#[doc = "   * `NRF_MODEM_SHMEM_CTRL_SIZE` -  in @file nrf_modem_platform.h"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_shmem_cfg__bindgen_ty_1 {
    pub base: u32,
    pub size: u32,
}
#[test]
fn bindgen_test_layout_nrf_modem_shmem_cfg__bindgen_ty_1() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_shmem_cfg__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_modem_shmem_cfg__bindgen_ty_1))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_shmem_cfg__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_1>())).base as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_1),
            "::",
            stringify!(base)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_1>())).size as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_1),
            "::",
            stringify!(size)
        )
    );
}
#[doc = " TX memory, used to send data to the modem"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_shmem_cfg__bindgen_ty_2 {
    pub base: u32,
    pub size: u32,
}
#[test]
fn bindgen_test_layout_nrf_modem_shmem_cfg__bindgen_ty_2() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_shmem_cfg__bindgen_ty_2>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_modem_shmem_cfg__bindgen_ty_2))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_shmem_cfg__bindgen_ty_2>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_2>())).base as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_2),
            "::",
            stringify!(base)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_2>())).size as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_2),
            "::",
            stringify!(size)
        )
    );
}
#[doc = " RX memory, used to receive data from the modem"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_shmem_cfg__bindgen_ty_3 {
    pub base: u32,
    pub size: u32,
}
#[test]
fn bindgen_test_layout_nrf_modem_shmem_cfg__bindgen_ty_3() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_shmem_cfg__bindgen_ty_3>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_modem_shmem_cfg__bindgen_ty_3))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_shmem_cfg__bindgen_ty_3>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_3)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_3>())).base as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_3),
            "::",
            stringify!(base)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_3>())).size as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_3),
            "::",
            stringify!(size)
        )
    );
}
#[doc = " Trace memory, used to receive traces from the modem"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_shmem_cfg__bindgen_ty_4 {
    pub base: u32,
    pub size: u32,
}
#[test]
fn bindgen_test_layout_nrf_modem_shmem_cfg__bindgen_ty_4() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_shmem_cfg__bindgen_ty_4>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_modem_shmem_cfg__bindgen_ty_4))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_shmem_cfg__bindgen_ty_4>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_4)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_4>())).base as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_4),
            "::",
            stringify!(base)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_shmem_cfg__bindgen_ty_4>())).size as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg__bindgen_ty_4),
            "::",
            stringify!(size)
        )
    );
}
#[test]
fn bindgen_test_layout_nrf_modem_shmem_cfg() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_shmem_cfg>(),
        32usize,
        concat!("Size of: ", stringify!(nrf_modem_shmem_cfg))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_shmem_cfg>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_modem_shmem_cfg))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_shmem_cfg>())).ctrl as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg),
            "::",
            stringify!(ctrl)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_shmem_cfg>())).tx as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg),
            "::",
            stringify!(tx)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_shmem_cfg>())).rx as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg),
            "::",
            stringify!(rx)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_shmem_cfg>())).trace as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_shmem_cfg),
            "::",
            stringify!(trace)
        )
    );
}
#[doc = "  Modem library initialization parameters."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_init_params_t {
    #[doc = " Shared memory configuration"]
    pub shmem: nrf_modem_shmem_cfg,
    #[doc = " IPC IRQ priority"]
    pub ipc_irq_prio: u32,
}
#[test]
fn bindgen_test_layout_nrf_modem_init_params_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_init_params_t>(),
        36usize,
        concat!("Size of: ", stringify!(nrf_modem_init_params_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_init_params_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_modem_init_params_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_init_params_t>())).shmem as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_init_params_t),
            "::",
            stringify!(shmem)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_modem_init_params_t>())).ipc_irq_prio as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_init_params_t),
            "::",
            stringify!(ipc_irq_prio)
        )
    );
}
#[doc = " Normal operation mode"]
pub const nrf_modem_mode_t_NORMAL_MODE: nrf_modem_mode_t = 0;
#[doc = " DFU mode"]
pub const nrf_modem_mode_t_FULL_DFU_MODE: nrf_modem_mode_t = 1;
#[doc = " Modem library mode"]
pub type nrf_modem_mode_t = ctypes::c_uint;
extern "C" {
    #[doc = "  Return version string of the Modem library build."]
    #[doc = ""]
    #[doc = " Returns Version string if defined."]
    #[doc = " Returns Empty string if version string is not defined."]
    pub fn nrf_modem_build_version() -> *mut ctypes::c_char;
}
extern "C" {
    #[doc = "  Initialize the Modem library."]
    #[doc = ""]
    #[doc = " Once initialized, the library uses the resources defined in nrf_modem_platform.h."]
    #[doc = ""]
    #[doc = " Library has two operation modes, normal and DFU."]
    #[doc = " In normal operation mode, the DFU functionality is disabled."]
    #[doc = ""]
    #[doc = " Library can alternatively be initialized in DFU mode, which means that"]
    #[doc = " all shared memory regions are now reserved for DFU operation,"]
    #[doc = " and therefore no other modem functionality can be used."]
    #[doc = ""]
    #[doc = " To switch between DFU and normal modes, nrf_modem_shutdown() should be"]
    #[doc = " called in between."]
    #[doc = ""]
    #[doc = " * `init_params` - Initialization parameters."]
    #[doc = "                        Cannot be NULL."]
    #[doc = " * `mode` - Library mode."]
    #[doc = ""]
    #[doc = " Returns Zero on success."]
    #[doc = " Returns A positive value from @ref nrf_modem_dfu when executing"]
    #[doc = "         Modem firmware updates."]
    #[doc = ""]
    #[doc = " Returns -1 on error."]
    pub fn nrf_modem_init(
        init_params: *const nrf_modem_init_params_t,
        mode: nrf_modem_mode_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Shutdown the Modem library."]
    #[doc = ""]
    #[doc = " @note"]
    #[doc = " The modem must be put into offline (CFUN=0) mode before shutting it down."]
    #[doc = ""]
    #[doc = " Resources reserved by the library in nrf_modem_platform.h are freed when"]
    #[doc = " the library is shutdown."]
    #[doc = ""]
    #[doc = " Returns Zero on success."]
    #[doc = " Returns -1 on error."]
    pub fn nrf_modem_shutdown() -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Handler for library errors."]
    #[doc = ""]
    #[doc = " * `error` - The error reason."]
    pub fn nrf_modem_recoverable_error_handler(error: u32);
}
pub type size_t = u32;
pub type ssize_t = i32;
#[doc = " Storage for 256-bit digest/hash replies."]
#[doc = " Endianness not converted."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_modem_full_dfu_digest {
    pub data: [u8; 32usize],
}
#[test]
fn bindgen_test_layout_nrf_modem_full_dfu_digest() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_full_dfu_digest>(),
        32usize,
        concat!("Size of: ", stringify!(nrf_modem_full_dfu_digest))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_full_dfu_digest>(),
        1usize,
        concat!("Alignment of ", stringify!(nrf_modem_full_dfu_digest))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_full_dfu_digest>())).data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_full_dfu_digest),
            "::",
            stringify!(data)
        )
    );
}
#[doc = " Modem UUID response."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct nrf_modem_full_dfu_uuid {
    pub data: [u8; 36usize],
}
#[test]
fn bindgen_test_layout_nrf_modem_full_dfu_uuid() {
    assert_eq!(
        ::core::mem::size_of::<nrf_modem_full_dfu_uuid>(),
        36usize,
        concat!("Size of: ", stringify!(nrf_modem_full_dfu_uuid))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_modem_full_dfu_uuid>(),
        1usize,
        concat!("Alignment of ", stringify!(nrf_modem_full_dfu_uuid))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_modem_full_dfu_uuid>())).data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_modem_full_dfu_uuid),
            "::",
            stringify!(data)
        )
    );
}
extern "C" {
    #[doc = " Set modem in full DFU mode."]
    #[doc = ""]
    #[doc = " Reset the modem and set it into a state ready for full DFU operation."]
    #[doc = " Before initialization, the modem library must be shut down and"]
    #[doc = " reinitialized with FULL_DFU_MODE."]
    #[doc = ""]
    #[doc = " Call once before DFU operations. If the modem goes to a error state,"]
    #[doc = " this can be called again to re-initialize."]
    #[doc = " The root key digest response of the modem is put in the digest_buffer"]
    #[doc = " structure."]
    #[doc = ""]
    #[doc = " If success, the modem will be in a state to wait for a bootloader."]
    #[doc = " Follow up with a call to nrf_modem_full_dfu_bl_write()."]
    #[doc = ""]
    #[doc = " * `digest_buffer` - Pointer to the buffer to store digest hash."]
    #[doc = "                                  If NULL, digest skipped."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received after modem reset."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_init(digest_buffer: *mut nrf_modem_full_dfu_digest) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Write a booloader chunk to the modem."]
    #[doc = ""]
    #[doc = " Call after nrf_modem_full_dfu_init() to upload modem bootloader segments."]
    #[doc = " Bootloader segments are appended together, so the full bootloader"]
    #[doc = " may be uploaded with one or many call to this function."]
    #[doc = " Once the full bootloader is uploaded, call nrf_modem_full_dfu_apply()."]
    #[doc = ""]
    #[doc = " Firmware segments can be uploaded after successful bootloader upload."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EINVAL` When src pointer is NULL or user tries to upload too big"]
    #[doc = "                 bootloader."]
    #[doc = " - `NRF_EOPNOTSUPP` If the modem is not in a state to receive."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept the flash programming request."]
    #[doc = " - `NRF_ENOEXEC` When flash programming failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " * `len` - Length of data to be written."]
    #[doc = " * `src` - Pointer to the buffer where chunk data is stored."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_bl_write(len: u32, src: *mut ctypes::c_void) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Write a memory chunk to the modem."]
    #[doc = ""]
    #[doc = " Call after bootloader have been upload to the modem."]
    #[doc = ""]
    #[doc = " DFU library internally buffers all writes to a full page, so you"]
    #[doc = " may call split writes to any size preferred. When addr points to an area"]
    #[doc = " that is not continuing from previous write, the previous buffer is first"]
    #[doc = " written to a modem. After all firmware segments have been written, call"]
    #[doc = " nrf_modem_full_dfu_apply() to complete writing of the last buffer."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EINVAL` When src pointer is NULL, or user tries to upload too big"]
    #[doc = "                 bootloader, or addr parameter is zero after a bootloader"]
    #[doc = "                 upload."]
    #[doc = " - `NRF_EOPNOTSUPP` If the modem is not in a state to receive."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept the flash programming request."]
    #[doc = " - `NRF_ENOEXEC` When flash programming failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " * `addr` - Address where the data to be written."]
    #[doc = " * `len` - Length of data to be written."]
    #[doc = " * `src` - Pointer to the buffer where chunk data is stored."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_fw_write(
        addr: u32,
        len: u32,
        src: *mut ctypes::c_void,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Complete previous write cycle."]
    #[doc = ""]
    #[doc = " This call ensures that all parts from internal DFU buffers have been written"]
    #[doc = " to the modem. Call after final bootloader chunk have been written as well"]
    #[doc = " as when final firmware segment have been written."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EOPNOTSUPP` If the modem is not in a state to receive."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept the flash programming request."]
    #[doc = " - `NRF_ENOEXEC` When flash programming failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_apply() -> ctypes::c_int;
}
extern "C" {
    #[doc = " Read a digest hash data from the modem."]
    #[doc = ""]
    #[doc = " On failure, errno is to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EINVAL` When digest_buffer pointer is NULL."]
    #[doc = " - `NRF_EOPNOTSUPP` If bootloader is not programmed."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept RPC command."]
    #[doc = " - `NRF_ENOEXEC` When RPC command failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " * `addr` - Start address."]
    #[doc = " * `size` - Size of hash data."]
    #[doc = " * `digest_buffer` - Pointer to the buffer to store digest hash data."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_digest(
        addr: u32,
        size: u32,
        digest_buffer: *mut nrf_modem_full_dfu_digest,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Read an uuid data from the modem."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EINVAL` When modem_uuid pointer is NULL."]
    #[doc = " - `NRF_EOPNOTSUPP` If bootloader is not programmed."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept RPC command."]
    #[doc = " - `NRF_ENOEXEC` When RPC command failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " * `modem_uuid` - Pointer to the buffer to store uuid data."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_uuid(modem_uuid: *mut nrf_modem_full_dfu_uuid) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Verify the modem firmware signature."]
    #[doc = ""]
    #[doc = " On failure, errno is set to one of following values:"]
    #[doc = ""]
    #[doc = " - `NRF_EINVAL` When data pointer is NULL."]
    #[doc = " - `NRF_EOPNOTSUPP` If bootloader is not programmed."]
    #[doc = " - `NRF_EFAULT` When modem responded with error codes."]
    #[doc = " - `NRF_EPERM` When modem did not accept RPC command."]
    #[doc = " - `NRF_ENOEXEC` When RPC command failed."]
    #[doc = " - `NRF_ETIMEDOUT` When modem did not respond."]
    #[doc = " - `NRF_EIO` When incorrect response received from modem."]
    #[doc = ""]
    #[doc = " * `bytes` - Size of signature."]
    #[doc = " * `data` - Pointer to the buffer where signature is stored."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, -1 otherwise."]
    pub fn nrf_modem_full_dfu_verify(bytes: u32, data: *const ctypes::c_void) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Initialize the glue layer."]
    pub fn nrf_modem_os_init();
}
extern "C" {
    #[doc = "  Allocate a buffer on the TX area of shared memory."]
    #[doc = ""]
    #[doc = " * `bytes` - Buffer size."]
    #[doc = " Returns void*"]
    pub fn nrf_modem_os_shm_tx_alloc(bytes: size_t) -> *mut ctypes::c_void;
}
extern "C" {
    #[doc = "  Free a shared memory buffer in the TX area."]
    #[doc = ""]
    #[doc = " * `mem` - Buffer to free."]
    pub fn nrf_modem_os_shm_tx_free(mem: *mut ctypes::c_void);
}
extern "C" {
    #[doc = "  Allocate a buffer on the library heap."]
    #[doc = ""]
    #[doc = " * `bytes` - Buffer size."]
    #[doc = " Returns void*"]
    pub fn nrf_modem_os_alloc(bytes: size_t) -> *mut ctypes::c_void;
}
extern "C" {
    #[doc = "  Free a memory buffer in the library heap."]
    #[doc = ""]
    #[doc = " * `mem` - Buffer to free."]
    pub fn nrf_modem_os_free(mem: *mut ctypes::c_void);
}
extern "C" {
    pub fn nrf_modem_os_timedwait(context: u32, timeout: *mut i32) -> i32;
}
extern "C" {
    #[doc = "  Set errno."]
    #[doc = ""]
    #[doc = " * `errno_val` - errno to set."]
    pub fn nrf_modem_os_errno_set(errno_val: ctypes::c_int);
}
extern "C" {
    #[doc = "  Set the application IRQ,  * `NRF_MODEM_APPLICATION_IRQ` - ."]
    pub fn nrf_modem_os_application_irq_set();
}
extern "C" {
    #[doc = "  Clear the application IRQ,  * `NRF_MODEM_APPLICATION_IRQ` - ."]
    pub fn nrf_modem_os_application_irq_clear();
}
extern "C" {
    #[doc = "  Set the Trace IRQ."]
    pub fn nrf_modem_os_trace_irq_set();
}
extern "C" {
    #[doc = "  Clear the Trace IRQ."]
    pub fn nrf_modem_os_trace_irq_clear();
}
extern "C" {
    #[doc = "  Output Trace data from the trace buffer."]
    #[doc = ""]
    #[doc = " * `data` - Memory buffer containing the output trace data."]
    #[doc = " * `len` - Memory buffer length."]
    #[doc = " Returns int32_t 0 on success, an errno otherwise."]
    pub fn nrf_modem_os_trace_put(data: *const u8, len: u32) -> i32;
}
extern "C" {
    #[doc = "  Application IRQ handler in the modem library."]
    #[doc = ""]
    #[doc = " Call this function when handling the Application IRQ."]
    pub fn nrf_modem_os_application_irq_handler();
}
extern "C" {
    #[doc = "  Trace IRQ handler in the modem library."]
    #[doc = ""]
    #[doc = " Call this function when handling the Trace IRQ."]
    pub fn nrf_modem_os_trace_irq_handler();
}
#[doc = " @defgroup nrf_fd_set_api Descriptor sets API"]
#[doc = "  Types and macros used to manipulate the input data argument to the nrf_select() function."]
#[doc = " s File descriptor sets are used as input to the nrf_select() function for doing I/O"]
#[doc = "          multiplexing. The maximum number of descriptors contained in a set is defined by"]
#[doc = "          NRF_FD_SETSIZE."]
#[doc = ""]
#[doc = " @{"]
pub type nrf_fd_set = u32;
#[doc = "  Socket port type."]
pub type nrf_in_port_t = u16;
#[doc = "  Structure specifying time interval."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_timeval {
    #[doc = " Time interval seconds."]
    pub tv_sec: u32,
    #[doc = " Time interval microseconds."]
    pub tv_usec: u32,
}
#[test]
fn bindgen_test_layout_nrf_timeval() {
    assert_eq!(
        ::core::mem::size_of::<nrf_timeval>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_timeval))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_timeval>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_timeval))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_timeval>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_timeval),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_timeval>())).tv_usec as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_timeval),
            "::",
            stringify!(tv_usec)
        )
    );
}
#[doc = "  Socket families."]
#[doc = ""]
#[doc = " s For a list of valid values, refer to nrf_socket_families."]
pub type nrf_socket_family_t = ctypes::c_int;
pub type nrf_sa_family_t = nrf_socket_family_t;
#[doc = "  IPv6 address."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_in6_addr {
    pub s6_addr: [u8; 16usize],
}
#[test]
fn bindgen_test_layout_nrf_in6_addr() {
    assert_eq!(
        ::core::mem::size_of::<nrf_in6_addr>(),
        16usize,
        concat!("Size of: ", stringify!(nrf_in6_addr))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_in6_addr>(),
        1usize,
        concat!("Alignment of ", stringify!(nrf_in6_addr))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_in6_addr>())).s6_addr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_in6_addr),
            "::",
            stringify!(s6_addr)
        )
    );
}
#[doc = "  IPv4 address."]
pub type nrf_in_addr_t = u32;
#[doc = "  IPv4 address structure."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_in_addr {
    pub s_addr: nrf_in_addr_t,
}
#[test]
fn bindgen_test_layout_nrf_in_addr() {
    assert_eq!(
        ::core::mem::size_of::<nrf_in_addr>(),
        4usize,
        concat!("Size of: ", stringify!(nrf_in_addr))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_in_addr>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_in_addr))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_in_addr>())).s_addr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_in_addr),
            "::",
            stringify!(s_addr)
        )
    );
}
#[doc = "  Address record for IPv6 addresses."]
#[doc = ""]
#[doc = " s Contains the address and port of the host, as well as other socket options. All fields"]
#[doc = "          in this structure are compatible with the POSIX variant for API compatibility."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_sockaddr_in6 {
    #[doc = " Length of this data structure."]
    pub sin6_len: u8,
    #[doc = " Socket family."]
    pub sin6_family: nrf_sa_family_t,
    #[doc = " Port, in network byte order."]
    pub sin6_port: nrf_in_port_t,
    #[doc = " IPv6 flow info parameters. Not used."]
    pub sin6_flowinfo: u32,
    #[doc = " IPv6 address."]
    pub sin6_addr: nrf_in6_addr,
    #[doc = " IPv6 scope ID. Not used."]
    pub sin6_scope_id: u32,
}
#[test]
fn bindgen_test_layout_nrf_sockaddr_in6() {
    assert_eq!(
        ::core::mem::size_of::<nrf_sockaddr_in6>(),
        36usize,
        concat!("Size of: ", stringify!(nrf_sockaddr_in6))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_sockaddr_in6>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_sockaddr_in6))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_family as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_port as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_flowinfo as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_flowinfo)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_addr as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in6>())).sin6_scope_id as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in6),
            "::",
            stringify!(sin6_scope_id)
        )
    );
}
#[doc = "  Address record for IPv4 addresses."]
#[doc = ""]
#[doc = " s Contains the address and port of the host. All fields"]
#[doc = "          in this structure are compatible with the POSIX variant for API compatibility."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_sockaddr_in {
    #[doc = " Length of this data structure."]
    pub sin_len: u8,
    #[doc = " Socket family."]
    pub sin_family: nrf_sa_family_t,
    #[doc = " Port, in network byte order."]
    pub sin_port: nrf_in_port_t,
    #[doc = " IPv4 address."]
    pub sin_addr: nrf_in_addr,
}
#[test]
fn bindgen_test_layout_nrf_sockaddr_in() {
    assert_eq!(
        ::core::mem::size_of::<nrf_sockaddr_in>(),
        16usize,
        concat!("Size of: ", stringify!(nrf_sockaddr_in))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_sockaddr_in>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_sockaddr_in))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in>())).sin_len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in),
            "::",
            stringify!(sin_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in>())).sin_family as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in),
            "::",
            stringify!(sin_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in>())).sin_port as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in),
            "::",
            stringify!(sin_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr_in>())).sin_addr as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr_in),
            "::",
            stringify!(sin_addr)
        )
    );
}
pub type nrf_sockaddr_t = nrf_sockaddr;
pub type nrf_sockaddr_in6_t = nrf_sockaddr_in6;
pub type nrf_in6_addr_t = nrf_in6_addr;
pub type nrf_sockaddr_in_t = nrf_sockaddr_in;
#[doc = "  Socket module size type."]
pub type nrf_socklen_t = u32;
#[doc = "  Generic socket address."]
#[doc = ""]
#[doc = " s Only provided for API compatibility."]
#[repr(C)]
#[derive(Debug)]
pub struct nrf_sockaddr {
    #[doc = " Socket address length"]
    pub sa_len: u8,
    #[doc = " Socket address family"]
    pub sa_family: ctypes::c_int,
    #[doc = " Socket address"]
    pub sa_data: __IncompleteArrayField<ctypes::c_char>,
}
#[test]
fn bindgen_test_layout_nrf_sockaddr() {
    assert_eq!(
        ::core::mem::size_of::<nrf_sockaddr>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_sockaddr))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_sockaddr>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_sockaddr))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr>())).sa_len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr),
            "::",
            stringify!(sa_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr>())).sa_family as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr),
            "::",
            stringify!(sa_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sockaddr>())).sa_data as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sockaddr),
            "::",
            stringify!(sa_data)
        )
    );
}
#[doc = " Address information."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_addrinfo {
    #[doc = " Input flags."]
    pub ai_flags: ctypes::c_int,
    #[doc = " Address family of the socket."]
    pub ai_family: ctypes::c_int,
    #[doc = " Socket type."]
    pub ai_socktype: ctypes::c_int,
    #[doc = " Protocol of the socket."]
    pub ai_protocol: ctypes::c_int,
    #[doc = " Length of the socket address."]
    pub ai_addrlen: nrf_socklen_t,
    #[doc = " Address of the socket."]
    pub ai_addr: *mut nrf_sockaddr,
    #[doc = " Canonical name of service location."]
    pub ai_canonname: *mut ctypes::c_char,
    #[doc = " Pointer to next in list."]
    pub ai_next: *mut nrf_addrinfo,
}
#[test]
fn bindgen_test_layout_nrf_addrinfo() {
    assert_eq!(
        ::core::mem::size_of::<nrf_addrinfo>(),
        32usize,
        concat!("Size of: ", stringify!(nrf_addrinfo))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_addrinfo>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_addrinfo))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_flags as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_family as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_socktype as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_socktype)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_protocol as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_protocol)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_addrlen as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_addrlen)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_addr as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_canonname as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_canonname)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_addrinfo>())).ai_next as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_addrinfo),
            "::",
            stringify!(ai_next)
        )
    );
}
#[doc = ""]
#[doc = " TLS role for the connection."]
#[doc = "  - 0 - TLS client role."]
#[doc = "  - 1 - TLS server role."]
pub type nrf_sec_role_t = u32;
#[doc = ""]
#[doc = " Security tags used on the TLS socket."]
#[doc = ""]
#[doc = " More than one security tags may be used on a socket."]
#[doc = " If more than one tag is used on the socket, pass an array of security tags."]
#[doc = ""]
#[doc = " A maximum of 8 tags can be set per socket."]
pub type nrf_sec_tag_t = u32;
#[doc = ""]
#[doc = " Session cache configuration for the TLS connection."]
#[doc = "  - 0 - Disabled."]
#[doc = "  - 1 - Enabled."]
#[doc = ""]
#[doc = " By default, the session cache is enabled."]
#[doc = " @note Session cache, may not be used if the peer does not support it."]
pub type nrf_sec_session_cache_t = u8;
#[doc = ""]
#[doc = " Peer verification level for the TLS connection."]
#[doc = "  - 0 - None."]
#[doc = "  - 1 - Optional."]
#[doc = "  - 2 - Required."]
#[doc = ""]
#[doc = " By default, peer verification is optional."]
pub type nrf_sec_peer_verify_t = u32;
#[doc = ""]
#[doc = " A IANA cipher suite identifier."]
pub type nrf_sec_cipher_t = u32;
#[doc = " Data type to combine all security configuration parameters."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_sec_config_t {
    #[doc = " Local role to be played. See nrf_sec_role_t for details."]
    pub role: nrf_sec_role_t,
    #[doc = " Indicates the preference for peer verification. See nrf_sec_peer_verify_t for details."]
    pub peer_verify: nrf_sec_peer_verify_t,
    #[doc = " Indicates the preference for session caching. See nrf_sec_session_cache_t for details."]
    pub session_cache: nrf_sec_session_cache_t,
    #[doc = " Indicates the number of entries in the cipher list."]
    pub cipher_count: u32,
    #[doc = " Indicates the list of ciphers to be used for the session. See nrf_sec_cipher_t for details."]
    pub p_cipher_list: *mut nrf_sec_cipher_t,
    #[doc = " Indicates the number of entries in the sec tag list."]
    pub sec_tag_count: u32,
    #[doc = " Indicates the list of security tags to be used for the session. See nrf_sec_tag_t for details."]
    pub p_sec_tag_list: *mut nrf_sec_tag_t,
}
#[test]
fn bindgen_test_layout_nrf_sec_config_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_sec_config_t>(),
        28usize,
        concat!("Size of: ", stringify!(nrf_sec_config_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_sec_config_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_sec_config_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).role as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(role)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).peer_verify as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(peer_verify)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).session_cache as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(session_cache)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).cipher_count as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(cipher_count)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).p_cipher_list as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(p_cipher_list)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_sec_config_t>())).sec_tag_count as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(sec_tag_count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_sec_config_t>())).p_sec_tag_list as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_sec_config_t),
            "::",
            stringify!(p_sec_tag_list)
        )
    );
}
#[doc = " Data type for network interface."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct nrf_ifreq {
    pub ifr_name: [ctypes::c_char; 64usize],
}
#[test]
fn bindgen_test_layout_nrf_ifreq() {
    assert_eq!(
        ::core::mem::size_of::<nrf_ifreq>(),
        64usize,
        concat!("Size of: ", stringify!(nrf_ifreq))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_ifreq>(),
        1usize,
        concat!("Alignment of ", stringify!(nrf_ifreq))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_ifreq>())).ifr_name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_ifreq),
            "::",
            stringify!(ifr_name)
        )
    );
}
#[doc = "@addtogroup nrf_socket_pdn"]
#[doc = "  Data types defined to set and get socket options on a PDN socket."]
#[doc = " @{"]
#[doc = " List of address family(ies) for the PDN."]
pub type nrf_pdn_af_list_t = *mut nrf_sa_family_t;
#[doc = ""]
#[doc = " Context ID for the PDN."]
pub type nrf_pdn_context_id_t = u8;
#[doc = ""]
#[doc = " PDN state."]
#[doc = "   1 - PDN is active."]
#[doc = "   0 - PDN is inactive."]
pub type nrf_pdn_state_t = u8;
pub const nrf_pdn_auth_type_t_NRF_PDN_AUTH_TYPE_NONE: nrf_pdn_auth_type_t = 0;
pub const nrf_pdn_auth_type_t_NRF_PDN_AUTH_TYPE_PAP: nrf_pdn_auth_type_t = 1;
pub const nrf_pdn_auth_type_t_NRF_PDN_AUTH_TYPE_CHAP: nrf_pdn_auth_type_t = 2;
#[doc = ""]
#[doc = " PDN authentication type."]
pub type nrf_pdn_auth_type_t = ctypes::c_uint;
#[doc = ""]
#[doc = " Structure for PDN authentication socket option."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct nrf_pdn_auth_t {
    pub username: [ctypes::c_char; 100usize],
    pub password: [ctypes::c_char; 100usize],
    pub authentication_type: nrf_pdn_auth_type_t,
}
#[test]
fn bindgen_test_layout_nrf_pdn_auth_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_pdn_auth_t>(),
        204usize,
        concat!("Size of: ", stringify!(nrf_pdn_auth_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_pdn_auth_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_pdn_auth_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_pdn_auth_t>())).username as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pdn_auth_t),
            "::",
            stringify!(username)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_pdn_auth_t>())).password as *const _ as usize },
        100usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pdn_auth_t),
            "::",
            stringify!(password)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_pdn_auth_t>())).authentication_type as *const _ as usize
        },
        200usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pdn_auth_t),
            "::",
            stringify!(authentication_type)
        )
    );
}
#[doc = ""]
#[doc = " Universally unique identifier of the modem firmware version."]
#[doc = " The UUID format is defined by RFC 4122."]
pub type nrf_dfu_fw_version_t = [u8; 36usize];
#[doc = ""]
#[doc = " Maximum size for a firmware image, in bytes."]
pub type nrf_dfu_resources_t = u32;
#[doc = ""]
#[doc = " Size of the firmware image stored in flash, in bytes."]
pub type nrf_dfu_fw_offset_t = u32;
#[doc = " DFU socket error."]
pub type nrf_dfu_err_t = i32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_datetime_t {
    #[doc = " 4-digit representation (Gregorian calendar)."]
    pub year: u16,
    #[doc = " 1...12"]
    pub month: u8,
    #[doc = " 1...31"]
    pub day: u8,
    #[doc = " 0...23"]
    pub hour: u8,
    #[doc = " 0...59"]
    pub minute: u8,
    #[doc = " 0...59"]
    pub seconds: u8,
    #[doc = " 0...999"]
    pub ms: u16,
}
#[test]
fn bindgen_test_layout_nrf_gnss_datetime_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_datetime_t>(),
        10usize,
        concat!("Size of: ", stringify!(nrf_gnss_datetime_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_datetime_t>(),
        2usize,
        concat!("Alignment of ", stringify!(nrf_gnss_datetime_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).year as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(year)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).month as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(month)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).day as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(day)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).hour as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(hour)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).minute as *const _ as usize },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(minute)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).seconds as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(seconds)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_datetime_t>())).ms as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_datetime_t),
            "::",
            stringify!(ms)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_sv_t {
    #[doc = " SV number 1...32 for GPS."]
    pub sv: u16,
    #[doc = " Signal type. 0: invalid, 1: GPS L1C/A, other values are reserved for other GNSSes or signals."]
    pub signal: u8,
    #[doc = " 0.1 dB/Hz."]
    pub cn0: u16,
    #[doc = " SV elevation angle in degrees."]
    pub elevation: i16,
    #[doc = " SV azimuth angle in degrees."]
    pub azimuth: i16,
    #[doc = " Bit mask of measurement and position computation flags."]
    pub flags: u8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_sv_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_sv_t>(),
        12usize,
        concat!("Size of: ", stringify!(nrf_gnss_sv_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_sv_t>(),
        2usize,
        concat!("Alignment of ", stringify!(nrf_gnss_sv_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).sv as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(sv)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).signal as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(signal)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).cn0 as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(cn0)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).elevation as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(elevation)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).azimuth as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(azimuth)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_sv_t>())).flags as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_sv_t),
            "::",
            stringify!(flags)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_pvt_data_frame_t {
    #[doc = " Latitude in degrees."]
    pub latitude: f64,
    #[doc = " Longitude in degrees."]
    pub longitude: f64,
    #[doc = " Altitude above WGS-84 ellipsoid in meters."]
    pub altitude: f32,
    #[doc = " Accuracy (2D 1-sigma) in meters."]
    pub accuracy: f32,
    #[doc = " Horizontal speed in meters."]
    pub speed: f32,
    #[doc = " Heading of user movement in degrees."]
    pub heading: f32,
    pub datetime: nrf_gnss_datetime_t,
    #[doc = " Position dilution of precision."]
    pub pdop: f32,
    #[doc = " Horizontal dilution of precision."]
    pub hdop: f32,
    #[doc = " Vertical dilution of precision."]
    pub vdop: f32,
    #[doc = " Time dilution of precision."]
    pub tdop: f32,
    #[doc = " Bit 0 (LSB): fix validity. Bit 1: Leap second validity. Bit 2: If set, the GNSS operation is blocked, for example, by LTE."]
    pub flags: u8,
    #[doc = " Describes up to 12 of the space vehicles used for the measurement."]
    pub sv: [nrf_gnss_sv_t; 12usize],
}
#[test]
fn bindgen_test_layout_nrf_gnss_pvt_data_frame_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_pvt_data_frame_t>(),
        208usize,
        concat!("Size of: ", stringify!(nrf_gnss_pvt_data_frame_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_pvt_data_frame_t>(),
        8usize,
        concat!("Alignment of ", stringify!(nrf_gnss_pvt_data_frame_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).latitude as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(latitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).longitude as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(longitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).altitude as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(altitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).accuracy as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(accuracy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).speed as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(speed)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).heading as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(heading)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).datetime as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(datetime)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).pdop as *const _ as usize },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(pdop)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).hdop as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(hdop)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).vdop as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(vdop)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).tdop as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(tdop)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).flags as *const _ as usize
        },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_pvt_data_frame_t>())).sv as *const _ as usize },
        62usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_pvt_data_frame_t),
            "::",
            stringify!(sv)
        )
    );
}
#[doc = " Single null-terminated NMEA sentence"]
pub type nrf_gnss_nmea_data_frame_t = [ctypes::c_char; 83usize];
#[doc = " AGPS notification data frame used by the GPS module to let the application know it needs new APGS data."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_frame_t {
    #[doc = " Bit mask indicating the satellite PRNs for which the assistance GPS ephemeris data is needed."]
    pub sv_mask_ephe: u32,
    #[doc = " Bit mask indicating the satellite PRNs for which the assistance GPS almanac data is needed."]
    pub sv_mask_alm: u32,
    #[doc = " Indicating other AGPS data models is needed by the GNSS module"]
    pub data_flags: u32,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_frame_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_frame_t>(),
        12usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_frame_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_frame_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_frame_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_frame_t>())).sv_mask_ephe as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_frame_t),
            "::",
            stringify!(sv_mask_ephe)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_frame_t>())).sv_mask_alm as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_frame_t),
            "::",
            stringify!(sv_mask_alm)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_frame_t>())).data_flags as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_frame_t),
            "::",
            stringify!(data_flags)
        )
    );
}
#[doc = " Wrapper struct that used for all data frames read from the GNSS module"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct nrf_gnss_data_frame_t {
    pub data_id: u8,
    pub __bindgen_anon_1: nrf_gnss_data_frame_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union nrf_gnss_data_frame_t__bindgen_ty_1 {
    #[doc = " PVT (Position, Velocity, and Time) data notification frame"]
    pub pvt: nrf_gnss_pvt_data_frame_t,
    #[doc = " NMEA data notification frame"]
    pub nmea: nrf_gnss_nmea_data_frame_t,
    #[doc = " AGPS data request notification"]
    pub agps: nrf_gnss_agps_data_frame_t,
    _bindgen_union_align: [u64; 26usize],
}
#[test]
fn bindgen_test_layout_nrf_gnss_data_frame_t__bindgen_ty_1() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_data_frame_t__bindgen_ty_1>(),
        208usize,
        concat!("Size of: ", stringify!(nrf_gnss_data_frame_t__bindgen_ty_1))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_data_frame_t__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_gnss_data_frame_t__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_data_frame_t__bindgen_ty_1>())).pvt as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_data_frame_t__bindgen_ty_1),
            "::",
            stringify!(pvt)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_data_frame_t__bindgen_ty_1>())).nmea as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_data_frame_t__bindgen_ty_1),
            "::",
            stringify!(nmea)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_data_frame_t__bindgen_ty_1>())).agps as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_data_frame_t__bindgen_ty_1),
            "::",
            stringify!(agps)
        )
    );
}
#[test]
fn bindgen_test_layout_nrf_gnss_data_frame_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_data_frame_t>(),
        216usize,
        concat!("Size of: ", stringify!(nrf_gnss_data_frame_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_data_frame_t>(),
        8usize,
        concat!("Alignment of ", stringify!(nrf_gnss_data_frame_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_data_frame_t>())).data_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_data_frame_t),
            "::",
            stringify!(data_id)
        )
    );
}
#[doc = " Type used to select which AGPS data is written to the GPS module."]
#[doc = " s Goes into the  * `p_servaddr` -  parameter in the  * `nrf_sendto` -  function prototype. Possible values:"]
#[doc = " *  * `NRF_GNSS_AGPS_UTC_PARAMETERS` - "]
#[doc = " *  * `NRF_GNSS_AGPS_EPHEMERIDE` - "]
#[doc = " *  * `NRF_GNSS_AGPS_ALMANAC` - "]
#[doc = " *  * `NRF_GNSS_AGPS_KLOBUCHAR_IONOSPHERIC_CORRECTION` - "]
#[doc = " *  * `NRF_GNSS_AGPS_NEQUICK_IONOSPHERIC_CORRECTION` - "]
#[doc = " *  * `NRF_GNSS_AGPS_GPS_SYSTEM_CLOCK_AND_TOWS` - "]
#[doc = " *  * `NRF_GNSS_AGPS_LOCATION` - "]
#[doc = " *  * `NRF_GNSS_AGPS_INTEGRITY` - "]
pub type nrf_gnss_agps_data_type_t = u16;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_utc_t {
    #[doc = " First order term of polynomial (sec/sec). Scale factor 2^-50. Range -8388608...8388607 (25 bits)."]
    pub a1: i32,
    #[doc = " Constant term of polynomial (sec). Scale factor 2^-30."]
    pub a0: i32,
    #[doc = " UTC reference GPS time-of-week (sec). Scale factor 2^12. Range 0..147."]
    pub tot: u8,
    #[doc = " UTC reference GPS week number modulo 256."]
    pub wn_t: u8,
    #[doc = " Current or past leap second count (sec)."]
    pub delta_tls: i8,
    #[doc = " Leap second reference GPS week number modulo 256."]
    pub wn_lsf: u8,
    #[doc = " Leap second reference GPS day-of-week (day). Range 1...7."]
    pub dn: i8,
    #[doc = " Current or future leap second count (sec) (total size of the type-specific assistance data)."]
    pub delta_tlsf: i8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_utc_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_utc_t>(),
        16usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_utc_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_utc_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_utc_t))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).a1 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(a1)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).a0 as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(a0)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).tot as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(tot)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).wn_t as *const _ as usize },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(wn_t)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).delta_tls as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(delta_tls)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).wn_lsf as *const _ as usize
        },
        11usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(wn_lsf)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).dn as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(dn)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_utc_t>())).delta_tlsf as *const _ as usize
        },
        13usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_utc_t),
            "::",
            stringify!(delta_tlsf)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_ephemeris_t {
    #[doc = " Satellite ID (dimensionless). Range 1...32."]
    pub sv_id: u8,
    #[doc = " Satellite health (dimensionless)."]
    pub health: u8,
    #[doc = " Issue of data, clock parameters (dimensionless). Range 0...2047 (11 bits)."]
    pub iodc: u16,
    #[doc = " Clock parameters reference GPS time-of-week (sec). Scale factor 2^4. Range 0...37799."]
    pub toc: u16,
    #[doc = " Clock drift rate (sec/sec2). Scale factor 2^-55."]
    pub af2: i8,
    #[doc = " Clock drift (sec/sec). Scale factor 2^-43."]
    pub af1: i16,
    #[doc = " Clock bias (sec). Scale factor 2^-31. Range -2097152...2097151 (22 bit)"]
    pub af0: i32,
    #[doc = " Group delay (sec). Scale factor 2^-31."]
    pub tgd: i8,
    #[doc = " URA index (dimensionless). Range 0...15."]
    pub ura: u8,
    #[doc = " Curve fit interval indication. Range 0...1."]
    pub fit_int: u8,
    #[doc = " Ephemeris parameters reference GPS time-of-week (sec). Scale factor 2^4. Range 0...37799."]
    pub toe: u16,
    #[doc = " Argument of perigee (semi-circle). Scale factor 2^-31."]
    pub w: i32,
    #[doc = " Mean motion difference (semi-circle/sec). Scale factor 2^-43."]
    pub delta_n: i16,
    #[doc = " Mean anomaly at reference time (semi-circle). Scale factor 2^-31."]
    pub m0: i32,
    #[doc = " Rate of right ascension (semi-circle/sec). Scale factor 2^-43. Range -8388608...8388607 (24 bits)."]
    pub omega_dot: i32,
    #[doc = " Eccentricity (dimensionless). Scale factor 2^-33."]
    pub e: u32,
    #[doc = " Rate of inclination angle (semi-circle/sec). Scale factor 2-43. Range -8192...8191 (14 bits)."]
    pub idot: i16,
    #[doc = " Square root of semi-major axis (m). Scale factor 2^-19."]
    pub sqrt_a: u32,
    #[doc = " Inclination angle at reference time (semi-circle). Scale factor 2^-31."]
    pub i0: i32,
    #[doc = " Longitude of ascending node at weekly epoch (semi-circle). Scale factor 2^-31."]
    pub omega0: i32,
    #[doc = " Orbit radius, sine harmonic amplitude (m). Scale factor 2^-5."]
    pub crs: i16,
    #[doc = " Inclination angle, sine harmonic amplitude (rad). Scale factor 2^-29."]
    pub cis: i16,
    #[doc = " Argument of latitude, sine harmonic amplitude (rad). Scale factor 2^-29."]
    pub cus: i16,
    #[doc = " Orbit radius, cosine harmonic amplitude (m). Scale factor 2^-5."]
    pub crc: i16,
    #[doc = " Inclination angle, cosine harmonic amplitude (rad). Scale factor 2^-29."]
    pub cic: i16,
    #[doc = " Argument of latitude, cosine harmonic amplitude (rad). Scale factor 2^-29."]
    pub cuc: i16,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_ephemeris_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_ephemeris_t>(),
        72usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_ephemeris_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_ephemeris_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_ephemeris_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).sv_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(sv_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).health as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(health)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).iodc as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(iodc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).toc as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(toc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).af2 as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(af2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).af1 as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(af1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).af0 as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(af0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).tgd as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(tgd)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).ura as *const _ as usize
        },
        17usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(ura)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).fit_int as *const _ as usize
        },
        18usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(fit_int)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).toe as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(toe)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).w as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(w)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).delta_n as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(delta_n)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).m0 as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(m0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).omega_dot as *const _
                as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(omega_dot)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).e as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(e)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).idot as *const _ as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(idot)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).sqrt_a as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(sqrt_a)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).i0 as *const _ as usize
        },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(i0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).omega0 as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(omega0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).crs as *const _ as usize
        },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(crs)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).cis as *const _ as usize
        },
        62usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(cis)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).cus as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(cus)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).crc as *const _ as usize
        },
        66usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(crc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).cic as *const _ as usize
        },
        68usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(cic)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_ephemeris_t>())).cuc as *const _ as usize
        },
        70usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_ephemeris_t),
            "::",
            stringify!(cuc)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_almanac_t {
    #[doc = " Satellite ID (dimensionless). Range 1...32."]
    pub sv_id: u8,
    #[doc = " Almanac reference GPS week number modulo 256."]
    pub wn: u8,
    #[doc = " Almanac reference GPS time-of-week (sec). Scale factor 2^12. Range 0...147."]
    pub toa: u8,
    #[doc = " Issue of data, almanac (dimensionless). Range 0...3  (2 bits)."]
    pub ioda: u8,
    #[doc = " Eccentricity (dimensionless). Scale factor 2^-21."]
    pub e: u16,
    #[doc = " Correction to inclination (semi-circle). Scale factor 2^-19."]
    pub delta_i: i16,
    #[doc = " Rate of right ascension (semi-circle/sec). Scale factor 2^-38."]
    pub omega_dot: i16,
    #[doc = " Satellite health (dimensionless)"]
    pub sv_health: u8,
    #[doc = " Square root of semi-major axis (m^(1/2)). Scale factor 2^-11. Range 0...16777215 (24 bit)."]
    pub sqrt_a: u32,
    #[doc = " Longitude of ascending node at weekly epoch (semi-circle). Scale factor 2^-23. Range -8388608...8388607  (24 bits)."]
    pub omega0: i32,
    #[doc = " Argument of perigee (semi-circle). Scale factor 2^-23."]
    pub w: i32,
    #[doc = " Mean anomaly at reference time (semi-circle). Scale factor 2^-23. Range -8388608...8388608 (24 bits)."]
    pub m0: i32,
    #[doc = " Clock bias (sec). Scale factor 2^-20. Range -1024...1023 (11 bits)."]
    pub af0: i16,
    #[doc = " Clock drift (sec/sec). Scale factor 2^-38. Range -1024...1023  (11 bits)."]
    pub af1: i16,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_almanac_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_almanac_t>(),
        32usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_almanac_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_almanac_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_almanac_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).sv_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(sv_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).wn as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(wn)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).toa as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(toa)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).ioda as *const _ as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(ioda)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).e as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(e)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).delta_i as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(delta_i)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).omega_dot as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(omega_dot)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).sv_health as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(sv_health)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).sqrt_a as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(sqrt_a)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).omega0 as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(omega0)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).w as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(w)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).m0 as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(m0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).af0 as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(af0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_almanac_t>())).af1 as *const _ as usize
        },
        30usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_almanac_t),
            "::",
            stringify!(af1)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_klobuchar_t {
    #[doc = " Constant term (sec). Scale factor 2^-30."]
    pub alpha0: i8,
    #[doc = " First-order coefficient (sec/semi-circle). Scale factor 2^-27."]
    pub alpha1: i8,
    #[doc = " Second-order coefficient (sec/semi-circle^2). Scale factor 2^-24."]
    pub alpha2: i8,
    #[doc = " Third-order coefficient (sec/semi-circle^3). Scale factor 2^-24."]
    pub alpha3: i8,
    #[doc = " Constant term (sec). Scale factor 2^11."]
    pub beta0: i8,
    #[doc = " First-order coefficient (sec/semi-circle). Scale factor 2^14."]
    pub beta1: i8,
    #[doc = " Second-order coefficient (sec/semi-circle^2). Scale factor 2^16."]
    pub beta2: i8,
    #[doc = " Third-order coefficient (sec/semi-circle^3). Scale factor 2^16."]
    pub beta3: i8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_klobuchar_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_klobuchar_t>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_klobuchar_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_klobuchar_t>(),
        1usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_klobuchar_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).alpha0 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(alpha0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).alpha1 as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(alpha1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).alpha2 as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(alpha2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).alpha3 as *const _ as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(alpha3)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).beta0 as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(beta0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).beta1 as *const _ as usize
        },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(beta1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).beta2 as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(beta2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_klobuchar_t>())).beta3 as *const _ as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_klobuchar_t),
            "::",
            stringify!(beta3)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_nequick_t {
    #[doc = " Effective ionisation level 1st order parameter (SFU). Scale factor 2^-2. Range 0...2047  (11 bits)."]
    pub ai0: i16,
    #[doc = " Effective ionisation level 2nd order parameter (SFU/deg). Scale factor 2^-8. Range -1024...1023 (11 bits)."]
    pub ai1: i16,
    #[doc = " Effective ionisation level 3rd order parameter (SFU/deg^2). Scale factor 2^-15. Range -8192...8191  (14 bits)."]
    pub ai2: i16,
    #[doc = " Storm condition bit mask indicating the ionospheric storm condition for different regions."]
    pub storm_cond: u8,
    #[doc = " Storm validity bit mask indicating for which regions the ionospheric storm condition bit is valid."]
    pub storm_valid: u8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_nequick_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_nequick_t>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_nequick_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_nequick_t>(),
        2usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_nequick_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_nequick_t>())).ai0 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_nequick_t),
            "::",
            stringify!(ai0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_nequick_t>())).ai1 as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_nequick_t),
            "::",
            stringify!(ai1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_nequick_t>())).ai2 as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_nequick_t),
            "::",
            stringify!(ai2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_nequick_t>())).storm_cond as *const _
                as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_nequick_t),
            "::",
            stringify!(storm_cond)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_nequick_t>())).storm_valid as *const _
                as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_nequick_t),
            "::",
            stringify!(storm_valid)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_tow_element_t {
    #[doc = " First two bits (MSB) represent the reserved bit and integrity status flag in the telemetry message (TLM) word."]
    #[doc = "  The following 14 bits represent the TLM being broadcast by the satellite."]
    pub tlm: u16,
    #[doc = " Bit 0 (LSB): anti-spoof flag. Bit 1: alert flag."]
    pub flags: u8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_tow_element_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_tow_element_t>(),
        4usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_tow_element_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_tow_element_t>(),
        2usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_gnss_agps_data_tow_element_t)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_tow_element_t>())).tlm as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_tow_element_t),
            "::",
            stringify!(tlm)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_tow_element_t>())).flags as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_tow_element_t),
            "::",
            stringify!(flags)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_system_time_and_sv_tow_t {
    #[doc = " Day number since Jan 6th, 1980 00:00:00 UTC (USNO)"]
    pub date_day: u16,
    #[doc = " Full seconds part of time-of-day (s). Range 0...86399."]
    pub time_full_s: u32,
    #[doc = " Fraction of a second part of time-of-day (ms). Range 0...999."]
    pub time_frac_ms: u16,
    #[doc = " Bit mask indicating the satellite PRNs for which the satellite-specific TOW assistance data is valid."]
    pub sv_mask: u32,
    #[doc = " TOW assistance data for PRN n"]
    pub sv_tow: [nrf_gnss_agps_data_tow_element_t; 32usize],
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_system_time_and_sv_tow_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_system_time_and_sv_tow_t>(),
        144usize,
        concat!(
            "Size of: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t)
        )
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_system_time_and_sv_tow_t>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_system_time_and_sv_tow_t>())).date_day
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t),
            "::",
            stringify!(date_day)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_system_time_and_sv_tow_t>())).time_full_s
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t),
            "::",
            stringify!(time_full_s)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_system_time_and_sv_tow_t>())).time_frac_ms
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t),
            "::",
            stringify!(time_frac_ms)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_system_time_and_sv_tow_t>())).sv_mask
                as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t),
            "::",
            stringify!(sv_mask)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_system_time_and_sv_tow_t>())).sv_tow
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_system_time_and_sv_tow_t),
            "::",
            stringify!(sv_tow)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_location_t {
    #[doc = " Geodetic latitude in WGS-84. Range -8388607...8388607."]
    #[doc = "  The relation between the coded number N and the latitude"]
    #[doc = "  range X (in degrees) is as follows: N <= (2^23/90) * X < N + 1."]
    #[doc = "  For N = 2^23 - 1, the range is extended to include N+1."]
    #[doc = "  Range of X (in degrees) -90...90."]
    pub latitude: i32,
    #[doc = " Geodetic longitude in WGS-84. Range -8388607..8388607."]
    #[doc = "  The relation between the coded number N and the longitude range"]
    #[doc = "  X (in degrees) is as follows: N <= (2^24/360) * X < N + 1."]
    #[doc = "  Range of X (in degrees) -180...180."]
    pub longitude: i32,
    #[doc = " Altitude. Above (positive value) or below (negative value) WGS-84"]
    #[doc = "  ellipsoid surface. Range -32767...32767."]
    #[doc = "  The relation between the coded number N and the altitude range a"]
    #[doc = "  (in meters) is as follows: N <= a < N + 1."]
    #[doc = "  For N = 2^15 - 1 the range is extended to include all greater values of a."]
    pub altitude: i16,
    #[doc = " Uncertainty, semi-major. Range 0...127. The uncertainty (in meters) is"]
    #[doc = "  mapped from the coded number K with following formula: r = C * ((1 + x)^K - 1),"]
    #[doc = "  where C = 10 and x = 0,1. Range of r (in kilometers) 0...1800."]
    pub unc_semimajor: u8,
    #[doc = " Uncertainty, semi-minor. Range 0...127. The uncertainty (in meters) is"]
    #[doc = "  mapped from the coded number K with following formula: r = C * ((1 + x)^K - 1),"]
    #[doc = "  where C = 10 and x = 0,1. Range of r (in kilometers) 0...1800)"]
    pub unc_semiminor: u8,
    #[doc = " Orientation angle between the major axis and north. Range in degrees 0...179."]
    pub orientation_major: u8,
    #[doc = " Uncertainty, altitude. Range 0...127. The uncertainty in altitude h (in meters)"]
    #[doc = "  is mapped from the coded number K with following formula: h = C * ((1 + x)^K - 1)."]
    #[doc = "  where C = 45 and x = 0,025. Range of h (in meters) 0...990,5."]
    pub unc_altitude: u8,
    #[doc = " The confidence level (expressed as a percentage) with which"]
    #[doc = "  the position of a target entity is included within the uncertainty ellipsoid."]
    #[doc = "  Range 0...128. '0' indicates 'no information'. Values 101..128  should be treated as '0'."]
    pub confidence: u8,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_location_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_location_t>(),
        16usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_location_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_location_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_location_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).latitude as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(latitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).longitude as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(longitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).altitude as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(altitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).unc_semimajor as *const _
                as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(unc_semimajor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).unc_semiminor as *const _
                as usize
        },
        11usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(unc_semiminor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).orientation_major as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(orientation_major)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).unc_altitude as *const _
                as usize
        },
        13usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(unc_altitude)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_location_t>())).confidence as *const _
                as usize
        },
        14usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_location_t),
            "::",
            stringify!(confidence)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_gnss_agps_data_integrity_t {
    #[doc = " Bit mask indicating the unhealthy GPS satellite PRNs. When a mask bit is set,"]
    #[doc = "  the corresponding GPS satellite PRN is unhealthy."]
    pub integrity_mask: u32,
}
#[test]
fn bindgen_test_layout_nrf_gnss_agps_data_integrity_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_gnss_agps_data_integrity_t>(),
        4usize,
        concat!("Size of: ", stringify!(nrf_gnss_agps_data_integrity_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_gnss_agps_data_integrity_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_gnss_agps_data_integrity_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_gnss_agps_data_integrity_t>())).integrity_mask as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_gnss_agps_data_integrity_t),
            "::",
            stringify!(integrity_mask)
        )
    );
}
#[doc = " Defines the interval between each fix in seconds."]
#[doc = " s Allowed values are 0, 1, 10..1800, value 0 denotes single fix."]
#[doc = "          Default interval is 1 second (continous mode), 0 denotes a single fix."]
pub type nrf_gnss_fix_interval_t = u16;
#[doc = " Defines how long (in seconds) the receiver should try to get a fix."]
#[doc = " s The default retry wait time is 60 seconds before it gives up."]
#[doc = "          0 denotes an infinite limit."]
pub type nrf_gnss_fix_retry_t = u16;
#[doc = " Defines which GNSS system to use."]
#[doc = " s 0 denotes GPS. Currently, only GPS is supported and any other value"]
#[doc = "          returns an error."]
pub type nrf_gnss_system_t = u8;
#[doc = " Defines at which elevation the GPS should track a satellite."]
#[doc = " s This option is used to make the GPS stop tracking GPSes on a"]
#[doc = "          certain elevation, because the information sent from the GPS gets more"]
#[doc = "          inaccurate as it gets closer to the horizon. Acceptable values"]
#[doc = "          are between 0 and 30 degrees."]
pub type nrf_gnss_elevation_mask_t = u8;
#[doc = " Defines the targeted start performance."]
#[doc = " s 0 denotes single cold start performance."]
#[doc = "          1 denotes multiple hot start performance."]
pub type nrf_gnss_use_case_t = u8;
#[doc = " Defines if NMEA frames should be added."]
pub type nrf_gnss_nmea_mask_t = u16;
#[doc = " Defines which power mode policy to use for the GNSS module."]
#[doc = " s"]
#[doc = " *  * `NRF_GNSS_PSM_DISABLED` -  for no power mode policy."]
#[doc = " *  * `NRF_GNSS_PSM_DUTY_CYCLING_PERFORMANCE` -  for low power mode with better performance."]
#[doc = " *  * `NRF_GNSS_PSM_DUTY_CYCLING_POWER` -  for low power mode with lower power consumption."]
#[doc = ""]
#[doc = " The available power modes determine whether duty-cycled tracking is allowed, and,"]
#[doc = " if allowed what is the target performance."]
#[doc = ""]
#[doc = " Performance duty-cycled power mode:"]
#[doc = " Duty-cycled tracking is engaged and run when conditions allow it without"]
#[doc = " significant performance degradation."]
#[doc = ""]
#[doc = " Power duty-cycled power mode::"]
#[doc = " Duty-cycled tracking is engaged and run whenever it is possible with acceptable"]
#[doc = " performance degradation."]
#[doc = ""]
#[doc = " The GNSS receiver keeps producing PVT estimates at the configured rate"]
#[doc = " regardless of whether it is tracking continuously or in duty cycles. However,"]
#[doc = " a failure to produce a valid PVT estimate during duty-cycled tracking may"]
#[doc = " cause the GNSS receiver to resume continuous tracking."]
#[doc = ""]
pub type nrf_gnss_power_save_mode_t = u8;
#[doc = " Defines a mask of non-volatile data types to delete."]
#[doc = " s"]
#[doc = " * Bit 0 denotes ephemerides data."]
#[doc = " * Bit 1 denotes almanac data (excluding leap second and ionospheric correction parameters)."]
#[doc = " * Bit 2 denotes ionospheric correction parameters data."]
#[doc = " * Bit 3 denotes last good fix (the last position) data."]
#[doc = " * Bit 4 denotes GPS time-of-week (TOW) data."]
#[doc = " * Bit 5 denotes GPS week number data."]
#[doc = " * Bit 6 denotes leap second (UTC parameters) data."]
#[doc = " * Bit 7 denotes local clock (TCXO) frequency offset data."]
pub type nrf_gnss_delete_mask_t = u32;
extern "C" {
    #[doc = "  Function for creating a socket."]
    #[doc = ""]
    #[doc = " s API to create a socket that can be used for network communication independently"]
    #[doc = "          of lower protocol layers."]
    #[doc = ""]
    #[doc = " * `family` - The protocol family of the network protocol to use."]
    #[doc = " * `type` - The protocol type to use for this socket."]
    #[doc = " * `protocol` - The transport protocol to use for this socket."]
    #[doc = ""]
    #[doc = " Returns A non-negative socket descriptor on success, or -1 on error."]
    pub fn nrf_socket(
        family: ctypes::c_int,
        type_: ctypes::c_int,
        protocol: ctypes::c_int,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for closing a socket and freeing any resources held by it."]
    #[doc = ""]
    #[doc = " s If the socket is already closed, this function does nothing."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to close."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_close(sock: ctypes::c_int) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for controlling file descriptor options."]
    #[doc = ""]
    #[doc = " s Set or get file descriptor options or flags. For a list of supported commands, refer"]
    #[doc = "          to @ref nrf_fcnt_commands."]
    #[doc = "          For a list of supported flags, refer to nrf_fcnt_flags."]
    #[doc = ""]
    #[doc = " * `fd` - The descriptor to set options on."]
    #[doc = " * `cmd` - The command class for options."]
    #[doc = " * `flags` - The flags to set."]
    pub fn nrf_fcntl(fd: ctypes::c_int, cmd: ctypes::c_int, flags: ctypes::c_int) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for connecting to an endpoint with a given address."]
    #[doc = ""]
    #[doc = " s The socket handle must be a valid handle that has not yet been connected. Running"]
    #[doc = "          connect on a connected handle will return an error."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to use for connection."]
    #[doc = " * `p_servaddr` - The address of the server to connect to."]
    #[doc = " * `addrlen` - The size of the p_servaddr argument."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_connect(
        sock: ctypes::c_int,
        p_servaddr: *const ctypes::c_void,
        addrlen: nrf_socklen_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for sending data through a socket."]
    #[doc = ""]
    #[doc = " s By default, this function will block unless the NRF_O_NONBLOCK"]
    #[doc = "          socket option has been set, OR NRF_MSG_DONTWAIT is passed as a flag. In that case, the"]
    #[doc = "          method will return immediately."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to write data to."]
    #[doc = " * `p_buff` - Buffer containing the data to send."]
    #[doc = " * `nbytes` - Size of data contained on p_buff."]
    #[doc = " * `flags` - Flags to control send behavior."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were sent on success, or -1 on error."]
    pub fn nrf_send(
        sock: ctypes::c_int,
        p_buff: *const ctypes::c_void,
        nbytes: size_t,
        flags: ctypes::c_int,
    ) -> ssize_t;
}
extern "C" {
    #[doc = "  Function for sending datagram through a socket."]
    #[doc = ""]
    #[doc = " s By default, this function will block if the lower layers are not able to process the"]
    #[doc = "          packet, unless the NRF_O_NONBLOCK socket option has been set, OR NRF_MSG_DONTWAIT is passed as a flag."]
    #[doc = "          In that case, the method will return immediately."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to write data to."]
    #[doc = " * `p_buff` - Buffer containing the data to send."]
    #[doc = " * `nbytes` - Size of data contained in p_buff."]
    #[doc = " * `flags` - Flags to control send behavior."]
    #[doc = " * `p_servaddr` - The address of the server to send to."]
    #[doc = " * `addrlen` - The size of the p_servaddr argument."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were sent on success, or -1 on error."]
    pub fn nrf_sendto(
        sock: ctypes::c_int,
        p_buff: *const ctypes::c_void,
        nbytes: size_t,
        flags: ctypes::c_int,
        p_servaddr: *const ctypes::c_void,
        addrlen: nrf_socklen_t,
    ) -> ssize_t;
}
extern "C" {
    #[doc = "  Function for writing data to a socket. See `nrf_send()` for details."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to write data to."]
    #[doc = " * `p_buff` - Buffer containing the data to send."]
    #[doc = " * `nbytes` - Size of data contained in p_buff."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were sent on success, or -1 on error."]
    pub fn nrf_write(sock: ctypes::c_int, p_buff: *const ctypes::c_void, nbytes: size_t)
        -> ssize_t;
}
extern "C" {
    #[doc = "  Function for receiving data on a socket."]
    #[doc = ""]
    #[doc = " s API for receiving data from a socket. By default, this function will block, unless the"]
    #[doc = "          NRF_O_NONBLOCK socket option has been set, or NRF_MSG_DONTWAIT is passed as a flag."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to receive data from."]
    #[doc = " * `p_buff` - Buffer to hold the data to be read."]
    #[doc = " * `nbytes` - Number of bytes to read. Should not be larger than the size of p_buff."]
    #[doc = " * `flags` - Flags to control receive behavior."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were read, or -1 on error."]
    pub fn nrf_recv(
        sock: ctypes::c_int,
        p_buff: *mut ctypes::c_void,
        nbytes: size_t,
        flags: ctypes::c_int,
    ) -> ssize_t;
}
extern "C" {
    #[doc = "  Function for receiving datagram on a socket."]
    #[doc = ""]
    #[doc = " s API for receiving data from a socket. By default, this function will block, unless the"]
    #[doc = "          NRF_O_NONBLOCK socket option has been set, or NRF_MSG_DONTWAIT is passed as a flag."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to receive data from."]
    #[doc = " * `p_buff` - Buffer to hold the data to be read."]
    #[doc = " * `nbytes` - Number of bytes to read. Should not be larger than the size of p_buff."]
    #[doc = " * `flags` - Flags to control receive behavior."]
    #[doc = " * `p_cliaddr` - Socket address that will be set to the client's address."]
    #[doc = " * `p_addrlen` - The size of the p_cliaddr passed. Might be modified by the function."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were read, or -1 on error."]
    pub fn nrf_recvfrom(
        sock: ctypes::c_int,
        p_buff: *mut ctypes::c_void,
        nbytes: size_t,
        flags: ctypes::c_int,
        p_cliaddr: *mut ctypes::c_void,
        p_addrlen: *mut nrf_socklen_t,
    ) -> ssize_t;
}
extern "C" {
    #[doc = "  Function for reading data from a socket. See `nrf_recv()` for details."]
    #[doc = ""]
    #[doc = " * `sock` - The socket to receive data from."]
    #[doc = " * `p_buff` - Buffer to hold the data to be read."]
    #[doc = " * `nbytes` - Number of bytes to read. Should not be larger than the size of p_buff."]
    #[doc = ""]
    #[doc = " Returns The number of bytes that were read, or -1 on error."]
    pub fn nrf_read(sock: ctypes::c_int, p_buff: *mut ctypes::c_void, nbytes: size_t) -> ssize_t;
}
extern "C" {
    #[doc = "  Function for waiting for read, write, or exception events on a socket."]
    #[doc = ""]
    #[doc = " s Wait for a set of socket descriptors to be ready for reading, writing, or having"]
    #[doc = "          exceptions. The set of socket descriptors is configured before calling this function."]
    #[doc = "          This function will block until any of the descriptors in the set has any of the required"]
    #[doc = "          events. This function is mostly useful when using NRF_O_NONBLOCK or NRF_MSG_DONTWAIT"]
    #[doc = "          options to enable asynchronous operation."]
    #[doc = ""]
    #[doc = " * `nfds` - The highest socket descriptor value contained in the sets."]
    #[doc = " * `p_readset` - The set of descriptors for which to wait for read events. Set to NULL"]
    #[doc = "                             if not used."]
    #[doc = " * `p_writeset` - The set of descriptors for which to wait for write events. Set to NULL"]
    #[doc = "                             if not used."]
    #[doc = " * `p_exceptset` - The set of descriptors for which to wait for exception events. Set to"]
    #[doc = "                             NULL if not used."]
    #[doc = " * `p_timeout` - The timeout to use for select call. Set to NULL if waiting forever."]
    #[doc = ""]
    #[doc = " Returns The number of ready descriptors contained in the descriptor sets on success, or -1 on error."]
    pub fn nrf_select(
        nfds: ctypes::c_int,
        p_readset: *mut nrf_fd_set,
        p_writeset: *mut nrf_fd_set,
        p_exceptset: *mut nrf_fd_set,
        p_timeout: *const nrf_timeval,
    ) -> ctypes::c_int;
}
#[doc = "  @details This structure is used to describe which events to poll for a given socket. Which is then given as argument"]
#[doc = "           to nrf_poll()."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_pollfd {
    #[doc = " Socket handle."]
    pub fd: ctypes::c_int,
    #[doc = " Requested events, is a mask of events."]
    pub events: ctypes::c_short,
    #[doc = " Returned events, is a mask of events."]
    pub revents: ctypes::c_short,
}
#[test]
fn bindgen_test_layout_nrf_pollfd() {
    assert_eq!(
        ::core::mem::size_of::<nrf_pollfd>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_pollfd))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_pollfd>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_pollfd))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_pollfd>())).fd as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pollfd),
            "::",
            stringify!(fd)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_pollfd>())).events as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pollfd),
            "::",
            stringify!(events)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_pollfd>())).revents as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_pollfd),
            "::",
            stringify!(revents)
        )
    );
}
extern "C" {
    #[doc = "  Method to poll for events on one or more sockets."]
    #[doc = ""]
    #[doc = " * `p_fds` - An array of sockets, and respective for each socket that the caller polls for."]
    #[doc = "                         The occurred events per socket is returned in the revents field of nrf_pollfd structure."]
    #[doc = "                         Shall not be NULL."]
    #[doc = " * `nfds` - Positive number of sockets being polled for events."]
    #[doc = "                         Shall not be more than NRF_MODEM_MAX_SOCKET_COUNT."]
    #[doc = ""]
    #[doc = " * `timeout` - Timeout in milliseconds."]
    #[doc = "                         The methods waits for this time period for the events to occur on the sockets."]
    #[doc = ""]
    #[doc = " Returns A positive number less than or equal to nfds indicating sockets on which events occurred."]
    #[doc = "         0 indicates the timed out occurred and no file descriptors were ready."]
    #[doc = "         -1 on error, and errno indicates the reason for failure."]
    pub fn nrf_poll(p_fds: *mut nrf_pollfd, nfds: u32, timeout: ctypes::c_int) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for setting socket options for a given socket."]
    #[doc = ""]
    #[doc = " s The options are grouped by level, and the option value should be the expected for the"]
    #[doc = "          given option, and the lifetime must be longer than that of the socket."]
    #[doc = ""]
    #[doc = " * `sock` - The socket for which to set the option."]
    #[doc = " * `level` - The level or group to which the option belongs."]
    #[doc = " * `optname` - The name of the socket option."]
    #[doc = " * `p_optval` - The value to be stored for this option."]
    #[doc = " * `optlen` - The size of p_optval."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_setsockopt(
        sock: ctypes::c_int,
        level: ctypes::c_int,
        optname: ctypes::c_int,
        p_optval: *const ctypes::c_void,
        optlen: nrf_socklen_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for getting socket options for a given socket."]
    #[doc = ""]
    #[doc = " s The options are grouped by level, and the option value is the value described by the"]
    #[doc = "          option name."]
    #[doc = ""]
    #[doc = " * `sock` - The socket for which to set the option."]
    #[doc = " * `level` - The level or group to which the option belongs."]
    #[doc = " * `optname` - The name of the socket option."]
    #[doc = " * `p_optval` - Pointer to the storage for the option value."]
    #[doc = " * `p_optlen` - The size of p_optval. Can be modified to the actual size of p_optval."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_getsockopt(
        sock: ctypes::c_int,
        level: ctypes::c_int,
        optname: ctypes::c_int,
        p_optval: *mut ctypes::c_void,
        p_optlen: *mut nrf_socklen_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for binding a socket to an address and port."]
    #[doc = ""]
    #[doc = " s The provided address must be supported by the socket protocol family."]
    #[doc = ""]
    #[doc = " * `sock` - The socket descriptor to bind."]
    #[doc = " * `p_myaddr` - The address to bind this socket to."]
    #[doc = " * `addrlen` - The size of p_myaddr."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_bind(
        sock: ctypes::c_int,
        p_myaddr: *const ctypes::c_void,
        addrlen: nrf_socklen_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function to put the socket in listening mode for incoming connections."]
    #[doc = ""]
    #[doc = " s Once a socket is marked to be in the listening state, it remains a listening socket until closed."]
    #[doc = "          It is important to consider the backlog parameter, as it will affect how much memory your application will"]
    #[doc = "          use in the worst case."]
    #[doc = ""]
    #[doc = " * `sock` - The socket descriptor on which to set the listening options."]
    #[doc = " * `backlog` - The max length of the queue of pending connections. A value of 0 means"]
    #[doc = "                      infinite."]
    #[doc = ""]
    #[doc = " Returns 0 on success, or -1 on error."]
    pub fn nrf_listen(sock: ctypes::c_int, backlog: ctypes::c_int) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for waiting for the next client to connect."]
    #[doc = ""]
    #[doc = " s This function will block if there are no clients attempting to connect."]
    #[doc = ""]
    #[doc = " * `sock` - The socket descriptor to use for waiting on client connections."]
    #[doc = " * `p_cliaddr` - Socket address that will be set to the client's address."]
    #[doc = " * `p_addrlen` - The size of the p_cliaddr passed. Might be modified by the function."]
    #[doc = ""]
    #[doc = " Returns  A non-negative client descriptor on success, or -1 on error."]
    pub fn nrf_accept(
        sock: ctypes::c_int,
        p_cliaddr: *mut ctypes::c_void,
        p_addrlen: *mut nrf_socklen_t,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for converting a human-readable IP address to a form usable by the socket API."]
    #[doc = ""]
    #[doc = " s This function will convert a string form of addresses and encode it into a byte"]
    #[doc = "          array in network byte order."]
    #[doc = ""]
    #[doc = " @note    Currently not supporting mixed IPv4 and IPv6 format strings."]
    #[doc = ""]
    #[doc = " * `family` - Address family. NRF_AF_INET or NRF_AF_INET6."]
    #[doc = " * `p_src` - Null-terminated string containing the address to convert."]
    #[doc = " * `p_dst` - Pointer to a struct nrf_in_addr or nrf_in6_addr where the address will"]
    #[doc = "                     be stored."]
    #[doc = ""]
    #[doc = " Returns 1 on success, 0 if p_src does not contain a valid address,"]
    #[doc = "                       -1 and errno set in case of error."]
    pub fn nrf_inet_pton(
        family: ctypes::c_int,
        p_src: *const ctypes::c_char,
        p_dst: *mut ctypes::c_void,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = "  Function for converting an IP address to a human-readable string form."]
    #[doc = ""]
    #[doc = " s This function will decode the IP bytes from network byte order and convert"]
    #[doc = "          it to a string form of the address."]
    #[doc = ""]
    #[doc = " @note    Currently not supporting mixed IPv4 and IPv6 format strings."]
    #[doc = ""]
    #[doc = " * `family` - Address family. NRF_AF_INET or NRF_AF_INET6."]
    #[doc = " * `p_src` - Pointer to a struct nrf_in_addr or nrf_in6_addr containing the address to convert."]
    #[doc = " * `p_dst` - Pointer to a buffer where the string representation of the address will be stored."]
    #[doc = " * `size` - Size of the provided buffer in p_dst."]
    #[doc = ""]
    #[doc = " Returns Pointer to p_dst on success, NULL and errno set in case of error."]
    pub fn nrf_inet_ntop(
        family: ctypes::c_int,
        p_src: *const ctypes::c_void,
        p_dst: *mut ctypes::c_char,
        size: nrf_socklen_t,
    ) -> *const ctypes::c_char;
}
extern "C" {
    #[doc = " Function to resolve the host name into IPv4 and/or IPv6 addresses."]
    #[doc = ""]
    #[doc = " @note The memory pointed to by  * `pp_res` -  must be freed using"]
    #[doc = "       nrf_freeaddrinfo when the address is no longer needed"]
    #[doc = "       or before calling nrf_getaddrinfo again."]
    #[doc = ""]
    #[doc = " * `p_node` - Host name to resolve."]
    #[doc = " * `p_service` - Service to resolve."]
    #[doc = " * `p_hints` - Any hints to be used for the resolution."]
    #[doc = " * `pp_res` - Pointer to the linked list of resolved addresses if the procedure"]
    #[doc = "                        was successful."]
    #[doc = ""]
    #[doc = " Returns 0 if the procedure succeeds, else, an errno indicating the reason for failure."]
    pub fn nrf_getaddrinfo(
        p_node: *const ctypes::c_char,
        p_service: *const ctypes::c_char,
        p_hints: *const nrf_addrinfo,
        pp_res: *mut *mut nrf_addrinfo,
    ) -> ctypes::c_int;
}
extern "C" {
    #[doc = " Function for freeing the memory allocated for the result of nrf_getaddrinfo."]
    #[doc = ""]
    #[doc = " s When the linked list of resolved addresses created by nrf_getaddrinfo"]
    #[doc = "          is no longer needed, call this function to free the allocated memory."]
    #[doc = ""]
    #[doc = " * `p_res` - Pointer to the memory to be freed."]
    pub fn nrf_freeaddrinfo(p_res: *mut nrf_addrinfo);
}
extern "C" {
    #[doc = "  Set a secondary DNS address."]
    #[doc = ""]
    #[doc = " s The secondary DNS address is used automatically in case the primary DNS"]
    #[doc = "          address is unreachable, or if no DNS address is provided by the operator."]
    #[doc = "          The secondary DNS address does not override the primary DNS address."]
    #[doc = ""]
    #[doc = " * `family` - Address family."]
    #[doc = " * `in_addr` - An IPv4 or IPv6 address encoded in a nrf_in_addr or"]
    #[doc = "                      nrf_in6_addr structure, respectively."]
    #[doc = "                      Pass  * `NULL` -  to unset the secondary DNS address."]
    #[doc = ""]
    #[doc = " Returns int Zero on success, or an  error from @file nrf_modem/include/nrf_errno.h"]
    #[doc = "             otherwise."]
    pub fn nrf_setdnsaddr(family: ctypes::c_int, in_addr: *const ctypes::c_void) -> ctypes::c_int;
}
#[doc = "  Type definition of handle used for abort"]
#[doc = ""]
#[doc = " This handle could point to the thread or task to abort or any other"]
#[doc = " static memory required for aborting the on-going cryptographic routine(s)."]
pub type nrf_cc3xx_platform_abort_handle_t = *mut ctypes::c_void;
#[doc = "  Type definition of platform abort function"]
#[doc = ""]
#[doc = " @note This function pointer will be used when the nrf_cc3xx_platform"]
#[doc = "       and/or dependent libraries raises an error that can't be recovered."]
pub type nrf_cc3xx_platform_abort_fn_t =
    ::core::option::Option<unsafe extern "C" fn(reason: *const ctypes::c_char)>;
#[doc = "  Type definition of structure holding platform abort APIs"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_cc3xx_platform_abort_apis_t {
    #[doc = "!< Handle to use when crypto operations are aborted."]
    pub abort_handle: nrf_cc3xx_platform_abort_handle_t,
    #[doc = "!< Function to use when crypto operations are aborted."]
    pub abort_fn: nrf_cc3xx_platform_abort_fn_t,
}
#[test]
fn bindgen_test_layout_nrf_cc3xx_platform_abort_apis_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_cc3xx_platform_abort_apis_t>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_cc3xx_platform_abort_apis_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_cc3xx_platform_abort_apis_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_cc3xx_platform_abort_apis_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_abort_apis_t>())).abort_handle as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_abort_apis_t),
            "::",
            stringify!(abort_handle)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_abort_apis_t>())).abort_fn as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_abort_apis_t),
            "::",
            stringify!(abort_fn)
        )
    );
}
extern "C" {
    #[doc = "  Function to set platform abort APIs"]
    #[doc = ""]
    #[doc = " * `apis` - Pointer to platform APIs."]
    pub fn nrf_cc3xx_platform_set_abort(apis: *const nrf_cc3xx_platform_abort_apis_t);
}
extern "C" {
    #[doc = "  Function to initialize platform abort APIs"]
    #[doc = ""]
    #[doc = " @note This function must be called once before calling"]
    #[doc = " @ref nrf_cc3xx_platform_init or @ref nrf_cc3xx_platform_init_no_rng."]
    #[doc = ""]
    #[doc = " @note This function is not expected to be thread-safe."]
    pub fn nrf_cc3xx_platform_abort_init();
}
#[doc = "  Type definition of architecture neutral mutex type"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_cc3xx_platform_mutex {
    pub mutex: *mut ctypes::c_void,
    pub flags: u32,
}
#[test]
fn bindgen_test_layout_nrf_cc3xx_platform_mutex() {
    assert_eq!(
        ::core::mem::size_of::<nrf_cc3xx_platform_mutex>(),
        8usize,
        concat!("Size of: ", stringify!(nrf_cc3xx_platform_mutex))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_cc3xx_platform_mutex>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_cc3xx_platform_mutex))
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex>())).mutex as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex),
            "::",
            stringify!(mutex)
        )
    );
    assert_eq!(
        unsafe { &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex>())).flags as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex),
            "::",
            stringify!(flags)
        )
    );
}
#[doc = "  Type definition of architecture neutral mutex type"]
pub type nrf_cc3xx_platform_mutex_t = nrf_cc3xx_platform_mutex;
#[doc = "  Type definition of function pointer to initialize a mutex"]
#[doc = ""]
#[doc = " Calling this function pointer should initialize a previously uninitialized"]
#[doc = " mutex or do nothing if the mutex is already initialized."]
#[doc = ""]
#[doc = " @note Initialization may not imply memory allocation, as this can be done"]
#[doc = "       using static allocation through other APIs in the RTOS."]
#[doc = ""]
#[doc = " * `mutex` - Pointer to a mutex to initialize."]
pub type nrf_cc3xx_platform_mutex_init_fn_t =
    ::core::option::Option<unsafe extern "C" fn(mutex: *mut nrf_cc3xx_platform_mutex_t)>;
#[doc = "  Type definition of function pointer to free a mutex"]
#[doc = ""]
#[doc = " Calling this function pointer should free a mutex."]
#[doc = ""]
#[doc = " @note If the RTOS does not provide an API to free the mutex it is advised"]
#[doc = "       to reset the mutex to an initialized state with no owner."]
#[doc = ""]
#[doc = " * `mutex` - Pointer to a mutex to free."]
pub type nrf_cc3xx_platform_mutex_free_fn_t =
    ::core::option::Option<unsafe extern "C" fn(mutex: *mut nrf_cc3xx_platform_mutex_t)>;
#[doc = "  Type definition of function pointer to lock a mutex"]
#[doc = ""]
#[doc = " Calling this function pointer should lock a mutex."]
#[doc = ""]
#[doc = " * `mutex` - Pointer to a mutex to lock."]
pub type nrf_cc3xx_platform_mutex_lock_fn_t = ::core::option::Option<
    unsafe extern "C" fn(mutex: *mut nrf_cc3xx_platform_mutex_t) -> ctypes::c_int,
>;
#[doc = "  Type definition of function pointer to unlock a mutex"]
#[doc = ""]
#[doc = " Calling this function pointer should unlock a mutex."]
#[doc = ""]
#[doc = " * `mutex` - Pointer to a mutex to unlock."]
pub type nrf_cc3xx_platform_mutex_unlock_fn_t = ::core::option::Option<
    unsafe extern "C" fn(mutex: *mut nrf_cc3xx_platform_mutex_t) -> ctypes::c_int,
>;
#[doc = " Type definition of structure holding platform mutex APIs"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_cc3xx_platform_mutex_apis_t {
    pub mutex_init_fn: nrf_cc3xx_platform_mutex_init_fn_t,
    pub mutex_free_fn: nrf_cc3xx_platform_mutex_free_fn_t,
    pub mutex_lock_fn: nrf_cc3xx_platform_mutex_lock_fn_t,
    pub mutex_unlock_fn: nrf_cc3xx_platform_mutex_unlock_fn_t,
}
#[test]
fn bindgen_test_layout_nrf_cc3xx_platform_mutex_apis_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_cc3xx_platform_mutex_apis_t>(),
        16usize,
        concat!("Size of: ", stringify!(nrf_cc3xx_platform_mutex_apis_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_cc3xx_platform_mutex_apis_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_cc3xx_platform_mutex_apis_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex_apis_t>())).mutex_init_fn as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex_apis_t),
            "::",
            stringify!(mutex_init_fn)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex_apis_t>())).mutex_free_fn as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex_apis_t),
            "::",
            stringify!(mutex_free_fn)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex_apis_t>())).mutex_lock_fn as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex_apis_t),
            "::",
            stringify!(mutex_lock_fn)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutex_apis_t>())).mutex_unlock_fn as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutex_apis_t),
            "::",
            stringify!(mutex_unlock_fn)
        )
    );
}
#[doc = "  Type definition of structure to platform hw mutexes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nrf_cc3xx_platform_mutexes_t {
    pub sym_mutex: *mut ctypes::c_void,
    pub asym_mutex: *mut ctypes::c_void,
    pub rng_mutex: *mut ctypes::c_void,
    pub reserved: *mut ctypes::c_void,
    pub power_mutex: *mut ctypes::c_void,
}
#[test]
fn bindgen_test_layout_nrf_cc3xx_platform_mutexes_t() {
    assert_eq!(
        ::core::mem::size_of::<nrf_cc3xx_platform_mutexes_t>(),
        20usize,
        concat!("Size of: ", stringify!(nrf_cc3xx_platform_mutexes_t))
    );
    assert_eq!(
        ::core::mem::align_of::<nrf_cc3xx_platform_mutexes_t>(),
        4usize,
        concat!("Alignment of ", stringify!(nrf_cc3xx_platform_mutexes_t))
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutexes_t>())).sym_mutex as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutexes_t),
            "::",
            stringify!(sym_mutex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutexes_t>())).asym_mutex as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutexes_t),
            "::",
            stringify!(asym_mutex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutexes_t>())).rng_mutex as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutexes_t),
            "::",
            stringify!(rng_mutex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutexes_t>())).reserved as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutexes_t),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::core::ptr::null::<nrf_cc3xx_platform_mutexes_t>())).power_mutex as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(nrf_cc3xx_platform_mutexes_t),
            "::",
            stringify!(power_mutex)
        )
    );
}
extern "C" {
    #[doc = "  Function to set platform mutex APIs and mutexes"]
    #[doc = ""]
    #[doc = " * `apis` - Structure holding the mutex APIs."]
    #[doc = " * `mutexes` - Structure holding the mutexes."]
    pub fn nrf_cc3xx_platform_set_mutexes(
        apis: *const nrf_cc3xx_platform_mutex_apis_t,
        mutexes: *const nrf_cc3xx_platform_mutexes_t,
    );
}
extern "C" {
    #[doc = "  Function to initialize RTOS thread-safe mutexes"]
    #[doc = ""]
    #[doc = " This function must be implemented to set the platform mutex APIS,"]
    #[doc = " and platform mutexes."]
    #[doc = ""]
    #[doc = " @note This function must be called once before calling"]
    #[doc = " @ref nrf_cc3xx_platform_init or @ref nrf_cc3xx_platform_init_no_rng."]
    #[doc = ""]
    #[doc = " @note This function is not expected to be thread-safe."]
    pub fn nrf_cc3xx_platform_mutex_init();
}
extern "C" {
    #[doc = " Function to generate entropy using Arm CryptoCell cc3xx"]
    #[doc = ""]
    #[doc = " This API corresponds to mbedtls_hardware_poll. It provides TRNG using"]
    #[doc = " the Arm CryptoCell cc3xx hardware accelerator."]
    #[doc = ""]
    #[doc = " @note This API is only usable if @ref nrf_cc3xx_platform_init was run"]
    #[doc = "       prior to calling it."]
    #[doc = ""]
    #[doc = " * `buffer` - Pointer to buffer to hold the entropy data."]
    #[doc = " * `length` - Length of the buffer to fill with entropy data."]
    #[doc = " * `olen` - Pointer to variable that will hold the length of"]
    #[doc = "                      generated entropy."]
    #[doc = ""]
    #[doc = " Returns 0 on success"]
    #[doc = " Returns Any other error code returned from mbedtls_hardware_poll"]
    pub fn nrf_cc3xx_platform_entropy_get(
        buffer: *mut u8,
        length: size_t,
        olen: *mut size_t,
    ) -> ctypes::c_int;
}