Home | Develop | Download | Contact
pdsiqwave.h
1 /*
2  * pdsiqwave.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 __PDSIQWAVE_H__
44 #define __PDSIQWAVE_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 Ys[2];
109  PdsDsReal Yc[2];
118 }PdsIQWave;
119 
120 
132 
133 
144 
145 
155 
156 
166 
167 
178 int pds_iqwave_get_vector(PdsIQWave *WAVE,PdsVector *VectorC,PdsVector *VectorS);
179 
180 
187 void pds_iqwave_free(PdsIQWave *WAVE);
188 
189 
196 void pds_iqwave_destroy(PdsIQWave **WAVE);
197 
198 
203 #ifdef __cplusplus
204 }
205 #endif
206 
207 #endif /* __PDSIQWAVE_H__ */
208 
La estructura tipo PdsIQWave .
Definition: pdsiqwave.h:104
PdsIQWave * pds_iqwave_new(PdsDsReal A, PdsDsReal Teta)
Crea una estructura de tipo PdsIQWave.
PdsIQWave * pds_iqwave_new_nos(PdsDsReal A, PdsDsNatural N)
Crea una estructura de tipo PdsIQWave.
int pds_iqwave_get_last_value(PdsIQWave *WAVE, PdsDsReal *yc, PdsDsReal *ys)
Obtiene el último valor a la salida del generador IQ sinusoidal.
void pds_iqwave_destroy(PdsIQWave **WAVE)
Libera una estructura de tipo puntero PdsIQWave, y lo carga con NULL.
unsigned int PdsDsNatural
Definition: pdsdsglobal.h:47
int pds_iqwave_get_value(PdsIQWave *WAVE, PdsDsReal *yc, PdsDsReal *ys)
Obtiene un valor de yc e ys en la salida e itera el generador IQ sinusoidal.
PdsDsReal a
Definition: pdsiqwave.h:115
PdsDsReal Teta
Definition: pdsiqwave.h:113
int pds_iqwave_get_vector(PdsIQWave *WAVE, PdsVector *VectorC, PdsVector *VectorS)
Carga un par de vectores con valores obtenidos en la salida del generador IQ. Realiza una iteración p...
PdsDsReal b
Definition: pdsiqwave.h:117
void pds_iqwave_free(PdsIQWave *WAVE)
Libera una estructura de tipo puntero PdsIQWave.
float PdsDsReal
Definition: pdsdsglobal.h:42
PdsDsReal A
Definition: pdsiqwave.h:111

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed