PICSimLab - Programmable IC Simulator Laboratory 0.9.3
PICSimLab - API
Loading...
Searching...
No Matches
board.h
1/* ########################################################################
2
3 PICSimLab - Programmable IC Simulator Laboratory
4
5 ########################################################################
6
7 Copyright (c) : 2010-2026 Luis Claudio GambĂ´a Lopes <lcgamboa@yahoo.com>
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23 For e-mail suggestions : lcgamboa@yahoo.com
24 ######################################################################## */
25
26#ifndef BOARD_H
27#define BOARD_H
28
29#include <picsim/picsim.h>
30#include <stdint.h>
31
32#include <stdlib.h>
33#include <string.h>
34#include <string>
35
36#define INCOMPLETE \
37 printf("Incomplete: %s -> %s :%i\n", __func__, __FILE__, __LINE__); \
38 exit(-1);
39
40enum { ARCH_P16, ARCH_P16E, ARCH_P18, ARCH_AVR8, ARCH_STM32, ARCH_STM8, ARCH_C51, ARCH_Z80, ARCH_ESP32, ARCH_UNKNOWN };
41
46typedef struct {
47 float x1;
48 float x2;
49 float y1;
50 float y2;
51 float cx;
52 float cy;
53 char name[10];
54 unsigned short id;
55 void* status;
56 unsigned char* update;
57 union {
58 unsigned char value;
59 short value_s;
60 float value_f;
61 };
62} input_t;
63
68typedef struct {
69 float x1;
70 float x2;
71 float y1;
72 float y2;
73 float cx;
74 float cy;
75 float r;
76 char name[10];
77 unsigned short id;
78 void* status;
79 unsigned char update;
80 union {
81 unsigned char value;
82 short value_s;
83 float value_f;
84 };
85} output_t;
86
87#define MAX_TIMERS 256
88
89#define MAX_IDS 128
90
91#define INVALID_ID (MAX_IDS - 1)
92
93#define IOINIT 110 // IOINIT is the max CPU pins number
94#define MAX_PIN_COUNT 256 // MAX_PIN_COUNT- IOINIT is the max spare parts extra pins number
95
100typedef struct {
101 uint32_t Timer;
102 uint32_t Reload;
103 void* Arg;
104 void (*Callback)(void* arg);
105 int Enabled;
106 double Tout; // in us
107} Timers_t;
108
114class board {
115public:
119 virtual void Draw(void) = 0;
120
124 virtual void Run_CPU(void) = 0;
125
129 virtual std::string GetSupportedDevices(void) = 0;
130
134 virtual std::string GetSupportedIDEs(void) { return "N/A,"; };
135
139 virtual std::string GetPictureFileName(void);
140
144 virtual std::string GetMapFile(void);
145
149 virtual void Reset(void) = 0;
150
154 virtual void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) = 0;
155
159 virtual void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) = 0;
160
164 virtual void EvMouseMove(unsigned int button, unsigned int x, unsigned int y, unsigned int state) {};
165
169 virtual void EvKeyPress(unsigned int key, unsigned int mask) = 0;
170
174 virtual void EvKeyRelease(unsigned int key, unsigned int mask) = 0;
175
179 virtual void EvOnShow(void);
180
184 virtual void EvThreadRun(void) {};
185
189 virtual void RefreshStatus(void);
190
194 virtual void WritePreferences(void) {};
195
199 virtual void ReadPreferences(char* name, char* value) {};
200
204 virtual unsigned short GetInputId(char* name) = 0;
205
209 virtual unsigned short GetOutputId(char* name) = 0;
210
214 virtual void board_Event(const char* controlname) {};
215
219 virtual void board_ButtonEvent(const char* controlname, unsigned int button, unsigned int x, unsigned int y,
220 unsigned int state) {};
221
225 board(void);
226
230 virtual ~board(void);
231
235 void SetUseOscilloscope(int uo);
236
240 void SetUseSpareParts(int sp);
241
245 int GetUseOscilloscope(void);
246
250 int GetUseSpareParts(void);
251
255 virtual std::string GetName(void) = 0;
256
260 void SetProcessorName(std::string proc);
261
265 std::string GetProcessorName(void);
266
270 int GetInputCount(void);
271
275 input_t* GetInput(int n);
276
280 int GetOutputCount(void);
281
285 output_t* GetOutput(int n);
286
290 virtual int DebugInit(int dtyppe) = 0;
291
295 virtual std::string GetDebugName(void) = 0;
296
300 virtual std::string GetAboutInfo(void) = 0;
301
305 virtual void DebugLoop(void) = 0;
306
310 virtual int CpuInitialized(void) = 0;
311
315 virtual void MSetSerial(const char* port) = 0;
316
320 virtual int MInit(const char* processor, const char* fname, float freq) = 0;
321
325 virtual void MEnd(void) = 0;
326
330 virtual int MGetArchitecture(void) = 0;
331
335 virtual std ::string GetSimBackends(void) = 0;
336
340 virtual std ::string GetDebuggers(void) = 0;
341
345 virtual int MDumpMemory(const char* fname) = 0;
346
350 virtual void MEraseFlash(void) = 0;
351
355 virtual void MSetFreq(float freq) = 0;
356
360 virtual float MGetFreq(void) = 0;
361
365 virtual void MSetVCC(float vcc) = 0;
366
370 virtual float MGetVCC(void) = 0;
371
375 virtual float MGetInstClockFreq(void) = 0;
376
381
385 virtual int MGetPinCount(void) = 0;
386
390 virtual std::string MGetPinName(int pin) = 0;
391
395 virtual void MSetPin(int pin, unsigned char value) = 0;
396
400 virtual void MSetPinDOV(int pin, unsigned char ovalue) = 0;
401
405 virtual void MSetAPin(int pin, float value) = 0;
406
410 virtual void MSetPinOAV(int pin, float value) = 0;
411
415 virtual unsigned char MGetPin(int pin) = 0;
416
420 virtual const picpin* MGetPinsValues(void) = 0;
421
425 virtual float* MGetPinOAVPtr(int pin) = 0;
426
430 virtual void MStep(void) = 0;
431
435 virtual void MStepResume(void) = 0;
436
440 virtual int MReset(int flags) = 0;
441
445 virtual int MGetResetPin(void) = 0;
446
450 virtual int MGetIOUpdated(void) = 0;
451
455 virtual void MClearIOUpdated(void) = 0;
456
460 virtual unsigned short* DBGGetProcID_p(void) {
461 INCOMPLETE;
462 return NULL;
463 };
464
468 virtual unsigned int DBGGetPC(void) {
469 INCOMPLETE;
470 return 0;
471 };
472
476 virtual void DBGSetPC(unsigned int pc) { INCOMPLETE; };
477
481 virtual unsigned char* DBGGetRAM_p(void) {
482 INCOMPLETE;
483 return NULL;
484 };
485
489 virtual unsigned char* DBGGetROM_p(void) {
490 INCOMPLETE;
491 return NULL;
492 };
493
497 virtual unsigned char* DBGGetCONFIG_p(void) {
498 INCOMPLETE;
499 return NULL;
500 };
501
505 virtual unsigned char* DBGGetID_p(void) {
506 INCOMPLETE;
507 return NULL;
508 };
509
513 virtual unsigned char* DBGGetEEPROM_p(void) {
514 INCOMPLETE;
515 return NULL;
516 };
517
521 virtual unsigned int DBGGetRAMSize(void) {
522 INCOMPLETE;
523 return 0;
524 };
525
529 virtual unsigned int DBGGetROMSize(void) {
530 INCOMPLETE;
531 return 0;
532 };
533
537 virtual unsigned int DBGGetCONFIGSize(void) {
538 INCOMPLETE;
539 return 0;
540 };
541
545 virtual unsigned int DBGGetIDSize(void) {
546 INCOMPLETE;
547 return 0;
548 };
549
553 virtual unsigned int DBGGetEEPROM_Size(void) {
554 INCOMPLETE;
555 return 0;
556 };
557
561 virtual unsigned int DBGGetRAMLAWR(void) {
562 INCOMPLETE;
563 return 0;
564 };
565
569 virtual unsigned int DBGGetRAMLARD(void) {
570 INCOMPLETE;
571 return 0;
572 };
573
577 unsigned char CalcAngle(int i, int x, int y);
578
582 virtual void SetScale(double scale);
583
587 double GetScale(void);
588
592
593 virtual int GetDefaultClock(void) { return 2; };
594
598
599 std::string GetDefaultProcessor(void) { return DProc; };
600
604
605 void SetDefaultProcessor(std::string dproc) { DProc = dproc; };
606
610 uint32_t GetInstCounter(void) { return InstCounter; };
611
615 uint32_t GetInstCounter_us(const uint32_t start);
616
620 uint32_t GetInstCounter_ms(const uint32_t start);
621
625 int TimerRegister_us(const double micros, void (*Callback)(void* arg), void* arg);
626
630 int TimerRegister_ms(const double miles, void (*Callback)(void* arg), void* arg);
631
635 int TimerUnregister(const int timer);
636
640 int TimerChange_us(const int timer, const double micros);
641
645 int TimerChange_ms(const int timer, const double miles);
646
650 int TimerSetState(const int timer, const int enabled);
651
655 uint64_t TimerGet_ns(const int timer);
656
660 void TimerUpdateFrequency(float freq);
661
665 virtual void IoLockAccess(void) {};
666
670 virtual void IoUnlockAccess(void) {};
671
675 virtual int GetUARTRX(const int uart_num) { return 0; };
676
680 virtual int GetUARTTX(const int uart_num) { return 0; };
681
682 virtual std::string GetUARTStrStatus(const int uart_num) { return "Not implemented!"; };
683
687 virtual std::string GetClkLabel(void) { return "Clk (Mhz)"; };
688
692 virtual void MSetSimulationRun(int run) {};
693
697 std::string GetPWActiveProject(void) { return pw_active_project; };
698
702 void SetPWActiveProject(std::string path) { pw_active_project = path; };
703
707 std::string GetPWProjectType(void) { return pw_project_type; };
708
712 void SetPWProjectType(std::string type) { pw_project_type = type; };
713
714protected:
718 virtual void RegisterRemoteControl(void) {};
719
723 void InstCounterInc(void);
724
725 std::string Proc;
726 std::string DProc;
727 input_t input[MAX_IDS];
728 input_t* input_ids[MAX_IDS];
729 output_t output[MAX_IDS];
731 int inputc;
735 unsigned char p_RST;
736 float Scale;
737
741 void ReadMaps(void);
742
746 void StartThread(void);
747
751 void StopThread(void);
752
753private:
754 uint32_t InstCounter;
755 int TimersCount;
756 Timers_t Timers[MAX_TIMERS];
757 Timers_t* TimersList[MAX_TIMERS];
758 std::string pw_active_project;
759 std::string pw_project_type;
760
764 void ReadInputMap(std::string fname);
765
769 void ReadOutputMap(std::string fname);
770};
771
772extern int ioupdated;
773
774#endif /* BOARD_H */
775
776#ifndef BOARDS_DEFS_H
777#define BOARDS_DEFS_H
778
779#define board_init(name, function) \
780 static board* function##_create(void) { \
781 board* b = new function(); \
782 b->SetDefaultProcessor(b->GetProcessorName()); \
783 return b; \
784 }; \
785 static void __attribute__((constructor)) function##_init(void); \
786 static void function##_init(void) { \
787 board_register(name, function##_create); \
788 }
789
790typedef board* (*board_create_func)(void);
791
792void board_register(const char* name, board_create_func bcreate);
793
794// boards object creation
795board* create_board(int* lab, int* lab_);
796
797#define BOARDS_MAX 25
798
799extern int BOARDS_LAST;
800
801typedef struct {
802 char name[30]; // name
803 char name_[30]; // name without spaces
804 board_create_func bcreate;
805} board_desc;
806
807extern board_desc boards_list[BOARDS_MAX];
808
809// Arduino Uno is the dafault board
810#define DEFAULT_BOARD 2
811
812#endif /* BOARDS_DEFS_H */
Board class.
Definition board.h:114
virtual unsigned int DBGGetRAMLARD(void)
board microcontroller get last ram read address
Definition board.h:569
virtual unsigned int DBGGetROMSize(void)
board microcontroller get ROM (FLASH) memory size
Definition board.h:529
virtual unsigned short GetOutputId(char *name)=0
return the output ids numbers of names used in output map
virtual unsigned short GetInputId(char *name)=0
return the input ids numbers of names used in input map
int TimerChange_ms(const int timer, const double miles)
Modify timer value with us.
Definition board.cc:490
input_t * GetInput(int n)
Get board input.
Definition board.cc:316
virtual std::string GetName(void)=0
Get board name registered in PICSimLab.
virtual void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state)=0
Event on the board.
output_t output[MAX_IDS]
output map elements
Definition board.h:729
void StartThread(void)
Start parallel thread.
Definition board.cc:383
virtual int DebugInit(int dtyppe)=0
Start debug support.
virtual unsigned char * DBGGetCONFIG_p(void)
board microcontroller get CONFIG memory pointer
Definition board.h:497
virtual void board_ButtonEvent(const char *controlname, unsigned int button, unsigned int x, unsigned int y, unsigned int state)
Called when window side controls are activated.
Definition board.h:219
input_t * input_ids[MAX_IDS]
input map elements by id order
Definition board.h:728
virtual void EvKeyRelease(unsigned int key, unsigned int mask)=0
Event on the board.
virtual unsigned int DBGGetRAMLAWR(void)
board microcontroller get last ram write address
Definition board.h:561
virtual std::string GetAboutInfo(void)=0
Return the about information of part.
virtual void Reset(void)=0
Reset board status.
virtual std::string GetClkLabel(void)
Return the description of clk label.
Definition board.h:687
virtual unsigned int DBGGetCONFIGSize(void)
board microcontroller get CONFIG memory size
Definition board.h:537
int use_oscope
use oscilloscope window
Definition board.h:733
virtual void MSetPin(int pin, unsigned char value)=0
board microcontroller set digital pin
virtual int GetUARTRX(const int uart_num)
Return the UART N RX pin number.
Definition board.h:675
virtual unsigned short * DBGGetProcID_p(void)
board microcontroller get pointer to processor ID
Definition board.h:460
void ReadOutputMap(std::string fname)
Read the Output Map.
Definition board.cc:208
virtual void RegisterRemoteControl(void)
Register remote control variables.
Definition board.h:718
virtual void EvThreadRun(void)
Event on the board.
Definition board.h:184
virtual void MSetPinOAV(int pin, float value)=0
board microcontroller set digital pin output average value
virtual void ReadPreferences(char *name, char *value)
Called whe configuration file load preferences.
Definition board.h:199
virtual float MGetInstClockFreq(void)=0
board microcontroller get cpu internal clock (in PIC frequency/4)
virtual void IoLockAccess(void)
Lock IO to others threads access.
Definition board.h:665
virtual unsigned int DBGGetIDSize(void)
board microcontroller get internal IDS memory size
Definition board.h:545
virtual void Draw(void)=0
Called ever 100ms to draw board.
virtual int MGetIOUpdated(void)=0
get microcontroler status IO updated
virtual unsigned char * DBGGetID_p(void)
board microcontroller get internal IDS memory pointer
Definition board.h:505
std::string DProc
Name of default board processor.
Definition board.h:726
void SetDefaultProcessor(std::string dproc)
Set board default processor.
Definition board.h:605
int TimerRegister_us(const double micros, void(*Callback)(void *arg), void *arg)
Register a new timer with time in us (default enabled).
Definition board.cc:416
output_t * GetOutput(int n)
Get board input.
Definition board.cc:327
virtual unsigned char * DBGGetRAM_p(void)
board microcontroller get RAM memory pointer
Definition board.h:481
void SetPWProjectType(std::string type)
Set the active project type created by Project Wizard.
Definition board.h:712
virtual unsigned char MGetPin(int pin)=0
board microcontroller get digital pin value
double GetScale(void)
Get board draw scale.
Definition board.cc:365
int GetOutputCount(void)
Get board output count.
Definition board.cc:323
int GetInputCount(void)
Get board input count.
Definition board.cc:312
int TimerSetState(const int timer, const int enabled)
Enable or disable timer.
Definition board.cc:503
void InstCounterInc(void)
Increment the Intructions Counter.
Definition board.cc:403
int outputc
output map elements counter
Definition board.h:732
virtual void DBGSetPC(unsigned int pc)
board microcontroller set PC
Definition board.h:476
void SetUseOscilloscope(int uo)
Enable/disable oscilloscope measurement.
Definition board.cc:288
virtual void MSetFreq(float freq)=0
board microcontroller set frequency
virtual void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state)=0
Event on the board.
virtual int MInit(const char *processor, const char *fname, float freq)=0
board microcontroller init
virtual unsigned char * DBGGetROM_p(void)
board microcontroller get ROM (FLASH) memory pointer
Definition board.h:489
virtual std::string GetPictureFileName(void)
Return the filename of board picture.
Definition board.cc:375
void SetProcessorName(std::string proc)
Set board processor.
Definition board.cc:304
virtual int MGetPinCount(void)=0
board microcontroller pin count
virtual int MGetArchitecture(void)=0
Return board microcontroller architecture.
virtual void MSetSimulationRun(int run)
Called when simulation is paused or resumed.
Definition board.h:692
virtual int CpuInitialized(void)=0
return true if microcontroller is initialized
virtual int MDumpMemory(const char *fname)=0
board microcontroller save non volatile memory to hex file
output_t * output_ids[MAX_IDS]
output map elements by id order
Definition board.h:730
virtual void WritePreferences(void)
Called to save board preferences in configuration file.
Definition board.h:194
virtual const picpin * MGetPinsValues(void)=0
board microcontroller get all pins list struct
int TimerChange_us(const int timer, const double micros)
Modify timer value with us.
Definition board.cc:477
unsigned char p_RST
board /RESET pin state
Definition board.h:735
std::string GetPWActiveProject(void)
Return the active project created by Project Wizard.
Definition board.h:697
virtual float * MGetPinOAVPtr(int pin)=0
board microcontroller get pointer to digital pin average value
int MGetClocksPerInstructions(void)
board microcontroller get Clock pulses per instruction (in PIC equal to 4)
Definition board.cc:334
virtual void MEraseFlash(void)=0
board microcontroller erase flash memory (program)
input_t input[MAX_IDS]
input map elements
Definition board.h:727
virtual void MSetPinDOV(int pin, unsigned char ovalue)=0
board microcontroller set Default Open Value (external pull)
virtual std::string GetSupportedIDEs(void)
Return a list of supported IDEs in project wizard.
Definition board.h:134
virtual std::string MGetPinName(int pin)=0
board microcontroller pin name
virtual std::string GetDebugName(void)=0
Get debug interface name.
uint32_t GetInstCounter_ms(const uint32_t start)
Get elapsed time from instruction counter in us.
Definition board.cc:525
virtual float MGetVCC(void)=0
board microcontroller get vcc
virtual void MClearIOUpdated(void)=0
clear microcontroler status IO updated
board(void)
Called once on board creation.
Definition board.cc:34
virtual void board_Event(const char *controlname)
Called when window side controls are activated.
Definition board.h:214
uint64_t TimerGet_ns(const int timer)
Get elapsed time from instruction counter in ns.
Definition board.cc:514
std::string GetProcessorName(void)
Get board processor in use.
Definition board.cc:308
virtual void Run_CPU(void)=0
Paralle thread called ever 100ms to run cpu code.
virtual unsigned char * DBGGetEEPROM_p(void)
board microcontroller get data EEPROM memory pointer
Definition board.h:513
virtual void RefreshStatus(void)
Called ever 1s to refresh status.
Definition board.cc:284
void StopThread(void)
Stop parallel thread.
Definition board.cc:393
virtual void SetScale(double scale)
Set board draw scale.
Definition board.cc:361
virtual int MReset(int flags)=0
board microcontroller reset
virtual void MEnd(void)=0
board microcontroller end
virtual int MGetResetPin(void)=0
Get the Reset pin of microcontroller.
std::string GetDefaultProcessor(void)
Get board default processor.
Definition board.h:599
virtual void MSetAPin(int pin, float value)=0
board microcontroller set analog pin
std::string GetPWProjectType(void)
Return the active project type created by Project Wizard.
Definition board.h:707
int use_spare
use spare parts window
Definition board.h:734
void SetPWActiveProject(std::string path)
Set the active project created by Project Wizard.
Definition board.h:702
int TimerUnregister(const int timer)
Unregister timer.
Definition board.cc:456
virtual void MStepResume(void)=0
board microcontroller run one or two steps to resume instruction
virtual int GetUARTTX(const int uart_num)
Return the UART N TX pin number.
Definition board.h:680
virtual std::string GetSupportedDevices(void)=0
Return a list of supported microcontrollers.
int GetUseSpareParts(void)
Get if spare parts is in use.
Definition board.cc:300
virtual void IoUnlockAccess(void)
Unlock IO to others threads access.
Definition board.h:670
unsigned char CalcAngle(int i, int x, int y)
Calc rotary potentiometer angle.
Definition board.cc:338
virtual void MSetSerial(const char *port)=0
Set serial port name to use.
virtual void MStep(void)=0
board microcontroller run one step
virtual std::string GetMapFile(void)
Return the filename of board picture map.
Definition board.cc:379
int TimerRegister_ms(const double miles, void(*Callback)(void *arg), void *arg)
Register a new timer with time in ms (default enabled).
Definition board.cc:436
int inputc
input map elements counter
Definition board.h:731
virtual std::string GetDebuggers(void)=0
Return board supported debug interfaces name.
virtual std::string GetSimBackends(void)=0
Return board backends name.
virtual float MGetFreq(void)=0
board microcontroller get frequency
int GetUseOscilloscope(void)
Get if oscilloscope is in use.
Definition board.cc:296
virtual ~board(void)
Called once on board destruction.
Definition board.cc:62
virtual int GetDefaultClock(void)
Get board default clock in MHz.
Definition board.h:593
virtual unsigned int DBGGetEEPROM_Size(void)
board microcontroller get data EEPROM memory size
Definition board.h:553
virtual void EvMouseMove(unsigned int button, unsigned int x, unsigned int y, unsigned int state)
Event on the board.
Definition board.h:164
uint32_t GetInstCounter(void)
Get instruction counter.
Definition board.h:610
virtual unsigned int DBGGetRAMSize(void)
board microcontroller get RAM memory size
Definition board.h:521
void ReadMaps(void)
Read maps.
Definition board.cc:64
virtual void DebugLoop(void)=0
debug step (pooling)
void SetUseSpareParts(int sp)
Enable/disable spare parts.
Definition board.cc:292
virtual void MSetVCC(float vcc)=0
board microcontroller set vcc
virtual void EvOnShow(void)
Event on the board.
Definition board.cc:369
virtual unsigned int DBGGetPC(void)
board microcontroller get PC
Definition board.h:468
virtual void EvKeyPress(unsigned int key, unsigned int mask)=0
Event on the board.
uint32_t GetInstCounter_us(const uint32_t start)
Get elapsed time from instruction counter in us.
Definition board.cc:521
void ReadInputMap(std::string fname)
Read the Input Map.
Definition board.cc:79
std::string Proc
Name of processor in use.
Definition board.h:725
void TimerUpdateFrequency(float freq)
Update Timer counters on frequency change.
Definition board.cc:529
internal timer struct
Definition board.h:100
Definition board.h:801
input map struct
Definition board.h:46
float x2
x2 position
Definition board.h:48
char name[10]
region name
Definition board.h:53
float value_f
updated value float
Definition board.h:60
short value_s
updated value short
Definition board.h:59
float cx
center x position
Definition board.h:51
unsigned char * update
output need draw update
Definition board.h:56
float y2
y2 position
Definition board.h:50
float x1
x1 position
Definition board.h:47
void * status
rcontrol status
Definition board.h:55
unsigned char value
updated value
Definition board.h:58
unsigned short id
region ID
Definition board.h:54
float y1
y1 position
Definition board.h:49
float cy
center y position
Definition board.h:52
output map struct
Definition board.h:68
float r
radius
Definition board.h:75
float x2
x2 position
Definition board.h:70
short value_s
updated value short
Definition board.h:82
unsigned char value
updated value
Definition board.h:81
float y2
y2 position
Definition board.h:72
float y1
y1 position
Definition board.h:71
void * status
rcontrol status
Definition board.h:78
unsigned short id
region ID
Definition board.h:77
char name[10]
region name
Definition board.h:76
float x1
x1 position
Definition board.h:69
float value_f
updated value float
Definition board.h:83
unsigned char update
need draw update
Definition board.h:79
float cx
center x position
Definition board.h:73
float cy
center y position
Definition board.h:74