MeterLogger
|
Go to the source code of this file.
Functions | |
ICACHE_FLASH_ATTR uint16_t | ccit_crc16 (uint16_t crc16, uint8_t *data_p, unsigned int length) |
ICACHE_FLASH_ATTR void | w_to_kw_str (char *w, char *kw) |
ICACHE_FLASH_ATTR void | kw_to_w_str (char *kw, char *w) |
ICACHE_FLASH_ATTR void | mw_to_w_str (char *mw, char *w) |
ICACHE_FLASH_ATTR void | divide_str_by_10 (char *str, char *decimal_str) |
ICACHE_FLASH_ATTR void | divide_str_by_100 (char *str, char *decimal_str) |
ICACHE_FLASH_ATTR void | divide_str_by_1000 (char *str, char *decimal_str) |
ICACHE_FLASH_ATTR void | cleanup_decimal_str (char *decimal_str, char *cleaned_up_str, unsigned int length) |
ICACHE_FLASH_ATTR unsigned int | decimal_number_length (int n) |
ICACHE_FLASH_ATTR int | int_pow (int x, int y) |
ICACHE_FLASH_ATTR uint16_t ccit_crc16 | ( | uint16_t | crc16, |
uint8_t * | data_p, | ||
unsigned int | length | ||
) |
Definition at line 47 of file utils.c.
Referenced by cfg_load(), cfg_save(), and kmp_crc16().
ICACHE_FLASH_ATTR void cleanup_decimal_str | ( | char * | decimal_str, |
char * | cleaned_up_str, | ||
unsigned int | length | ||
) |
Definition at line 151 of file utils.c.
References decimal_number_length(), ICACHE_FLASH_ATTR, memcpy, NULL, strcat, strncpy, strstr, and tfp_snprintf().
Referenced by parse_en61107_frame(), and parse_mc66cde_standard_data_1_frame().
ICACHE_FLASH_ATTR unsigned int decimal_number_length | ( | int | n | ) |
Definition at line 191 of file utils.c.
References ICACHE_FLASH_ATTR.
Referenced by cleanup_decimal_str(), and kmp_value_to_string().
ICACHE_FLASH_ATTR void divide_str_by_10 | ( | char * | str, |
char * | decimal_str | ||
) |
Definition at line 110 of file utils.c.
References tfp_snprintf().
Referenced by parse_mc66cde_standard_data_1_frame().
ICACHE_FLASH_ATTR void divide_str_by_100 | ( | char * | str, |
char * | decimal_str | ||
) |
Definition at line 128 of file utils.c.
References tfp_snprintf().
Referenced by parse_mc66cde_inst_values_frame(), and parse_mc66cde_standard_data_1_frame().
ICACHE_FLASH_ATTR void divide_str_by_1000 | ( | char * | str, |
char * | decimal_str | ||
) |
Definition at line 146 of file utils.c.
References w_to_kw_str().
ICACHE_FLASH_ATTR int int_pow | ( | int | x, |
int | y | ||
) |
Definition at line 203 of file utils.c.
Referenced by kmp_value_to_double(), kmp_value_to_string(), and kw_to_w_str().
ICACHE_FLASH_ATTR void kw_to_w_str | ( | char * | kw, |
char * | w | ||
) |
Definition at line 67 of file utils.c.
References int_pow(), strlen, and tfp_snprintf().
Referenced by cgiSetup(), and mw_to_w_str().
ICACHE_FLASH_ATTR void mw_to_w_str | ( | char * | mw, |
char * | w | ||
) |
Definition at line 105 of file utils.c.
References kw_to_w_str().
Referenced by en61107_get_received_energy_kwh(), and kmp_get_received_energy_kwh().
ICACHE_FLASH_ATTR void w_to_kw_str | ( | char * | w, |
char * | kw | ||
) |
Definition at line 54 of file utils.c.
References tfp_snprintf().
Referenced by divide_str_by_1000(), and tplSetup().