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;
63 void pins_reset(
void);
65 unsigned int serialbaud;
73 std::string supported_devices;
Board class.
Definition board.h:111
Definition bsim_gpsim.h:32
void MSetSerial(const char *port) override
Set serial port name to use.
Definition bsim_gpsim.cc:40
void MSetVCC(float vcc) override
board microcontroller set vcc
Definition bsim_gpsim.cc:93
int MGetArchitecture(void) override
Return board microcontroller architecture.
Definition bsim_gpsim.cc:75
void MSetPin(int pin, unsigned char value) override
board microcontroller set digital pin
Definition bsim_gpsim.cc:175
int CpuInitialized(void) override
return true if microcontroller is initialized
Definition bsim_gpsim.cc:105
float MGetVCC(void) override
board microcontroller get vcc
Definition bsim_gpsim.cc:97
int MInit(const char *processor, const char *fname, float freq) override
board microcontroller init
Definition bsim_gpsim.cc:46
int MGetPinCount(void) override
board microcontroller pin count
Definition bsim_gpsim.cc:137
void MReset(int flags) override
board microcontroller reset
Definition bsim_gpsim.cc:195
int MDumpMemory(const char *fname) override
board microcontroller save non volatile memory to hex file
Definition bsim_gpsim.cc:128
const picpin * MGetPinsValues(void) override
board microcontroller get all pins list struct
Definition bsim_gpsim.cc:199
float MGetFreq(void) override
board microcontroller get frequency
Definition bsim_gpsim.cc:89
void MStep(void) override
board microcontroller run one step
Definition bsim_gpsim.cc:203
int GetDefaultClock(void) override
Get board default clock in MHz.
Definition bsim_gpsim.h:60
std::string GetDebugName(void) override
Get debug interface name.
Definition bsim_gpsim.h:36
void MSetPinDOV(int pin, unsigned char ovalue) override
board microcontroller set Default Open Value (external pull)
Definition bsim_gpsim.cc:179
void MEnd(void) override
board microcontroller end
Definition bsim_gpsim.cc:71
int DebugInit(int dtyppe) override
Start debug support.
Definition bsim_gpsim.cc:132
void MSetFreq(float freq) override
board microcontroller set frequency
Definition bsim_gpsim.cc:83
void MSetAPin(int pin, float value) override
board microcontroller set analog pin
Definition bsim_gpsim.cc:183
float MGetInstClockFreq(void) override
board microcontroller get cpu internal clock (in PIC frequency/4)
Definition bsim_gpsim.cc:101
void DebugLoop(void) override
debug step (pooling)
Definition bsim_gpsim.cc:109
void MStepResume(void) override
board microcontroller run one or two steps to resume instruction
Definition bsim_gpsim.cc:212
unsigned char MGetPin(int pin) override
board microcontroller get digital pin value
Definition bsim_gpsim.cc:191
void MEraseFlash(void) override
board microcontroller erase flash memory (program)
Definition bsim_gpsim.cc:79
std::string MGetPinName(int pin) override
board microcontroller pin name
Definition bsim_gpsim.cc:111