#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 tm * | get_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] |
#define MAX_PRECISION 10 |
uint8_t calc_checksum | ( | uint8_t * | data, |
uint32_t | size | ||
) |
float convert_delta_vector_to_unit_vector | ( | float * | vector | ) |
bool delay_sec | ( | float | seconds, |
delaymode_t | mode | ||
) |
void dummy_handler | ( | void | ) |
char* ftoa | ( | float | n, |
uint8_t | decimal_places | ||
) |
struct tm* get_datetime | ( | const char * | s | ) |
bool isintf | ( | float | value | ) |
bool read_float | ( | char * | line, |
uint_fast8_t * | char_counter, | ||
float * | float_ptr | ||
) |
status_code_t read_uint | ( | char * | line, |
uint_fast8_t * | char_counter, | ||
uint32_t * | uint_ptr | ||
) |
char* strcaps | ( | char * | s | ) |
char* trim_float | ( | char * | s | ) |
char* uitoa | ( | uint32_t | n | ) |
char const* const axis_letter[N_AXIS] |