STM MATLAB Simulator
Loading...
Searching...
No Matches
Macros
WRAPPER_CONF

Configurations for wrapper to simulating MCU. More...

+ Collaboration diagram for WRAPPER_CONF:

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
 

Detailed Description

Configurations for wrapper to simulating MCU.

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

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.

◆ DEKSTOP_CYCLES_FOR_MCU_APP

#define DEKSTOP_CYCLES_FOR_MCU_APP   0xFFFF

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

◆ PORT_WIDTH

#define PORT_WIDTH   16

width of one port

◆ PORT_NUMB

#define PORT_NUMB   3

amount of ports

◆ NPARAMS

#define NPARAMS   1

number of input parametrs (only Ts)

◆ IN_PORT_WIDTH

#define IN_PORT_WIDTH   (8)

width of input ports

◆ IN_PORT_NUMB

#define IN_PORT_NUMB   1

number of input ports

◆ OUT_PORT_WIDTH

#define OUT_PORT_WIDTH   PORT_WIDTH

width of output ports

◆ OUT_PORT_NUMB

#define OUT_PORT_NUMB   PORT_NUMB

number of output ports

◆ DISC_STATES_WIDTH

#define DISC_STATES_WIDTH   PORT_WIDTH*PORT_NUMB

width of discrete states array