29#include "../lib/board.h"
30#include "../lib/serial_port.h"
40 int MInit(
const char* processor,
const char* fname,
float freq)
override;
41 void MEnd(
void)
override;
47 void MSetVCC(
float vcc)
override;
52 void MSetPin(
int pin,
unsigned char value)
override;
53 void MSetPinDOV(
int pin,
unsigned char ovalue)
override;
54 void MSetAPin(
int pin,
float value)
override;
55 unsigned char MGetPin(
int pin)
override;
57 void MStep(
void)
override;
59 void MReset(
int flags)
override;
62 void pins_reset(
void);
64 unsigned int serialbaud;
73 unsigned short ports[4];
Board class.
Definition board.h:111
Definition bsim_ucsim.h:32
unsigned char MGetPin(int pin) override
board microcontroller get digital pin value
Definition bsim_ucsim.cc:232
void MSetSerial(const char *port) override
Set serial port name to use.
Definition bsim_ucsim.cc:56
std::string MGetPinName(int pin) override
board microcontroller pin name
Definition bsim_ucsim.cc:137
float MGetInstClockFreq(void) override
board microcontroller get cpu internal clock (in PIC frequency/4)
Definition bsim_ucsim.cc:127
void DebugLoop(void) override
debug step (pooling)
Definition bsim_ucsim.cc:135
void MStep(void) override
board microcontroller run one step
Definition bsim_ucsim.cc:249
const picpin * MGetPinsValues(void) override
board microcontroller get all pins list struct
Definition bsim_ucsim.cc:245
float MGetVCC(void) override
board microcontroller get vcc
Definition bsim_ucsim.cc:123
void MSetAPin(int pin, float value) override
board microcontroller set analog pin
Definition bsim_ucsim.cc:228
int CpuInitialized(void) override
return true if microcontroller is initialized
Definition bsim_ucsim.cc:131
void MReset(int flags) override
board microcontroller reset
Definition bsim_ucsim.cc:236
void MSetPin(int pin, unsigned char value) override
board microcontroller set digital pin
Definition bsim_ucsim.cc:220
int MInit(const char *processor, const char *fname, float freq) override
board microcontroller init
Definition bsim_ucsim.cc:62
void MSetVCC(float vcc) override
board microcontroller set vcc
Definition bsim_ucsim.cc:119
int MGetArchitecture(void) override
Return board microcontroller architecture.
Definition bsim_ucsim.cc:91
int MDumpMemory(const char *fname) override
board microcontroller save non volatile memory to hex file
Definition bsim_ucsim.cc:146
void MEraseFlash(void) override
board microcontroller erase flash memory (program)
Definition bsim_ucsim.cc:106
int MGetPinCount(void) override
board microcontroller pin count
Definition bsim_ucsim.cc:155
void MEnd(void) override
board microcontroller end
Definition bsim_ucsim.cc:87
std::string GetDebugName(void) override
Get debug interface name.
Definition bsim_ucsim.h:36
void MSetFreq(float freq) override
board microcontroller set frequency
Definition bsim_ucsim.cc:110
void MSetPinDOV(int pin, unsigned char ovalue) override
board microcontroller set Default Open Value (external pull)
Definition bsim_ucsim.cc:224
float MGetFreq(void) override
board microcontroller get frequency
Definition bsim_ucsim.cc:115
int DebugInit(int dtyppe) override
Start debug support.
Definition bsim_ucsim.cc:150
void MStepResume(void) override
board microcontroller run one or two steps to resume instruction
Definition bsim_ucsim.cc:279