Hello Diego,
Thanks for you usefull advice, but i feel confused about the main chip communicate with the sc18im700.
I thought two methods to do it .
Fristly, uart driver + i2c controller driver + i2c algorithm
set_data(){
Ttyfd = open(TtyName, O_RDWR | O_NDELAY, 0);
write(Ttyfd,"****", length);
close(Ttyfd);
}
get_data(){
Ttyfd = open(TtyName, O_RDWR | O_NDELAY, 0);
read(Ttyfd, buffer, length);
close(Ttyfd);
}
Secondly, serio driver + i2c controller driver + i2c algorithm , i haven't found the usefull serio information.
So which method should i choose ?
Best regards
Kenio