Appendix
IBR210 User’s Manual
43
G.
RS-485 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)))
H.
Audio Test
// play mp3 by audio (ALC5640)
gplay-1.0 /home/root/ testscript/audio/a.mp3 --audio-sink=”alsasink –device=hw:1”
// record mp3 by audio (ALC5640)
arecord -f cd $basepath/b.mp3 -D plughw:1,0
Note: for Android, please use apk to test.
Summary of Contents for IBR210
Page 1: ...IBR210 3 5 ARM based SBC With NXP Cortex A53 Quad i MX8M User s Manual Version 0 3 May 2020...
Page 8: ...viii IBR210 User s Manual This page is intentionally left blank...
Page 15: ...General Information IBR210 User s Manual 7 1 1 6 Dimensions Unit mm...
Page 16: ...8 IBR210 User s Manual IBR210 Reference Heat Sink...
Page 20: ...12 IBR210 User s Manual 2 3 Jumper Connector Locations on IBR210...
Page 36: ...28 IBR210 User s Manual This page was intentionally left blank...
Page 45: ...37 Appendix This section provides reference code information...