Lines Matching +full:double +full:- +full:output +full:- +full:range
4 * SPDX-License-Identifier: Apache-2.0
34 static const char pattern[] = "SYS-T RAW DATA: ";
42 out_ctx->buf[out_ctx->control_block->offset] = (uint8_t)c; in out_func()
43 out_ctx->control_block->offset++; in out_func()
45 __ASSERT_NO_MSG(out_ctx->control_block->offset <= out_ctx->size); in out_func()
47 if (out_ctx->control_block->offset == out_ctx->size) { in out_func()
58 p->current |= (n << 4); in stp_write_putNibble()
59 p->byteDone = !p->byteDone; in stp_write_putNibble()
61 if (p->byteDone) { in stp_write_putNibble()
62 out_func(p->current, systh->systh_platform.log_output); in stp_write_putNibble()
63 p->current = 0; in stp_write_putNibble()
65 p->current >>= 4; in stp_write_putNibble()
72 if (!p->byteDone) { in stp_write_flush()
115 delta = mipi_syst_get_epoch() - p->timestamp; in deltaTime()
207 p->master = 0; in stp_write_version()
208 p->channel = 0; in stp_write_version()
225 if (!(p->recordCount++ % 20)) { in stp_write_setMC()
231 if (p->master != master) { in stp_write_setMC()
236 p->master = master; in stp_write_setMC()
237 p->channel = 0; in stp_write_setMC()
240 if (p->channel != channel) { in stp_write_setMC()
245 p->channel = channel; in stp_write_setMC()
255 for (i = n - 1; i >= 0; --i) {
261 out_func(c, systh->systh_platform.log_output);
263 out_func(valToHex[c >> 0x4], systh->systh_platform.log_output);
264 out_func(valToHex[c & 0xF], systh->systh_platform.log_output);
274 systh->systh_header->systh_platform.stpWriter;
286 systh->systh_header->systh_platform.stpWriter;
298 systh->systh_header->systh_platform.stpWriter;
311 systh->systh_header->systh_platform.stpWriter;
324 systh->systh_header->systh_platform.stpWriter;
327 systh->systh_platform.master,
328 systh->systh_platform.channel);
336 out_func(pattern[i], systh->systh_platform.log_output);
347 systh->systh_header->systh_platform.stpWriter;
350 systh->systh_platform.master,
351 systh->systh_platform.channel);
363 systh->systh_header->systh_platform.stpWriter;
366 systh->systh_platform.master,
367 systh->systh_platform.channel);
379 systh->systh_header->systh_platform.stpWriter;
386 uint32_t flag = systh->systh_platform.flag;
393 out_func('\n', systh->systh_platform.log_output);
395 out_func('\r', systh->systh_platform.log_output);
396 out_func('\n', systh->systh_platform.log_output);
414 handle->systh_platform.flag = (mipi_syst_u32)flag;
415 handle->systh_platform.log_output = (struct log_output *)log_output;
421 * @brief Set module ID in the origin unit of Sys-T message
425 * Otherwise, this is a no-op as the module ID is set to
429 * @param module_id Module ID to be set (range 0x00 - 0x7F)
434 handle->systh_tag.et_modunit =
444 * Platform specific SyS-T handle initialization hook function
446 * @param systh pointer to the SyS-T handle structure
456 systh->systh_platform.channel = channel++;
457 systh->systh_platform.master = master;
478 * @param systh pointer to the new SyS-T handle structure
493 systh->systh_platform.stpWriter = &writer_state;
497 systh->systh_inith = platform_handle_init;
498 systh->systh_releaseh = platform_handle_release;
501 systh->systh_platform.write_d8 = write_d8;
502 systh->systh_platform.write_d16 = write_d16;
503 systh->systh_platform.write_d32 = write_d32;
505 systh->systh_platform.write_d64 = write_d64;
507 systh->systh_platform.write_d32ts = write_d32ts;
508 systh->systh_platform.write_d32mts = write_d32mts;
509 systh->systh_platform.write_d64mts = write_d64mts;
510 systh->systh_platform.write_flag = write_flag;
557 hexdump_buf[sizeof(hexdump_buf) - 1] = '\0';
607 length -= part_len;
662 double d;
714 val.d = (double)va_arg(ap, double);
715 arg_sz = sizeof(double);
719 /* Handle long double as double */
720 val.d = (double)va_arg(ap, long double);
721 arg_sz = sizeof(double);
746 return -EINVAL;
764 payload_sz = argp - payload_buf;
777 return -ENOSPC;
781 void log_output_msg_syst_process(const struct log_output *output, argument
786 update_systh_platform_data(&log_syst_handle, output, flag);
793 /* Set the log source ID as Sys-T message module ID */
812 if (is_in_log_strings_section(pkg_hdr->fmt)) {
813 if ((pkg_hdr->hdr.desc.pkg_flags & CBPRINTF_PACKAGE_ARGS_ARE_TAGGED) ==
850 CHECKIF((pkg_desc->pkg_flags & CBPRINTF_PACKAGE_ARGS_ARE_TAGGED) ==
854 * and should not be used for non-tagged ones.