00001 /************************************************************************* 00002 00003 Aibicom (Asynchronous Interpreter of Binary Commands) is a C 00004 subroutine library for the develpment of binary control applications. 00005 00006 Copyright (C) 2006-2007 by Jorge Silva 00007 e-mail: jorge.silva@komodoopenlab.com 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 00023 *************************************************************************/ 00024 00025 #ifndef AIBICOM_H 00026 #define AIBICOM_H 00027 00028 /*---------------------------------------------------------------------------*/ 00029 00030 #define PI 3.14159265 00031 /*#define PI acos(-1)*/ 00032 00033 /*---------------------------------------------------------------------------*/ 00034 00035 #include <stdio.h> 00036 00037 /*---------------------------------------------------------------------------*/ 00038 00039 int SS_C; 00040 int SS_RES; 00041 double SS_MAXD1; 00042 double SS_MIND1; 00043 double SS_MAXD2; 00044 double SS_MIND2; 00045 int SS_2D; 00047 int SS_MTYPE; 00048 double SS_MWIDTH; 00050 double SS_K; 00051 /*---------------------------------------------------------------------------*/ 00052 00053 void SS_Init(void); 00054 00055 int SS_IfExecute(void); 00056 int SS_Execute(void); 00057 00058 double SS_GetD1(int); 00059 double SS_GetD2(int); 00060 00061 void SS_Clear(void); 00062 00063 /*---------------------------------------------------------------------------*/ 00064 00065 #endif 00066
1.5.1