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: Florian Grandel <jerico.dev@gmail.com>
This commit is contained in:
Florian Grandel 2022-10-01 10:39:51 +02:00 committed by Carles Cufí
parent 34999a8b3e
commit b309822e8e
2 changed files with 4 additions and 4 deletions

View file

@ -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 =

View file

@ -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;