Vladimir Nemera / Mbed 2 deprecated MW771LP-2seam

Dependencies:   RA8875 SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 // MW771 Laser Press HMI.
00002 // V.Nemera, 10/07/2016, ver.1.0, C++
00003 // CPU: mbed NXP LPC1768 (ARM Cortex-M3, 32bit, 90MHz)
00004 //#pragma once
00005 #ifndef MAIN_H_
00006 #define MAIN_H_
00007 
00008 //main screen
00009 typedef struct {
00010     uint16_t x1;
00011     uint16_t y1;
00012     uint16_t x2;
00013     uint16_t y2;
00014     uint16_t textX;
00015     uint16_t textY;
00016     color_t color;
00017     color_t textColor;
00018     char text[40];
00019     //char * text;
00020 } TextBox;
00021 
00022 typedef struct {
00023     uint16_t wMode;     //0-circle, 1-Eight, 2-Infinity
00024     uint16_t LPbeg;     //welding laser power begin [%] 10..100
00025     uint16_t LPend;     //welding laser power end [%] 10..100
00026     uint16_t Lmode;     //0-CW, 1-Pulse
00027     uint16_t Lfreq;     //laser frequency [Hz] 1..1000
00028     uint16_t Lpulse;    //laser pulse length [%] 1..100 
00029     uint16_t amplBeg;   //wobbles begin amplitude [0.1mm] 1..99 (0.1-9.9mm)
00030     uint16_t amplEnd;   //wobbles end amplitude [0.1mm] 1..99 (0.1-9.9mm)
00031     uint16_t wFreq;     //wobbles frequency [Hz] 1..300
00032     uint16_t wTime;     //wobbles time [mS] 1..5000
00033     uint16_t amplNum;   //number of amplitude steps 1..100 (min step 0.1mm)
00034 } ProgPar; 
00035 
00036 typedef struct {
00037     uint16_t x1;
00038     uint16_t y1;
00039     uint16_t x2;
00040     uint16_t y2;
00041     uint16_t r1;
00042     uint16_t r2;
00043     uint16_t textX;
00044     uint16_t textY;
00045     color_t color;
00046     color_t textColor;
00047     char text[16];
00048 } TextBoxR;
00049 
00050 typedef char TPstring[24]; 
00051                   
00052 typedef struct {
00053     uint16_t min;
00054     uint16_t max;
00055 } MinMax; 
00056 
00057 typedef struct {
00058     char o3[4];     //io outputs d15-d0
00059     char o2[4];     //io outputs d31-d16
00060     char o1[4];     //io outputs d31-d16
00061     char i3[4];     //io inputs d15-d0
00062     char i2[4];     //io inputs d31-d16
00063     char i1[4];     //io inputs d31-d16
00064     char aiLPow[4];   //analog laser power
00065     char aiLCur[4];   //analog laser current
00066     char aiLTemp[4];  //analog laser temp
00067     char aiLBR[4];    //analog laser back reflection
00068 } IOPar; 
00069 
00070 #endif  /* inclusion lock */
00071 
00072 
00073 
00074 
00075 
00076 
00077