IBR215 User Manual
47
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_cflag &= ~CRTSCTS;
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
Yocto/debian/ubuntu
// 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
for android:
please record and playback apk
Summary of Contents for IBR215
Page 10: ...General Information IBR215 User Manual 5 1 1 5 Product View...
Page 11: ...General Information IBR215 User Manual 6 1 1 6 Dimensions IBR215 Unit mm IBR215 IO...
Page 15: ...General Information IBR215 User Manual 10 1 2 3 Connectors on the IBR215 Main Board...
Page 25: ...General Information IBR215 User Manual 20 1 2 5 Connector Locations on the IBR215 IO Board...
Page 46: ...41 Appendix This section provides the information of reference code...
Page 58: ...IBR215 User Manual 53...