Lines Matching full:faults
59 static void get_faults(uint8_t *faults, uint8_t faults_size, uint8_t *dst, uint8_t *count) in get_faults() argument
64 if (faults[i]) { in get_faults()
65 *dst++ = faults[i]; in get_faults()
72 uint16_t *company_id, uint8_t *faults, uint8_t *fault_count) in fault_get_cur() argument
74 shell_print_ctx("Sending current faults"); in fault_get_cur()
79 get_faults(cur_faults, sizeof(cur_faults), faults, fault_count); in fault_get_cur()
85 uint8_t *test_id, uint8_t *faults, uint8_t *fault_count) in fault_get_reg() argument
88 shell_print_ctx("Faults requested for unknown Company ID" in fault_get_reg()
93 shell_print_ctx("Sending registered faults"); in fault_get_reg()
97 get_faults(reg_faults, sizeof(reg_faults), faults, fault_count); in fault_get_reg()
166 static void show_faults(uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count) in show_faults() argument
172 "0x%04x: no faults", test_id, cid); in show_faults()
180 shell_print_ctx("\t0x%02x", faults[i]); in show_faults()
185 uint8_t test_id, uint16_t cid, uint8_t *faults, in health_current_status() argument
189 show_faults(test_id, cid, faults, fault_count); in health_current_status()
193 uint8_t test_id, uint16_t cid, uint8_t *faults, in health_fault_status() argument
197 show_faults(test_id, cid, faults, fault_count); in health_fault_status()
1131 shell_print(sh, "No space to store more registered faults"); in cmd_add_fault()
1154 shell_print(sh, "All current faults cleared"); in cmd_del_fault()