
Appendix
IBR115
User’s Manual
39
•
Ethernet TCP test
#server 192.168.1.123 run command “iperf3 -s”
#communicate with server 192.168.1.123 in tcp mode by iperf3
iperf3 -c 192.168.1.123 -i 1 -t 20 -w 32M -P 4
•
Ethernet UDP test
#server 192.168.1.123 run command “iperf3 -s”
#communicate with server 192.168.1.123 in udp mode by iperf3
iperf3 -c $SERVER_IP -u -i 1 -b 200M
K.
LVDS Test
//Open the file for reading and writing
framebuffer_fd = open("/dev/fb0", O_RDWR);
// Get fixed screen information
ioctl(framebuffer_fd, FBIOGET_FSCREENINFO, &finfo)
// Get variable screen information
ioctl(framebuffer_fd, FBIOGET_VSCREENINFO, &vinfo)
// Figure out the size of the screen in bytes
screensize = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel / 8;
// Map the device to memory
fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED, framebuffer_fd, 0);
// Figure out where in memory to put the pixel
memset(fbp, 0x00,screensize);
//draw point by fbp
long int location = 0;
location = (x+g_xoffset) * (g_bits_per_pixel/8) +
(y+g_yoffset) * g_line_length;
*(fbp + lo 0) = color_b;
*(fbp + lo 1) = color_g;
*(fbp + lo 2) = color_r;
//close framebuffer fd
close(framebuffer_fd);
Содержание IBR115
Страница 1: ...IBR115 NXP Cortex A9 i MX6 Dual Lite SoC User s Manual Version 1 0 Jan 2018...
Страница 8: ...viii IBR115 User s Manual This page is intentionally left blank...
Страница 15: ...General Information IBR115 User s Manual 7 1 1 7 Dimensions Unit mm...
Страница 16: ...8 IBR115 User s Manual Unit mm Dimensions of the optional heatsink...
Страница 20: ...12 IBR115 User s Manual 2 3 Jumper Connector Locations on IBR115 Board diagram of IBR115...
Страница 39: ...31 Appendix This section provides the information of reference code...