summaryrefslogtreecommitdiff
path: root/cesar/maximus/processors/inc/EthernetProcessor.h
blob: 01ef68bbcb2dec3ba5becc5655c56f07e3a3b8bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef maximus_processors_inc_ethernetprocessor_h
#define maximus_processors_inc_ethernetprocessor_h
/* Maximus project {{{
 *
 * Copyright (C) 2012 MStar Semiconductor
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    maximus/processors/inc/EthernetProcessor.h
 * \ingroup maximus_processors
 *
 */
#include "maximus/common/types.h"
#include "maximus/processors/inc/Processor.h"
#include <string>

class EthernetProcessor : public Processor
{
public:

    EthernetProcessor (
        SciServer &ref1,
        MaximusCallBack &ref2);

    virtual ~EthernetProcessor ();

    void dispatchMsgProc (
        SciMsg *msg_rx);

    SciMsg *create_sci_msg (
        struct Sci_Msg_Header &header,
        unsigned char *buffer);

    void sendEther (
        std::string &payload,
        Ethernet_Type type,
        Sci_Msg_Station_Id sta_id);

};

#endif // maximus_processors_inc_ethernetprocessor_h