![]() |
Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
|
Simple and fast ASCII converters (implementation) More...
#include "embedded_memory.h"#include "embedded_math.h"#include "ascii_support.h"#include <stdlib.h>Go to the source code of this file.
Macros | |
| #define | isdigit(c) (c >= '0' && c <= '9') |
Functions | |
| char * | itoa (int value, char *result, int base) |
| char * | utox (char *result, uint32_t value, uint8_t nibbles) |
| char * | lutox (char *result, uint64_t value) |
| char * | my_itoa (char *target, int value) |
| char * | my_ftoa (char *target, float value) |
| void | portable_ftoa (char *res, float value, unsigned no_of_decimals, unsigned res_len) |
| char * | format_integer (char *s, int32_t value) |
| signed integer to ASCII returning the string end | |
| float | my_atof (const char *s) |
Simple and fast ASCII converters (implementation)
<Larus Flight Sensor Firmware>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file ascii_support.cpp.
| #define isdigit | ( | c | ) | (c >= '0' && c <= '9') |
Definition at line 214 of file ascii_support.cpp.
signed integer to ASCII returning the string end
Definition at line 196 of file ascii_support.cpp.
References format_integer(), and s.
Referenced by format_integer(), format_PLARV(), format_PLARW(), to_ascii_1_decimal(), and to_ascii_2_decimals().
Definition at line 32 of file ascii_support.cpp.
Referenced by serial_output::puti().
Definition at line 71 of file ascii_support.cpp.
References utox().
Definition at line 215 of file ascii_support.cpp.
Definition at line 99 of file ascii_support.cpp.
References my_itoa().
Referenced by serial_output::putf(), report_magnetic_calibration_has_changed(), and write_EEPROM_dump().
Definition at line 79 of file ascii_support.cpp.
References my_itoa().
Definition at line 146 of file ascii_support.cpp.
Definition at line 59 of file ascii_support.cpp.
Referenced by lutox(), and serial_output::putx().