
36
IBR115
User’s Manual
F.
RS-232 Test
//open ttymxc1
fd = open(/dev/ttymxc1,O_RDWR );
//set speed
tcgetattr(fd, &opt);
cfsetispeed(&opt, speed);
cfsetospeed(&opt, speed);
tcsetattr(fd, TCSANOW, &opt)
//get_speed
tcgetattr(fd, &opt);
speed = cfgetispeed(&opt);
//set_parity
// options.c_cflag
options.c_cflag &= ~CSIZE;
options.c_cflag &= ~CSIZE;
options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); /*Input*/
options.c_oflag &= ~OPOST; /*Output*/
//options.c_cc
options.c_cc[VTIME] = 150;
options.c_cc[VMIN] = 0;
#set parity
tcsetattr(fd, TCSANOW, &options)
//write ttymxc1
write(fd, write_buf, sizeof(write_buf));
//read ttymxc1
read(fd, read_buf, sizeof(read_buf)))
Содержание 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...