2023-05-03 14:01:32 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* eth_ip_iface.hpp
|
|
|
|
|
|
*
|
|
|
|
|
|
* Created on: 15 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
|
|
|
|
|
* Author: sychev
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FREE_RTOS_ETHERNET_IP_ETH_IP_IFACE_HPP_
|
|
|
|
|
|
#define FREE_RTOS_ETHERNET_IP_ETH_IP_IFACE_HPP_
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
2023-06-26 18:58:31 +03:00
|
|
|
|
#include "ethernet/eth_types.h"
|
|
|
|
|
|
#include "ethernet/eth_frame.h"
|
2023-05-03 14:01:32 +03:00
|
|
|
|
|
|
|
|
|
|
class EthIpIface {
|
|
|
|
|
|
public:
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
*/
|
|
|
|
|
|
virtual bool send(TEthMacPorts port_id, uint32_t dest_ip, uint8_t prot_id, TEthPkt& pkt) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
virtual uint32_t getSelfIpAddr() = 0;
|
|
|
|
|
|
|
|
|
|
|
|
virtual ~EthIpIface() {};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FREE_RTOS_ETHERNET_IP_ETH_IP_IFACE_HPP_ */
|