grblHAL core  20241107
nuts_bolts.c File Reference
#include <math.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include "hal.h"
#include "protocol.h"
#include "state_machine.h"
#include "nuts_bolts.h"

Macros

#define MAX_PRECISION   10
 

Functions

char * uitoa (uint32_t n)
 
char * ftoa (float n, uint8_t decimal_places)
 
char * trim_float (char *s)
 
status_code_t read_uint (char *line, uint_fast8_t *char_counter, uint32_t *uint_ptr)
 
bool read_float (char *line, uint_fast8_t *char_counter, float *float_ptr)
 
bool isintf (float value)
 
bool delay_sec (float seconds, delaymode_t mode)
 
float convert_delta_vector_to_unit_vector (float *vector)
 
struct tmget_datetime (const char *s)
 
uint8_t calc_checksum (uint8_t *data, uint32_t size)
 
char * strcaps (char *s)
 
void dummy_handler (void)
 

Variables

char const *const axis_letter [N_AXIS]
 

Macro Definition Documentation

◆ MAX_PRECISION

#define MAX_PRECISION   10

Function Documentation

◆ calc_checksum()

uint8_t calc_checksum ( uint8_t *  data,
uint32_t  size 
)

◆ convert_delta_vector_to_unit_vector()

float convert_delta_vector_to_unit_vector ( float *  vector)

◆ delay_sec()

bool delay_sec ( float  seconds,
delaymode_t  mode 
)

◆ dummy_handler()

void dummy_handler ( void  )

◆ ftoa()

char* ftoa ( float  n,
uint8_t  decimal_places 
)

◆ get_datetime()

struct tm* get_datetime ( const char *  s)

◆ isintf()

bool isintf ( float  value)

◆ read_float()

bool read_float ( char *  line,
uint_fast8_t *  char_counter,
float *  float_ptr 
)

◆ read_uint()

status_code_t read_uint ( char *  line,
uint_fast8_t *  char_counter,
uint32_t *  uint_ptr 
)

◆ strcaps()

char* strcaps ( char *  s)

◆ trim_float()

char* trim_float ( char *  s)

◆ uitoa()

char* uitoa ( uint32_t  n)

Variable Documentation

◆ axis_letter

char const* const axis_letter[N_AXIS]