1#ifndef USERLIBSIMULATOR_H
2#define USERLIBSIMULATOR_H
56#define SIMULATOR_Vcc_V 5.0f
58#define SIMULATOR_NO_ERROR 0
62#define CONNECT_IS_OK SIMULATOR_NO_ERROR
63#define CONNECT_ERROR_SERVER_NOT_RUNNING -1
64#define CONNECT_ERROR_SERVER_NOT_RESPONDING -2
67#define N_MAX_AD_CONVERTERS 4
79int Simulator_ConnectWss(
const char* appName,
const char* userName,
const char* passwd,
const char* ip_address,
int port);
void Simulator_Delay(int value_ms)
int Simulator_Console_GetString(int blocking, char *textBuffer, int textBufferSize)
void Simulator_SetPWMvalue(int pwm_channel, int count_value)
int Simulator_SetTimerInterrupt(int timer_number, int tm_ms, void(*Fn)())
char Simulator_Console_GetChar(int blocking)
int Simulator_Console_Printf(const char *fmt,...)
void Simulator_WriteDO(int value)
void Simulator_ConfigPWM(int pwm_channel, int count_max, int count_value_default, int count_unit_us)
int Simulator_ResetCounter(int enc_channel)
int Simulator_ReadAD(int ad_channel)
int Simulator_LCD_printf(const char *fmt,...)
int Simulator_LCD_gotoxy(int col, int row)
int Simulator_Console_Scanf(const char *fmt,...)
int Simulator_ConnectWss(const char *appName, const char *userName, const char *passwd, const char *ip_address, int port)
int Simulator_ReadCounter(int enc_channel)