Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
vector_int24.h@0:58277eb442ad, 2016-08-26 (annotated)
- Committer:
- cesarcazal
- Date:
- Fri Aug 26 21:33:39 2016 +0000
- Revision:
- 0:58277eb442ad
Librer?a de conversi?n de punteros (o vectores) a variables int32 (pero s?lo se toma como si fuesen equivalentes a int24)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cesarcazal | 0:58277eb442ad | 1 | #ifndef MBED_VECTOR_INT24_H |
| cesarcazal | 0:58277eb442ad | 2 | #define MBED_VECTOR_INT24_H |
| cesarcazal | 0:58277eb442ad | 3 | |
| cesarcazal | 0:58277eb442ad | 4 | #include "mbed.h" |
| cesarcazal | 0:58277eb442ad | 5 | |
| cesarcazal | 0:58277eb442ad | 6 | //LOS VALORES SON DEVUELTOS EN FORMATO INT32; SIN EMBARGO SOLO SE REALIZAN CONVERSIONES EQUIVALENTES A VARIABLES DE 24BITS |
| cesarcazal | 0:58277eb442ad | 7 | |
| cesarcazal | 0:58277eb442ad | 8 | int32_t pointer_to_int32 (uint8_t *vect);//función que devuelve un int32 acorde al valor del puntero "vect", donde el LSB es point[0] |
| cesarcazal | 0:58277eb442ad | 9 | void int32_to_pointer (int32_t dato, uint8_t *point);//función que coloca los valores de "dato" en el puntero "point", donde el LSB se encuentra en point[0]; |
| cesarcazal | 0:58277eb442ad | 10 | |
| cesarcazal | 0:58277eb442ad | 11 | #endif |