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"
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;
51 unsigned short GetInputId(
char* name)
override;
56 unsigned char pins[6];
60 unsigned int sts[8][4];
Board class.
Definition board.h:111
Definition other_ETH_w5500.h:34
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition other_ETH_w5500.cc:330
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:382
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition other_ETH_w5500.cc:340
void Process(void) override
Called every CPU step.
Definition other_ETH_w5500.cc:362
void PostProcess(void) override
Called every end of CPU process.
Definition other_ETH_w5500.cc:392
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition other_ETH_w5500.cc:286
void PreProcess(void) override
Called every start of CPU process.
Definition other_ETH_w5500.cc:358
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition other_ETH_w5500.cc:110
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition other_ETH_w5500.cc:349
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition other_ETH_w5500.cc:296
void Reset(void) override
Reset part status.
Definition other_ETH_w5500.cc:106
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:336
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition other_ETH_w5500.cc:322
PART class.
Definition part.h:49
Definition eth_w5500.h:196