Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
ascii_support.h File Reference

Simple and fast ASCII converters. More...

#include "embedded_math.h"

Go to the source code of this file.

Functions

charmy_itoa (char *target, int value)
 
charmy_ftoa (char *target, float value)
 
charftoa (char *Buffer, float Value)
 
float my_atof (const char *s)
 
charformat_2_digits (char *target, uint32_t data)
 
charappend_string (char *target, const char *source)
 basically: kind of strcat returning the pointer to the string-end
 
void newline (char *&next)
 
charformat_integer (char *target, int32_t value)
 signed integer to ASCII returning the string end
 

Detailed Description

Simple and fast ASCII converters.

Author
Dr. Klaus Schaefer

<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.h.

Function Documentation

◆ append_string()

char * append_string ( char target,
const char source 
)
inline

basically: kind of strcat returning the pointer to the string-end

append carriage return and newline and advance pointer

Definition at line 56 of file ascii_support.h.

Referenced by format_GGA(), format_PLARA(), format_PLARB(), format_PLARD(), format_PLARS(), format_PLARV(), format_PLARW(), format_RMC(), and write_EEPROM_dump().

◆ format_2_digits()

char * format_2_digits ( char target,
uint32_t  data 
)
inline

Definition at line 46 of file ascii_support.h.

Referenced by write_EEPROM_dump().

◆ format_integer()

char * format_integer ( char target,
int32_t  value 
)

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().

◆ ftoa()

char * ftoa ( char Buffer,
float  Value 
)

◆ my_atof()

float my_atof ( const char s)

Definition at line 215 of file ascii_support.cpp.

References a, isdigit, and s.

◆ my_ftoa()

char * my_ftoa ( char target,
float  value 
)

◆ my_itoa()

char * my_itoa ( char target,
int  value 
)

Definition at line 79 of file ascii_support.cpp.

References my_itoa().

Referenced by my_ftoa(), and my_itoa().

◆ newline()

void newline ( char *&  next)
inline

Definition at line 65 of file ascii_support.h.