I'm looking at this code that sends a hexadecimal value to a serial device.
I'm learning to port code to pure c on a microcontroller. The uart write function declaration for the microcontroller is below. It says that it performs a
single character write
. Is the hexadecimal value a single character.
Does this mean that you can can this function as
/** * Perform a single character write on the UART interface. * This is a blocking synchronous call. * * @brief UART character data write. * @param [in] uart UART index. * @param [in] data Data to write to UART. * @return ti_rc_t QM_RC_OK on success, error code otherwise. */ ti_rc_t qm_uart_write(const ti_uart_t uart, const uint8_t data);