sitara_depot/components/free_rtos/ethernet_ip/eth_icmp.hpp

31 lines
618 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* eth_icmp.hpp
*
* Created on: 14 мар. 2023 г.
* Author: sychev
*/
#ifndef FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
#define FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_
#include "free_rtos/handler_store/handler.hpp"
#include <cstdint>
#include <cstddef>
namespace free_rtos {
class EthIcmp : public Handler {
public:
virtual int32_t Process(uint8_t * p_data, uint32_t len) override;
virtual uint16_t Sender(HandlerArgs& handlerArgs, size_t scatter_segment) override;
uint32_t getStat() {return rx_cnt_;};
private:
uint32_t rx_cnt_ = 0;
};
}
#endif /* FREE_RTOS_ETHERNET_IP_ETH_ICMP_HPP_ */