2016-08-17 22:48:36 +08:00
|
|
|
/* ieee802154_uart_pipe.h - Private header for UART PIPE fake radio driver */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-08-17 22:48:36 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_
|
|
|
|
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_
|
2016-08-17 22:48:36 +08:00
|
|
|
|
|
|
|
#define UART_PIPE_RADIO_15_4_FRAME_TYPE 0xF0
|
|
|
|
|
|
|
|
struct upipe_context {
|
|
|
|
struct net_if *iface;
|
2017-04-21 22:27:50 +08:00
|
|
|
u8_t mac_addr[8];
|
2016-08-17 22:48:36 +08:00
|
|
|
bool stopped;
|
|
|
|
/** RX specific attributes */
|
2017-04-21 22:27:50 +08:00
|
|
|
u8_t uart_pipe_buf[1];
|
2016-08-17 22:48:36 +08:00
|
|
|
bool rx;
|
2017-04-21 22:27:50 +08:00
|
|
|
u8_t rx_len;
|
|
|
|
u8_t rx_off;
|
|
|
|
u8_t rx_buf[127];
|
2016-08-17 22:48:36 +08:00
|
|
|
};
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_IEEE802154_IEEE802154_UART_PIPE_H_ */
|