Lines Matching full:sh

13 static int cmd_get_device_id(const struct shell *sh, size_t argc, char **argv)  in cmd_get_device_id()  argument
22 shell_error(sh, "Not supported by hardware"); in cmd_get_device_id()
25 shell_error(sh, "Error: %zd", length); in cmd_get_device_id()
29 shell_fprintf(sh, SHELL_NORMAL, "Length: %zd\n", length); in cmd_get_device_id()
30 shell_fprintf(sh, SHELL_NORMAL, "ID: 0x"); in cmd_get_device_id()
33 shell_fprintf(sh, SHELL_NORMAL, "%02x", dev_id[i]); in cmd_get_device_id()
36 shell_fprintf(sh, SHELL_NORMAL, "\n"); in cmd_get_device_id()
41 static int cmd_get_device_eui64(const struct shell *sh, size_t argc, char **argv) in cmd_get_device_eui64() argument
50 shell_error(sh, "Not supported by hardware"); in cmd_get_device_eui64()
53 shell_error(sh, "Error: %d", ret); in cmd_get_device_eui64()
57 shell_fprintf(sh, SHELL_NORMAL, "EUI64: 0x"); in cmd_get_device_eui64()
60 shell_fprintf(sh, SHELL_NORMAL, "%02x", dev_eui64[i]); in cmd_get_device_eui64()
63 shell_fprintf(sh, SHELL_NORMAL, "\n"); in cmd_get_device_eui64()
121 static void print_all_reset_causes(const struct shell *sh, uint32_t cause) in print_all_reset_causes() argument
125 shell_print(sh, "- %s", in print_all_reset_causes()
131 static int cmd_show_reset_cause(const struct shell *sh, size_t argc, in cmd_show_reset_cause() argument
142 shell_error(sh, "Not supported by hardware"); in cmd_show_reset_cause()
145 shell_error(sh, "Error reading the cause [%d]", res); in cmd_show_reset_cause()
150 shell_print(sh, "reset caused by:"); in cmd_show_reset_cause()
151 print_all_reset_causes(sh, cause); in cmd_show_reset_cause()
153 shell_print(sh, "No reset cause set"); in cmd_show_reset_cause()
159 static int cmd_clear_reset_cause(const struct shell *sh, size_t argc, in cmd_clear_reset_cause() argument
169 shell_error(sh, "Not supported by hardware"); in cmd_clear_reset_cause()
171 shell_error(sh, "Error clearing the reset causes [%d]", res); in cmd_clear_reset_cause()
178 static int cmd_supported_reset_cause(const struct shell *sh, size_t argc, in cmd_supported_reset_cause() argument
189 shell_error(sh, "Not supported by hardware"); in cmd_supported_reset_cause()
191 shell_error(sh, "Could not get the supported reset causes [%d]", res); in cmd_supported_reset_cause()
196 shell_print(sh, "supported reset causes:"); in cmd_supported_reset_cause()
197 print_all_reset_causes(sh, cause); in cmd_supported_reset_cause()
199 shell_print(sh, "No causes supported"); in cmd_supported_reset_cause()