Silicon Laboratories SiM3U1xx Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
AN758
12 Rev. 0.1
5.2.4. uart_send_data
UART0 send data.
Syntax
void uart_send_data(unsigned char *data, unsigned int count)
Parameters
data: pointer to send data buffer
count: Number of bytes to send
Return Value
None
Description
This function send data from data buffer to UART FIFO, transmit data bytes specified in count.
Example
uint32_t send_count = 4;
static uint8_t out_buff[64];
uart_send_data(out_buff,sendcount);
5.2.5. uart_send_byte
UART0 send one byte.
Syntax
void uart_send_byte(uint8_t data)
Parameters
data: Byte to send
Return Value
None
Description
This function sends one byte data to UART FIFO
Example
uint8_t out_byte = 0x55;
uart_send_byte(out_byte);
5.2.6. uart_get_byte
UART0 get one byte.
Syntax
uint8_t uart_get_byte()
Parameters
None
Return Value
Byte received
Description
This function gets one byte data from UART FIFO
Example
uint8_t in_byte;
In_byte = uart_get_byte();
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 29 30

Comentarios a estos manuales

Sin comentarios