2023-05-03 14:01:32 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* eth_tx_iface.hpp
|
|
|
|
|
|
*
|
2024-02-21 10:41:56 +03:00
|
|
|
|
* Created on: 13 мар. 2023 г.
|
2023-05-03 14:01:32 +03:00
|
|
|
|
* Author: sychev
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FREE_RTOS_ETHERNET_ETH_TX_FLOW_IFACE_HPP_
|
|
|
|
|
|
#define FREE_RTOS_ETHERNET_ETH_TX_FLOW_IFACE_HPP_
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
2023-06-26 18:22:30 +03:00
|
|
|
|
#include "free_rtos/ethernet/eth_types.h"
|
|
|
|
|
|
#include "free_rtos/handler_store/handler_store.hpp"
|
2023-05-03 14:01:32 +03:00
|
|
|
|
|
2023-10-24 14:02:04 +03:00
|
|
|
|
struct TxFlowHandlerArgs : public HandlerArgs {
|
|
|
|
|
|
TEthMacPorts port_id;
|
|
|
|
|
|
Handler * stack_handler;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2023-05-03 14:01:32 +03:00
|
|
|
|
class EthTxFlowIface {
|
|
|
|
|
|
public:
|
|
|
|
|
|
virtual bool send(TEthMacPorts port_id, uint8_t * p_data, uint32_t len) = 0;
|
2023-10-24 14:02:04 +03:00
|
|
|
|
virtual bool send(TxFlowHandlerArgs& handlerArgs, uint32_t numScatterSegments) = 0;
|
2023-05-03 14:01:32 +03:00
|
|
|
|
virtual ~EthTxFlowIface(){}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FREE_RTOS_ETHERNET_ETH_TX_FLOW_IFACE_HPP_ */
|