<commit_before>#pragma once

#include "JDKSAvdeccWorld.h"


namespace JDKSAvdecc {


/// Base clase for sending or receiving raw ethernet frames
class NetIO {
public:
    virtual ~NetIO() {}

    /// Do any post-constructor initialization
    virtual void Initialize();

    /// Poll incoming data for raw ethernet frame
    /// Returns length of entire frame received, or 0 if none.
    /// data will contain entire raw ethernet frame
    virtual uint16_t ReceiveRawNet(uint8_t *data,
                                   uint16_t max_len ) = 0;

    /// Send raw etherent frame.
    virtual bool SendRawNet(jdksavdecc_eui48 const *dest_mac,
                            uint8_t const *data,
                            uint16_t len ) = 0;

};

#ifndef __AVR__

class NetIODummy {
public:
    NetIODummy() {}
    virtual ~NetIODummy() {}

    virtual void Initialize();

    virtual uint16_t ReceiveRawNet(uint8_t *data,
                                   uint16_t max_len ) {
        return 0;
    }


    virtual bool SendRawNet(jdksavdecc_eui48 const *dest_mac,
                            uint8_t const *data,
                            uint16_t len )
        std::cout << __PRETTY_FUNCTION__ << ":" << std::endl;
        std::cout << "dest_mac" << ":" << std::endl;
        for( uint16_t i=0; i<sizeof(dest_mac->values); ++i ) {
            std::cout << std::hex << dest_mac->values[i] << " ";
        }
        std::cout << std::endl;
        std::cout << "data" << ":" << std::endl;
        for( uint16_t i=0; i<len; ++i ) {
            std::cout << std::hex << data[i] << " ";
        }
        std::cout << std::endl;
    }
};

#endif

}<commit_msg>add getmac address, remove dummy<commit_after>#pragma once

#include "JDKSAvdeccWorld.h"


namespace JDKSAvdecc {


/// Base clase for sending or receiving raw ethernet frames
class NetIO {
public:
    virtual ~NetIO() {}

    /// Do any post-constructor initialization
    virtual void Initialize();

    virtual jdksavdecc_eui48 const &GetMacAddress() const = 0;

    /// Poll incoming data for raw ethernet frame
    /// Returns length of entire frame received, or 0 if none.
    /// data will contain entire raw ethernet frame
    virtual uint16_t ReceiveRawNet(uint8_t *data,
                                   uint16_t max_len ) = 0;

    /// Send raw etherent frame.
    virtual bool SendRawNet(jdksavdecc_eui48 const *dest_mac,
                            uint8_t const *data,
                            uint16_t len ) = 0;

};

}
{'fraction_non_alphanumeric': 0.10817307692307693, 'fraction_numerical': 0.01842948717948718, 'mean_word_length': 1.9761620977353993, 'pattern_counts': {'":': 3, '<': 39, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5170110', 'n_tokens_mistral': 806, 'n_tokens_neox': 753, 'n_words': 215}