-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.h
55 lines (40 loc) · 990 Bytes
/
options.h
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
/*
* Copyright (c) 2019 Nordic Semiconductor
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#ifndef _options_h_
#define _options_h_
#include <stdint.h>
#include <stdbool.h>
#include <netinet/in.h>
#include "dyn_nrfjprogdll.h"
struct options_t
{
uint32_t verbose;
bool ipv4_address_present;
struct in_addr ipv4_address;
bool ipv4_netmask_present;
struct in_addr ipv4_netmask;
bool ipv4_broadcast_present;
struct in_addr ipv4_broadcast;
bool ipv6_address_present;
struct in6_addr ipv6_address;
int ipv6_subnet_bits;
bool mac_addr_present;
uint8_t mac_addr[6];
int mtu;
const char *iface;
uint32_t snr;
device_family_t family;
uint32_t speed;
uint32_t rtt_cb_address;
const char* jlink_lib;
const char* nrfjprog_lib;
uint32_t poll_time_us;
bool no_rtt_retry;
const char* hang_file;
};
extern struct options_t options;
void parse_args(int argc, char* argv[]);
#endif