#include <windows.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include "mgui.h"
#include "DAS_Spatram.h"
#include "wsc.h"
#include "dxl.h"
Go to the source code of this file.
|
int | DE_Init (int mod) |
|
int | DE_InitMotor (int mod, int motor, int mswitch) |
|
void | DE_PWM (int mod, int channel, int value) |
|
int | DE_ReadAD (int mod, int channel) |
|
unsigned int | DE_ReadEP (unsigned int add) |
|
unsigned int | DE_ReadPort (int mod, int port) |
|
void | DE_SetMotor (int mod, int motor, int coppia, int step, int slope, int speed) |
|
void | DE_SetRelais (int mod, int channel, int value) |
|
int | DE_StepMotor (int mod, int motor, long step, int dir) |
|
int | DE_StsMotor (int mod, int motor) |
|
unsigned int | DE_WriteEP (unsigned int add, unsigned int data) |
|
void | DE_WritePort (int mod, int port, unsigned int data) |
|
§ DE_Init()
Definition at line 22 of file De.c.
§ DE_InitMotor()
int DE_InitMotor |
( |
int |
mod, |
|
|
int |
motor, |
|
|
int |
mswitch |
|
) |
| |
Definition at line 73 of file De.c.
References sleep().
void sleep(clock_t wait)
Pauses for a specified number of milliseconds. .
§ DE_PWM()
void DE_PWM |
( |
int |
mod, |
|
|
int |
channel, |
|
|
int |
value |
|
) |
| |
Definition at line 214 of file De.c.
§ DE_ReadAD()
int DE_ReadAD |
( |
int |
mod, |
|
|
int |
channel |
|
) |
| |
Definition at line 243 of file De.c.
§ DE_ReadEP()
unsigned int DE_ReadEP |
( |
unsigned int |
add | ) |
|
Definition at line 280 of file De.c.
§ DE_ReadPort()
unsigned int DE_ReadPort |
( |
int |
mod, |
|
|
int |
port |
|
) |
| |
Definition at line 180 of file De.c.
§ DE_SetMotor()
void DE_SetMotor |
( |
int |
mod, |
|
|
int |
motor, |
|
|
int |
coppia, |
|
|
int |
step, |
|
|
int |
slope, |
|
|
int |
speed |
|
) |
| |
Definition at line 57 of file De.c.
§ DE_SetRelais()
void DE_SetRelais |
( |
int |
mod, |
|
|
int |
channel, |
|
|
int |
value |
|
) |
| |
Definition at line 229 of file De.c.
§ DE_StepMotor()
int DE_StepMotor |
( |
int |
mod, |
|
|
int |
motor, |
|
|
long |
step, |
|
|
int |
dir |
|
) |
| |
Definition at line 92 of file De.c.
References DXL_par::add, AMS_DoPos(), DAS, DBDEMO, flag::exemode, das::Flag, Message(), MObjectSetText(), and MPixmapSetImageFile().
106 sprintf(buf,
"%s",
"Positioning");
113 if(er) {
Message(
"n Step not sent! 1", er);
break; }
120 sprintf(buf,
"%s",
"Positioning");
127 if(er) {
Message(
"n Step not sent! 1", er);
break; }
134 sprintf(buf,
"%s",
"Positioning");
141 if(er) {
Message(
"n Step not sent! 1", er);
break; }
void MPixmapSetImageFile(MOBJECT pixmap, const char *fname)
flag Flag
Structure for different flags.
#define DBDEMO
execution in demo mode
void MObjectSetText(MOBJECT obj, const char *text)
int add
Peripheral address.
void Message(char *str, int er)
Create a message shell for the AMS errors (Debug Use). .
int AMS_DoPos(int id, int dira, int dirb, unsigned long stepa, unsigned long stepb)
Execute Positioning Execute Stepper positioning. Make all the control on the status of the selected m...
int exemode
Set the Execution MODE (Execution modes)
§ DE_StsMotor()
int DE_StsMotor |
( |
int |
mod, |
|
|
int |
motor |
|
) |
| |
Definition at line 166 of file De.c.
§ DE_WriteEP()
unsigned int DE_WriteEP |
( |
unsigned int |
add, |
|
|
unsigned int |
data |
|
) |
| |
Definition at line 294 of file De.c.
§ DE_WritePort()
void DE_WritePort |
( |
int |
mod, |
|
|
int |
port, |
|
|
unsigned int |
data |
|
) |
| |
Definition at line 196 of file De.c.
§ DXL
Definition at line 14 of file De.c.