26#ifndef BOARD_PICGenios_H
27#define BOARD_PICGenios_H
29#include "../devices/lcd_hd44780.h"
30#include "../devices/mi2c_24CXXX.h"
31#include "../devices/rtc_ds1307.h"
32#include "../devices/swbounce.h"
33#include "bsim_picsim.h"
35#define BOARD_PICGenios_Name "PICGenios"
39 unsigned char p_BT[7];
41 unsigned char p_KEY[12];
44 unsigned char active[2];
68 unsigned char sda, sck;
83 char mi2c_tmp_name[200];
95 std::string
GetName(
void)
override {
return BOARD_PICGenios_Name; };
96 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
99 void Draw(
void)
override;
102 return "PIC16F1789,PIC16F1939,PIC16F777,PIC16F877A,PIC16F887,PIC18F452,PIC18F4520,PIC18F4550,PIC18F45K50,"
103 "PIC18F4580,PIC18F4620,PIC18F47K40,";
105 int MInit(
const char* processor,
const char* fname,
float freq)
override;
106 void Reset(
void)
override;
108 void EvMouseMove(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
109 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
110 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
111 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
112 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
117 unsigned short GetInputId(
char* name)
override;
119 void board_Event(
const char* controlname)
override;
120 void SetScale(
double scale)
override;
Definition bsim_picsim.h:34
Definition board_PICGenios.h:37
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_PICGenios.h:96
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_PICGenios.cc:1978
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_PICGenios.cc:926
void Draw(void) override
Called ever 100ms to draw board.
Definition board_PICGenios.cc:407
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_PICGenios.cc:2178
void EvMouseMove(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PICGenios.cc:1469
int MInit(const char *processor, const char *fname, float freq) override
board microcontroller init
Definition board_PICGenios.cc:347
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_PICGenios.cc:2432
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_PICGenios.cc:2470
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_PICGenios.cc:2066
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PICGenios.cc:1785
void Reset(void) override
Reset board status.
Definition board_PICGenios.cc:1299
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_PICGenios.cc:2411
void board_Event(const char *controlname) override
Called when window side controls are activated.
Definition board_PICGenios.cc:2540
void SetScale(double scale) override
Set board draw scale.
Definition board_PICGenios.cc:364
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_PICGenios.cc:1895
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_PICGenios.cc:1374
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_PICGenios.h:95
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_PICGenios.h:101
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PICGenios.cc:1489
int MDumpMemory(const char *mfname) override
board microcontroller save non volatile memory to hex file
Definition board_PICGenios.cc:389
void EvOnShow(void) override
Event on the board.
Definition board_PICGenios.cc:2061
Definition lcd_hd44780.h:67
Definition mi2c_24CXXX.h:28
Definition rtc_ds1307.h:29