Commit b309822e authored by Florian Grandel's avatar Florian Grandel Committed by Carles Cufi
Browse files

samples: net: wpanusb: document endianness



The WPAN-USB sample did not document endianness of some user space
variables. As the IEEE 802.15.4 stack uses attributes in several
different encodings, the endianness should be documented.

Signed-off-by: default avatarFlorian Grandel <jerico.dev@gmail.com>
parent 34999a8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ static uint8_t slip_buf[1 + 2 * CONFIG_NET_BUF_DATA_SIZE];
static struct ieee802154_radio_api *radio_api;
static const struct device *const ieee802154_dev =
	DEVICE_DT_GET(DT_CHOSEN(zephyr_ieee802154));
uint8_t mac_addr[8];
uint8_t mac_addr[8]; /* in little endian */

/* UART device */
static const struct device *const uart_dev =
+3 −3
Original line number Diff line number Diff line
@@ -28,13 +28,13 @@ struct set_channel {
} __packed;

struct set_short_addr {
	uint16_t short_addr;
	uint16_t short_addr; /* in CPU byte order */
} __packed;

struct set_pan_id {
	uint16_t pan_id;
	uint16_t pan_id; /* in CPU byte order */
} __packed;

struct set_ieee_addr {
	uint64_t ieee_addr;
	uint64_t ieee_addr; /* big endian */
} __packed;