第一个不知道$fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);dio_close($fd);//dio_stat -- Gets stat information about the file descriptor fd //dio_read -- Reads bytes from a file descriptor //dio_write -- Writes data to fd with optional truncation at length 手册上面都有,不过我这手册介绍的都不详细..LZ自己多看看手册..
//dio_read -- Reads bytes from a file descriptor
//dio_write -- Writes data to fd with optional truncation at length 手册上面都有,不过我这手册介绍的都不详细..LZ自己多看看手册..