STM MATLAB Simulator
Loading...
Searching...
No Matches
Macros | Variables
Wrapper Configuration

Параметры конфигурации для оболочки МК More...

+ Collaboration diagram for Wrapper Configuration:

Macros

#define CREATE_SUSPENDED   0x00000004
 define from WinBase.h. We dont wanna include "Windows.h" or smth like this, because of HAL there are a lot of redefine errors.
 
#define DEKSTOP_CYCLES_FOR_MCU_APP   0xFFFF
 number of for() cycles after which MCU thread would be suspended
 
#define PORT_WIDTH   16
 width of one port
 
#define PORT_NUMB   3
 amount of ports
 
#define NPARAMS   1
 number of input parametrs (only Ts)
 
#define IN_PORT_WIDTH   (8)
 width of input ports
 
#define IN_PORT_NUMB   1
 number of input ports
 
#define OUT_PORT_WIDTH   PORT_WIDTH
 width of output ports
 
#define OUT_PORT_NUMB   PORT_NUMB
 number of output ports
 
#define DISC_STATES_WIDTH   PORT_WIDTH*PORT_NUMB
 width of discrete states array
 

Variables

SIM__MCUHandleTypeDef hmcu
 Хендл для управления потоком программы МК
 
double SystemClockDouble = 0
 Счетчик в формате double для точной симуляции системных тиков С промежуточными значений
 
uint64_t SystemClock
 Счетчик тактов для симуляции системных тиков (в целочисленном формате)
 
double SystemClock_step = 0
 Шаг тиков для их симуляции, в формате double.
 

Detailed Description

Параметры конфигурации для оболочки МК

Здесь дефайнами задается параметры оболочки, которые определяют как она будет работать

Macro Definition Documentation

◆ CREATE_SUSPENDED

#define CREATE_SUSPENDED   0x00000004

define from WinBase.h. We dont wanna include "Windows.h" or smth like this, because of HAL there are a lot of redefine errors.

Definition at line 47 of file mcu_wrapper_conf.h.

◆ DEKSTOP_CYCLES_FOR_MCU_APP

#define DEKSTOP_CYCLES_FOR_MCU_APP   0xFFFF

number of for() cycles after which MCU thread would be suspended

Definition at line 49 of file mcu_wrapper_conf.h.

◆ PORT_WIDTH

#define PORT_WIDTH   16

width of one port

Definition at line 50 of file mcu_wrapper_conf.h.

◆ PORT_NUMB

#define PORT_NUMB   3

amount of ports

Definition at line 51 of file mcu_wrapper_conf.h.

◆ NPARAMS

#define NPARAMS   1

number of input parametrs (only Ts)

Definition at line 54 of file mcu_wrapper_conf.h.

◆ IN_PORT_WIDTH

#define IN_PORT_WIDTH   (8)

width of input ports

Definition at line 55 of file mcu_wrapper_conf.h.

◆ IN_PORT_NUMB

#define IN_PORT_NUMB   1

number of input ports

Definition at line 56 of file mcu_wrapper_conf.h.

◆ OUT_PORT_WIDTH

#define OUT_PORT_WIDTH   PORT_WIDTH

width of output ports

Definition at line 57 of file mcu_wrapper_conf.h.

◆ OUT_PORT_NUMB

#define OUT_PORT_NUMB   PORT_NUMB

number of output ports

Definition at line 58 of file mcu_wrapper_conf.h.

◆ DISC_STATES_WIDTH

#define DISC_STATES_WIDTH   PORT_WIDTH*PORT_NUMB

width of discrete states array

Definition at line 59 of file mcu_wrapper_conf.h.

Variable Documentation

◆ hmcu

Хендл для управления потоком программы МК

Definition at line 16 of file mcu_wrapper.c.

◆ SystemClockDouble

double SystemClockDouble = 0

Счетчик в формате double для точной симуляции системных тиков С промежуточными значений

Definition at line 18 of file mcu_wrapper.c.

◆ SystemClock

uint64_t SystemClock

Счетчик тактов для симуляции системных тиков (в целочисленном формате)

Definition at line 19 of file mcu_wrapper.c.

◆ SystemClock_step

double SystemClock_step = 0

Шаг тиков для их симуляции, в формате double.

Definition at line 20 of file mcu_wrapper.c.