1#ifndef INCLUDE_GUARD__TELECOMMAND_ARGS_HELPERS_H__
2#define INCLUDE_GUARD__TELECOMMAND_ARGS_HELPERS_H__
9uint8_t
TCMD_extract_hex_array_arg(
const char *args_str, uint8_t arg_index, uint8_t result_array[], uint16_t result_array_size, uint16_t *result_length);
uint8_t TCMD_ascii_to_int64(const char *str, uint32_t str_len, int64_t *result)
Extracts an int64, starting from the beginning of str, to a maximum length of str_len.
Definition telecommand_args_helpers.c:98
uint8_t TCMD_extract_string_arg(const char *str, uint8_t arg_index, char *result, uint16_t result_max_len)
Extracts the nth comma-separated argument from the input string, assuming it's a string.
Definition telecommand_args_helpers.c:178
uint8_t TCMD_extract_int64_arg(const char *str, uint32_t str_len, uint8_t arg_index, int64_t *result)
Extracts the nth comma-separated argument from the input string, assuming it's an int64.
Definition telecommand_args_helpers.c:136
uint8_t TCMD_extract_double_arg(const char *str, uint32_t str_len, uint8_t arg_index, double *result)
Extracts the nth comma-separated argument from the input string, assuming it's a double.
Definition telecommand_args_helpers.c:377
uint8_t TCMD_extract_hex_array_arg(const char *args_str, uint8_t arg_index, uint8_t result_array[], uint16_t result_array_size, uint16_t *result_length)
Extracts the nth comma-separated argument from the input string, assuming it's a hex string.
Definition telecommand_args_helpers.c:240
uint8_t TCMD_extract_uint64_arg(const char *str, uint32_t str_len, uint8_t arg_index, uint64_t *result)
Extracts the nth comma-separated argument from the input string, assuming it's a uint64.
Definition telecommand_args_helpers.c:58
uint8_t TCMD_ascii_to_double(const char *str, uint32_t str_len, double *result)
Extracts the longest substring of double characters, starting from the beginning of the string,...
Definition telecommand_args_helpers.c:334
uint8_t TCMD_ascii_to_uint64(const char *str, uint32_t str_len, uint64_t *result)
Extracts a uint64, starting from the beginning of str, to a maximum length of str_len.
Definition telecommand_args_helpers.c:19