1 /* ieee802154_uart_pipe.h - Private header for UART PIPE fake radio driver */ 2 3 /* 4 * Copyright (c) 2016 Intel Corporation. 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_ 10 #define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_ 11 12 #define UART_PIPE_RADIO_15_4_FRAME_TYPE 0xF0 13 14 struct upipe_context { 15 struct net_if *iface; 16 uint8_t mac_addr[8]; 17 bool stopped; 18 /** RX specific attributes */ 19 uint8_t uart_pipe_buf[1]; 20 bool rx; 21 uint8_t rx_len; 22 uint8_t rx_off; 23 uint8_t rx_buf[IEEE802154_MAX_PHY_PACKET_SIZE]; 24 }; 25 26 #endif /* ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_ */ 27