Silicon Laboratories SiM3U1xx Manual do Utilizador Página 12

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 30
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 29 30

Comentários a estes Manuais

Sem comentários