Function rc_uart_write#

Function Documentation#

int rc_uart_write(int bus, uint8_t *data, size_t bytes)#

Sends data out the uart port.

Parameters:
  • bus[in] The bus number /dev/ttyO{bus}

  • data[in] data pointer

  • bytes[in] number of bytes to send

Returns:

returns number of bytes sent or -1 on error