gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
print.c File Reference
#include "grbl.h"

Go to the source code of this file.

Functions

void printString (const char *s)
 
void printPgmString (const char *s)
 Print a string stored in PGM-memory. More...
 
void print_uint8_base10 (uint8_t n)
 void printIntegerInBase(unsigned long n, unsigned long base) More...
 
void print_uint8_base2_ndigit (uint8_t n, uint8_t digits)
 Prints an uint8 variable in base 2 with desired number of desired digits. More...
 
void print_uint32_base10 (uint32_t n)
 
void printInteger (long n)
 
void printFloat (float n, uint8_t decimal_places)
 Convert float to string by immediately converting to a long integer, which contains. More...
 
void printFloat_CoordValue (float n)
 Floating value printing handlers for special variables types used in Grbl and are defined. More...
 
void printFloat_RateValue (float n)
 

Function Documentation

void print_uint32_base10 ( uint32_t  n)

Definition at line 93 of file print.c.

void print_uint8_base10 ( uint8_t  n)

void printIntegerInBase(unsigned long n, unsigned long base)

Prints an uint8 variable in base 10.

< 100-255

< 10-99

Definition at line 61 of file print.c.

void print_uint8_base2_ndigit ( uint8_t  n,
uint8_t  digits 
)

Prints an uint8 variable in base 2 with desired number of desired digits.

Definition at line 79 of file print.c.

void printFloat ( float  n,
uint8_t  decimal_places 
)

Convert float to string by immediately converting to a long integer, which contains.

NOTE: AVR '' and '/' integer operations are very efficient. Bitshifting speed-up

< Quickly convert values expected to be E0 to E-4.

< Add rounding factor. Ensures carryover through entire value.

< Get digit

< Fill in zeros to decimal point for (n < 1)

< Fill in leading zero, if needed.

Definition at line 129 of file print.c.

void printFloat_CoordValue ( float  n)

Floating value printing handlers for special variables types used in Grbl and are defined.

Floating value printing handlers for special variables types used in Grbl.

Definition at line 170 of file print.c.

void printFloat_RateValue ( float  n)

Definition at line 178 of file print.c.

void printInteger ( long  n)

Definition at line 113 of file print.c.

void printPgmString ( const char *  s)

Print a string stored in PGM-memory.

Definition at line 32 of file print.c.

void printString ( const char *  s)

Definition at line 25 of file print.c.