Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
qm_uart_transfer_t Struct Reference
UART

UART asynchronous transfer structure. More...

`#include <qm_uart.h>`

## Data Fields
uint8_t * | data
| Pre-allocated write or read buffer. More...
uint32_t | data_len
| Number of bytes to transfer. More...
void(* | callback )(void *data, int error, qm_uart_status_t status, uint32_t len)
| Transfer callback. More...
void * | callback_data
| Callback identifier. More...

## Detailed Description

UART asynchronous transfer structure.

Definition at line 76 of file qm_uart.h.

## Field Documentation

void(* qm_uart_transfer_t::callback)(void *data, int error, qm_uart_status_t status, uint32_t len)

Transfer callback.

Parameters

  [in] | data | Callback user data.
  [in] | error | 0 on success. Negative errno for possible error codes.
  [in] | status | UART module status
  [in] | len | Length of the UART transfer if successful, 0 otherwise.

Definition at line 89 of file qm_uart.h.

Referenced by qm_uart_irq_read_terminate(), and qm_uart_irq_write_terminate().

void* qm_uart_transfer_t::callback_data

Callback identifier.

Definition at line 91 of file qm_uart.h.

Referenced by qm_uart_irq_read_terminate(), and qm_uart_irq_write_terminate().

uint8_t* qm_uart_transfer_t::data

Pre-allocated write or read buffer.

Definition at line 77 of file qm_uart.h.

Referenced by qm_uart_dma_read(), and qm_uart_dma_write().

uint32_t qm_uart_transfer_t::data_len

Number of bytes to transfer.

Definition at line 78 of file qm_uart.h.

Referenced by qm_uart_dma_read(), and qm_uart_dma_write().