Home | Develop | Download | Contact
pdsswave.h
1 /*
2  * pdsswave.h
3  *
4  * Copyright 2011 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
43 #ifndef __PDSSWAVE_H__
44 #define __PDSSWAVE_H__
45 
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 #include <pds/pdsdsglobal.h>
52 #include <pds/pdsvector.h>
53 
54 #include <stdio.h>
55 
56 #ifndef TRUE
57  #define TRUE 1
58 #endif
59 
60 #ifndef FALSE
61  #define FALSE 0
62 #endif
63 
104 typedef struct
105 {
107  PdsDsReal Y[3];
114 }PdsSWave;
115 
127 
128 
139 
140 
149 
150 
159 
160 
169 int pds_swave_get_vector(PdsSWave *WAVE,PdsVector *Vector);
170 
171 
178 void pds_swave_free(PdsSWave *WAVE);
179 
180 
187 void pds_swave_destroy(PdsSWave **WAVE);
188 
193 #ifdef __cplusplus
194 }
195 #endif
196 
197 #endif /* __PDSSWAVE_H__ */
198 
int pds_swave_get_last_value(PdsSWave *WAVE, PdsDsReal *y)
Obtiene el último valor a la salida del generador sinusoidal.
PdsDsReal Teta
Definition: pdsswave.h:111
PdsDsReal A
Definition: pdsswave.h:109
PdsSWave * pds_swave_new(PdsDsReal A, PdsDsReal Teta)
Crea una estructura de tipo PdsSWave.
int pds_swave_get_value(PdsSWave *WAVE, PdsDsReal *y)
Obtiene un valor en la salida e itera el generador sinusoidal.
int pds_swave_get_vector(PdsSWave *WAVE, PdsVector *Vector)
Carga un vector con valores obtenidos en la salida del generador sinusoidal. Realiza una iteración pa...
unsigned int PdsDsNatural
Definition: pdsdsglobal.h:47
La estructura tipo PdsSWave .
Definition: pdsswave.h:104
PdsSWave * pds_swave_new_nos(PdsDsReal A, PdsDsNatural N)
Crea una estructura de tipo PdsSWave.
void pds_swave_destroy(PdsSWave **WAVE)
Libera una estructura de tipo puntero PdsSWave, y lo carga con NULL.
void pds_swave_free(PdsSWave *WAVE)
Libera una estructura de tipo puntero PdsSWave.
float PdsDsReal
Definition: pdsdsglobal.h:42
PdsDsReal a
Definition: pdsswave.h:113

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed