zephyr/drivers/ieee802154/ieee802154_uart_pipe.h
Tomasz Bursztyka af85c8a11d drivers/ieee802154: Use net_pkt API for reading data on upipe driver
Some legacy left overs.
Just simplifying how to read data into a net_pkt.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2024-03-01 15:33:53 +01:00

27 lines
635 B
C

/* ieee802154_uart_pipe.h - Private header for UART PIPE fake radio driver */
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_
#define UART_PIPE_RADIO_15_4_FRAME_TYPE 0xF0
struct upipe_context {
struct net_if *iface;
uint8_t mac_addr[8];
bool stopped;
/** RX specific attributes */
uint8_t uart_pipe_buf[1];
bool rx;
uint8_t rx_len;
uint8_t rx_off;
uint8_t rx_buf[IEEE802154_MAX_PHY_PACKET_SIZE];
};
#endif /* ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_ */