29#include "bsim_picsim.h"
31#include "../devices/lcd_hd44780.h"
32#include "../devices/mi2c_24CXXX.h"
33#include "../devices/rtc_pfc8563.h"
35#define BOARD_K16F_Name "K16F"
39 unsigned char p_KEY[12];
50 unsigned char sda, sck;
51 char mi2c_tmp_name[200];
57 std::string
GetName(
void)
override {
return BOARD_K16F_Name; };
58 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
61 void Draw(
void)
override;
64 int MInit(
const char* processor,
const char* fname,
float freq)
override;
65 void Reset(
void)
override;
67 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
68 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
69 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
70 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
75 unsigned short GetInputId(
char* name)
override;
Definition bsim_picsim.h:34
Definition board_K16F.h:37
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_K16F.cc:931
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_K16F.cc:728
int MDumpMemory(const char *mfname) override
board microcontroller save non volatile memory to hex file
Definition board_K16F.cc:125
void Draw(void) override
Called ever 100ms to draw board.
Definition board_K16F.cc:143
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_K16F.cc:780
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_K16F.cc:936
int MInit(const char *processor, const char *fname, float freq) override
board microcontroller init
Definition board_K16F.cc:108
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_K16F.cc:656
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_K16F.h:57
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_K16F.cc:946
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_K16F.cc:493
void EvOnShow(void) override
Event on the board.
Definition board_K16F.cc:831
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_K16F.h:63
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_K16F.cc:526
void Reset(void) override
Reset board status.
Definition board_K16F.cc:445
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_K16F.cc:259
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_K16F.h:58
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_K16F.cc:836
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_K16F.cc:879
Definition lcd_hd44780.h:67
Definition mi2c_24CXXX.h:28
Definition rtc_pfc8563.h:29