ddd
Dependencies: mbed CMSIS_DSP_5
main.cpp@2:69827542e976, 2018-10-17 (annotated)
- Committer:
- javiervicente
- Date:
- Wed Oct 17 17:00:32 2018 +0000
- Revision:
- 2:69827542e976
- Parent:
- 1:bdbd76df2103
- Child:
- 3:44b632ea58aa
- Child:
- 6:2a9b1cc25f1b
inicial;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
javiervicente | 0:0d5a524c7d25 | 1 | #include "mbed.h" |
javiervicente | 0:0d5a524c7d25 | 2 | #include "datos.h" |
javiervicente | 0:0d5a524c7d25 | 3 | |
javiervicente | 0:0d5a524c7d25 | 4 | Timer timer; |
javiervicente | 2:69827542e976 | 5 | float resultado; |
javiervicente | 1:bdbd76df2103 | 6 | |
javiervicente | 2:69827542e976 | 7 | float calcularRMS(int16_t *datos, int longitud); |
javiervicente | 2:69827542e976 | 8 | |
javiervicente | 0:0d5a524c7d25 | 9 | |
javiervicente | 0:0d5a524c7d25 | 10 | int main() |
javiervicente | 0:0d5a524c7d25 | 11 | { |
javiervicente | 1:bdbd76df2103 | 12 | |
javiervicente | 1:bdbd76df2103 | 13 | timer.reset(); |
javiervicente | 0:0d5a524c7d25 | 14 | timer.start(); |
javiervicente | 2:69827542e976 | 15 | resultado=calcularRMS(datos, 500); |
javiervicente | 0:0d5a524c7d25 | 16 | timer.stop(); |
javiervicente | 2:69827542e976 | 17 | printf("****El valor Vrms es %f ****\n",resultado); |
javiervicente | 1:bdbd76df2103 | 18 | |
javiervicente | 1:bdbd76df2103 | 19 | } |
javiervicente | 1:bdbd76df2103 | 20 | |
javiervicente | 2:69827542e976 | 21 | float calcularRMS(int16_t *datos, int longitud) |
javiervicente | 1:bdbd76df2103 | 22 | { |
javiervicente | 2:69827542e976 | 23 | return 0.0; |
javiervicente | 1:bdbd76df2103 | 24 | } |
javiervicente | 1:bdbd76df2103 | 25 |