Home
last modified time | relevance | path

Searched refs:str_buf (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c62 static char str_buf[256]; variable
354 len = snprintf(str_buf, sizeof(str_buf), "Temperature:%d.%d C\n", in show_sensors_data()
356 print_line(FONT_SMALL, line++, str_buf, len, false); in show_sensors_data()
358 len = snprintf(str_buf, sizeof(str_buf), "Humidity:%d%%\n", in show_sensors_data()
360 print_line(FONT_SMALL, line++, str_buf, len, false); in show_sensors_data()
367 len = snprintf(str_buf, sizeof(str_buf), "AX :%10.3f\n", in show_sensors_data()
369 print_line(FONT_SMALL, line++, str_buf, len, false); in show_sensors_data()
371 len = snprintf(str_buf, sizeof(str_buf), "AY :%10.3f\n", in show_sensors_data()
373 print_line(FONT_SMALL, line++, str_buf, len, false); in show_sensors_data()
375 len = snprintf(str_buf, sizeof(str_buf), "AZ :%10.3f\n", in show_sensors_data()
[all …]
/Zephyr-latest/drivers/display/
Dmb_display.c59 char str_buf[CONFIG_MICROBIT_DISPLAY_STR_MAX]; member
337 vsnprintk(disp->str_buf, sizeof(disp->str_buf), fmt, ap); in mb_display_print()
340 if (disp->str_buf[0] == '\0') { in mb_display_print()
344 disp->str = disp->str_buf; in mb_display_print()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c1124 uint8_t str_buf[sizeof(TEST_STR_SMALL) - 1]; in test_msg_trunc() local
1140 memset(str_buf, 0, sizeof(str_buf)); in test_msg_trunc()
1141 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC); in test_msg_trunc()
1143 zassert_mem_equal(str_buf, TEST_STR_SMALL, 2, "invalid rx data"); in test_msg_trunc()
1144 zassert_equal(str_buf[2], 0, "received more than requested"); in test_msg_trunc()
1147 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_DONTWAIT); in test_msg_trunc()
1156 memset(str_buf, 0, sizeof(str_buf)); in test_msg_trunc()
1157 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC | ZSOCK_MSG_PEEK); in test_msg_trunc()
1161 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_TRUNC); in test_msg_trunc()
1164 zassert_mem_equal(str_buf, BUF_AND_SIZE(TEST_STR_SMALL), in test_msg_trunc()