26#ifndef PART_ETH_W5500_H
27#define PART_ETH_W5500_H
29#include "../devices/eth_w5500.h"
30#include "../lib/part.h"
32#define PART_ETH_W5500_Name "ETH w5500"
34class cpart_ETH_w5500 :
public part {
36 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
37 cpart_ETH_w5500(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
40 void DrawOutput(
const unsigned int index)
override;
44 void Reset(
void)
override;
45 void OnMouseButtonPress(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
46 unsigned int state)
override;
52 unsigned short GetInputId(
char* name)
override;
57 unsigned char pins[6];
61 unsigned int sts[8][4];
Board class.
Definition board.h:114
Definition other_ETH_w5500.h:34
void OnMouseButtonPress(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition other_ETH_w5500.cc:395
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition other_ETH_w5500.cc:353
void Process(void) override
Called every CPU step.
Definition other_ETH_w5500.cc:375
void PostProcess(void) override
Called every end of CPU process.
Definition other_ETH_w5500.cc:405
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition other_ETH_w5500.cc:297
int ReadPreferences(std::string value) override
Called whe configuration file load preferences, return the number of preferences processed.
Definition other_ETH_w5500.cc:341
int PreferencesNumberFields(void) override
Return the number of fields in preferences.
Definition other_ETH_w5500.h:49
void PreProcess(void) override
Called every start of CPU process.
Definition other_ETH_w5500.cc:371
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition other_ETH_w5500.cc:109
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition other_ETH_w5500.cc:362
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition other_ETH_w5500.cc:307
void Reset(void) override
Reset part status.
Definition other_ETH_w5500.cc:105
std::string GetAboutInfo(void) override
Return the about information of part.
Definition other_ETH_w5500.h:36
void RegisterRemoteControl(void) override
Register remote control variables.
Definition other_ETH_w5500.cc:349
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition other_ETH_w5500.cc:333
part(const unsigned x, const unsigned y, const char *name, const char *type, board *pboard_, const int id_, const int fsize=8)
Called once on part creation.
Definition part.cc:30
Definition eth_w5500.h:196