Lines Matching full:bitrate

377 	shell_print(sh, "max bitrate:     %d bps", bitrate_max);  in cmd_can_show()
440 uint32_t bitrate; in cmd_can_bitrate_set() local
449 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_bitrate_set()
451 shell_error(sh, "failed to parse bitrate"); in cmd_can_bitrate_set()
462 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set()
465 "bitrate %d bps, sample point %d.%d%% (err %d)", in cmd_can_bitrate_set()
466 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_bitrate_set()
479 shell_print(sh, "setting bitrate to %d bps, sample point %d.%d%% " in cmd_can_bitrate_set()
481 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_bitrate_set()
494 shell_print(sh, "setting bitrate to %d bps", bitrate); in cmd_can_bitrate_set()
496 err = can_set_bitrate(dev, bitrate); in cmd_can_bitrate_set()
498 shell_error(sh, "failed to set bitrate (err %d)", err); in cmd_can_bitrate_set()
511 uint32_t bitrate; in cmd_can_dbitrate_set() local
520 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_dbitrate_set()
522 shell_error(sh, "failed to parse data bitrate"); in cmd_can_dbitrate_set()
533 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set()
536 "data bitrate %d bps, sample point %d.%d%% (err %d)", in cmd_can_dbitrate_set()
537 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_dbitrate_set()
550 shell_print(sh, "setting data bitrate to %d bps, sample point %d.%d%% " in cmd_can_dbitrate_set()
552 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_dbitrate_set()
565 shell_print(sh, "setting data bitrate to %d bps", bitrate); in cmd_can_dbitrate_set()
567 err = can_set_bitrate_data(dev, bitrate); in cmd_can_dbitrate_set()
569 shell_error(sh, "failed to set data bitrate (err %d)", err); in cmd_can_dbitrate_set()
1070 SHELL_CMD_ARG(bitrate, &dsub_can_device_name,
1071 "Set CAN controller bitrate (sample point and SJW optional)\n"
1072 "Usage: can bitrate <device> <bitrate> [sample point] [sjw]",
1076 "Set CAN controller data phase bitrate (sample point and SJW optional)\n"
1077 "Usage: can dbitrate <device> <data phase bitrate> [sample point] [sjw]",