![]() |
PICSimLab - Programmable IC Simulator Laboratory 0.9.2
PICSimLab - API
|
PART class. More...
#include <part.h>
Inherited by cpart_7s_display, cpart_7s_display_dec, cpart_ADXL345, cpart_Buzzer, cpart_CPU_DBG, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_LDR, cpart_MI2C_24CXXX, cpart_MPU6050, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_SignalGenerator, cpart_TEXT, cpart_UART, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_DBG, cpart_VCD_Dump_Mem, cpart_VCD_Dump_an, cpart_VCD_Play, cpart_bmp180, cpart_bmp280, cpart_dcmotor, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_dtfunc, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_lblock, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_lm35, cpart_ntc, cpart_pbuttons, cpart_pbuttons_an, cpart_pot, cpart_pot_r, cpart_rgb_led, cpart_servo, cpart_sht3x, cpart_step, cpart_switches, cpart_tempsys, and cpart_vterm.

Public Member Functions | |
| std::string | GetName (void) |
| Return the name of part. | |
| virtual std::string | GetHelpURL (void) |
| Return the help url of part. | |
| virtual std::string | GetAboutInfo (void)=0 |
| Return the about information of part. | |
| void | Draw (void) |
| Called ever 100ms to draw part. | |
| virtual void | DrawOutput (const unsigned int index)=0 |
| Called to draw every output. | |
| virtual void | PreProcess (void) |
| Called every start of CPU process. | |
| virtual void | Process (void) |
| Called every CPU step. | |
| virtual void | PostProcess (void) |
| Called every end of CPU process. | |
| virtual std::string | GetPictureFileName (void) |
| Return the filename of part picture. | |
| virtual std::string | GetMapFile (void) |
| Return the filename of part picture map. | |
| virtual std::string | GetPropertiesWindowFile (void) |
| Return the filename of properties window XML file. | |
| int | GetInputCount (void) |
| Get part input count. | |
| input_t * | GetInput (int n) |
| Get part input. | |
| int | GetOutputCount (void) |
| Get part output count. | |
| output_t * | GetOutput (int n) |
| Get part input. | |
| virtual void | Reset (void) |
| Reset part status. | |
| virtual void | Stop (void) |
| Stop part simulation. | |
| void | EvMouseButtonPress (unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| virtual void | OnMouseButtonPress (unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| void | EvMouseButtonRelease (unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| virtual void | OnMouseButtonRelease (unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| void | EvMouseMove (unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| virtual void | OnMouseMove (unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Event handler on the part. | |
| virtual void | EvKeyPress (unsigned int key, unsigned int mask) |
| Event handler on the part. | |
| virtual void | EvKeyRelease (unsigned int key, unsigned int mask) |
| Event handler on the part. | |
| virtual std::string | WritePreferences (void)=0 |
| Called to save part preferences in configuration file. | |
| virtual void | ReadPreferences (std::string value)=0 |
| Called whe configuration file load preferences. | |
| virtual unsigned short | GetInputId (char *name)=0 |
| return the input ids numbers of names used in input map | |
| virtual unsigned short | GetOutputId (char *name)=0 |
| return the output ids numbers of names used in output map | |
| virtual void | ConfigurePropertiesWindow (void)=0 |
| Called to configure the properties window. | |
| virtual void | ReadPropertiesWindow (void)=0 |
| Called when properties window close. | |
| virtual void | ComboChange (const char *controlname, std::string value) |
| Used by properties window combos. | |
| virtual void | SpinChange (const char *controlname, int value) |
| Used by properties window spin. | |
| virtual void | ButtonEvent (const char *controlname, unsigned int button, unsigned int x, unsigned int y, unsigned int state) |
| Used by windows of parts. | |
| virtual void | KeyEvent (const char *controlname, unsigned int keysym, unsigned int ukeysym, unsigned int state) |
| Used by windows of parts. | |
| virtual void | Event (const char *controlname) |
| Used by windows of parts. | |
| virtual void | filedialog_EvOnClose (int retId) |
| Used by properties window filedialogs. | |
| 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. | |
| void | Init (void) |
| Called once on part initialization. | |
| virtual void | PostInit (void) |
| Called once on part after initialization. | |
| virtual | ~part (void) |
| Called once on part destruction. | |
| int | GetBitmap (void) |
| Return the Bitmap of part. | |
| int | GetX (void) |
| Return X position of part. | |
| int | GetY (void) |
| Return Y position of part. | |
| void | SetX (int x) |
| Set X position of part. | |
| void | SetY (int y) |
| Set Y position of part. | |
| unsigned int | GetWidth (void) |
| Return width of part. | |
| unsigned int | GetHeight (void) |
| Return height of part. | |
| int | PointInside (int x, int y) |
| Return if point x,y is inside of part. | |
| void | RotateCoords (unsigned int *x, unsigned int *y) |
| Return coords x y rotated by orientation. | |
| virtual void | LoadPartImage (void) |
| Load Part Image. | |
| int | GetOrientation (void) |
| Return the orientation to draw. | |
| virtual void | SetOrientation (int orientation) |
| Set the orientation to draw. | |
| float | GetScale (void) |
| Return the orientation to draw. | |
| virtual void | SetScale (double scale) |
| Set the orientation to draw. | |
| int | GetId (void) |
| Get the part ID. | |
| void | SetId (int id_) |
| Set the part ID. | |
| unsigned char | GetUpdate (void) |
| Return if part need Draw update. | |
| void | SetUpdate (unsigned char upd) |
| Set part to Draw update. | |
| int | GetAlwaysUpdate (void) |
| Return if part need to be update every clock cycle. | |
| void | SetAlwaysUpdate (int sau) |
| Set if part need to be update every clock cycle. | |
| const int | GetPCWCount (void) |
| const PCWProp * | GetPCWProperties (void) |
| const int | GetPinCount (void) |
| unsigned char * | GetPins (void) |
| const int | GetPinCtrlCount (void) |
| const unsigned char * | GetPinsCtrl (void) |
Protected Member Functions | |
| virtual void | RegisterRemoteControl (void) |
| Register remote control variables. | |
| void | ReadMaps (void) |
| read maps | |
| int | PointInside (int x, int y, input_t input) |
| Return if point x,y is inside of input. | |
| void | SetPCWProperties (const PCWProp *pcwprop) |
| void | SetPCWComboWithPinNames (const char *combo_name, const unsigned char pin) |
| unsigned char | GetPWCComboSelectedPin (const char *combo_name) |
Protected Attributes | |
| int | id |
| part ID | |
| input_t | input [MAX_IDS] |
| input map elements | |
| input_t * | input_ids [MAX_IDS] |
| input map elements by id order | |
| output_t | output [MAX_IDS] |
| output map elements | |
| output_t * | output_ids [MAX_IDS] |
| output map elements by id order | |
| int | inputc |
| input map elements counter | |
| int | outputc |
| output map elements counter | |
| unsigned int | Height |
| Height of part. | |
| unsigned int | Width |
| Width of part. | |
| int | X |
| X position of part. | |
| int | Y |
| Y position of part. | |
| int | BitmapId |
| Internal Bitmap. | |
| unsigned int | refresh |
| redraw is needed | |
| int | Orientation |
| orientation to draw part | |
| float | Scale |
| scale to draw part | |
| unsigned int | Update |
| part need draw Update | |
| int | always_update |
| part need to be update every clock cycle | |
| std::string | Type |
| int | PinCount |
| int | PinCtrlCount |
| unsigned char * | Pins |
| unsigned char * | PinsCtrl |
| board * | pboard |
| int | Fsize |
Private Member Functions | |
| void | ReadInputMap (std::string fname) |
| Read the Input Map. | |
| void | ReadOutputMap (std::string fname) |
| Read the Output Map. | |
Private Attributes | |
| const PCWProp * | PCWProperties |
| int | PCWCount |
| std::string | Name |
PART class.
class definition of parts used in picsimlab spare parts window.
|
inlinevirtual |
Used by windows of parts.
Reimplemented in cpart_vterm.
|
inlinevirtual |
Used by properties window combos.
Reimplemented in cpart_keypad, cpart_Jumpers, cpart_lblock, cpart_7s_display, and cpart_LCD_ili9341.
|
pure virtual |
Called to configure the properties window.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
pure virtual |
Called to draw every output.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlinevirtual |
Used by windows of parts.
Reimplemented in cpart_vterm.
|
inlinevirtual |
Event handler on the part.
Reimplemented in cpart_CPU_DBG, cpart_gamepad, cpart_gamepad_an, and cpart_dtfunc.
|
inlinevirtual |
Event handler on the part.
Reimplemented in cpart_gamepad, cpart_gamepad_an, and cpart_dtfunc.
|
inlinevirtual |
Used by properties window filedialogs.
Reimplemented in cpart_MI2C_24CXXX, cpart_SDCard, and cpart_VCD_Play.
|
pure virtual |
Return the about information of part.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
pure virtual |
return the input ids numbers of names used in input map
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
virtual |
Return the filename of part picture map.
Reimplemented in cpart_VCD_Dump_DBG, cpart_keypad, cpart_pbuttons_an, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_7s_display, cpart_7s_display_dec, cpart_LCD_ili9341, cpart_VCD_Dump_an, and cpart_VCD_Dump_Mem.

|
pure virtual |
return the output ids numbers of names used in output map
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
virtual |
Return the filename of part picture.
Reimplemented in cpart_VCD_Dump_DBG, cpart_keypad, cpart_pbuttons_an, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_7s_display, cpart_7s_display_dec, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_VCD_Dump_an, and cpart_VCD_Dump_Mem.

|
inlinevirtual |
Used by windows of parts.
Reimplemented in cpart_vterm.
|
virtual |
Load Part Image.
Reimplemented in cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_switches, cpart_lblock, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_ws2812b, cpart_leds, cpart_servo, and cpart_TEXT.

|
inlinevirtual |
Event handler on the part.
Reimplemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_MI2C_24CXXX, cpart_SDCard, cpart_LCD_ili9341, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlinevirtual |
Event handler on the part.
Reimplemented in cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_LCD_ili9341, and cpart_SignalGenerator.
|
inlinevirtual |
Event handler on the part.
Reimplemented in cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fm50, cpart_gamepad, cpart_hcsr04, cpart_hx711, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_sht3x, cpart_LCD_ili9341, and cpart_SignalGenerator.
|
inlinevirtual |
Called once on part after initialization.
Reimplemented in cpart_gamepad, and cpart_TEXT.
|
inlinevirtual |
Called every end of CPU process.
Reimplemented in cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_fixedv, cpart_fm50, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_sht3x, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlinevirtual |
Called every start of CPU process.
Reimplemented in cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_gamepad, cpart_gamepad_an, cpart_hx711, cpart_MPU6050, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_ili9341, cpart_LCD_ssd1306, cpart_led_ws2812b, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlinevirtual |
Called every CPU step.
Reimplemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_MPU6050, cpart_pbuttons, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
pure virtual |
Called whe configuration file load preferences.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
pure virtual |
Called when properties window close.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlineprotectedvirtual |
Register remote control variables.
Reimplemented in cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_dht11, cpart_dht22, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_Jumpers, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.
|
inlinevirtual |
Reset part status.
Reimplemented in cpart_ADXL345, cpart_dht11, cpart_dht22, cpart_ds18b20, cpart_gamepad_an, cpart_hx711, cpart_LDR, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_switches, cpart_ETH_w5500, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_lblock, cpart_SDCard, cpart_UART, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_dtfunc, and cpart_vterm.
|
inlinevirtual |
Used by properties window spin.
Reimplemented in cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_switches, cpart_lblock, and cpart_leds.
|
inlinevirtual |
Stop part simulation.
Reimplemented in cpart_Buzzer.
|
pure virtual |
Called to save part preferences in configuration file.
Implemented in cpart_CPU_DBG, cpart_VCD_Dump_DBG, cpart_ADXL345, cpart_bmp180, cpart_bmp280, cpart_dht11, cpart_dht22, cpart_ds1621, cpart_ds18b20, cpart_encoder, cpart_fixedv, cpart_fm50, cpart_gamepad, cpart_gamepad_an, cpart_hcsr04, cpart_hx711, cpart_keypad, cpart_LDR, cpart_lm35, cpart_MPU6050, cpart_ntc, cpart_pot, cpart_pot_r, cpart_pbuttons, cpart_pbuttons_an, cpart_sht3x, cpart_switches, cpart_ETH_w5500, cpart_IO_74xx573, cpart_IO_74xx595, cpart_IO_MCP23017, cpart_IO_MCP23S17, cpart_IO_MM74C922, cpart_IO_PCF8574, cpart_Jumpers, cpart_lblock, cpart_MI2C_24CXXX, cpart_RTC_ds1307, cpart_RTC_pfc8563, cpart_SDCard, cpart_tempsys, cpart_UART, cpart_7s_display, cpart_7s_display_dec, cpart_Buzzer, cpart_dcmotor, cpart_LCD_hd44780, cpart_LCD_ili9341, cpart_LCD_pcd8544, cpart_LCD_pcf8833, cpart_LCD_ssd1306, cpart_led_matrix, cpart_led_ws2812b, cpart_leds, cpart_rgb_led, cpart_servo, cpart_step, cpart_dtfunc, cpart_SignalGenerator, cpart_TEXT, cpart_VCD_Dump, cpart_VCD_Dump2, cpart_VCD_Dump_an, cpart_VCD_Dump_Mem, cpart_VCD_Play, and cpart_vterm.