Function gx_uart_write


int gx_uart_write(int port, const unsigned char *buf, int len)

同步写指定长度的数据 以阻塞的方式写入 len

参数
  • port -- 端口

  • buf -- 需要写出的数据buf

  • len -- 数据长度

返回

int 实际写出数据长度