VSF Documented
Data Fields
vsf_usart_status_t Struct Reference

USART status information structure Contains the current status of USART operations and FIFO thresholds. More...

#include <uart.h>

Data Fields

union { 
 
};  
 
union { 
 
   struct { 
 
      uint32_t   is_busy: 1 
 USART is busy with any operation. More...
 
      uint32_t   is_tx_busy: 1 
 TX is busy transmitting data. More...
 
      uint32_t   is_rx_busy: 1 
 RX is busy receiving data. More...
 
      uint32_t   tx_fifo_thresh: 8 
 TX FIFO threshold level (0-255) More...
 
      uint32_t   rx_fifo_thresh: 8 
 RX FIFO threshold level (0-255) More...
 
   }  
 
};  
 
union { 
 
   struct { 
 
      uint32_t   parity_err: 1 
 
      uint32_t   frame_err: 1 
 
      uint32_t   noise_err: 1 
 
      uint32_t   overrun_err: 1 
 
      uint32_t   idle: 1 
 
      uint32_t   rfne: 1 
 
      uint32_t   trans_complete: 1 
 
      uint32_t   tfnf: 1 
 
      uint32_t   __dummy0: 1 
 
      uint32_t   cts_changed: 1 
 
      uint32_t   cts_level: 1 
 
      uint32_t   rx_timeouted: 1 
 
      uint32_t   __dummy1: 4 
 
      uint32_t   is_busy: 1 
 
      uint32_t   __dummy2: 15 
 
   }  
 
   uint32_t   value 
 
};  
 
union { 
 
   struct { 
 
      uint32_t   cts: 1 
 
      uint32_t   dsr: 1 
 
      uint32_t   dcd: 1 
 
      uint32_t   is_busy: 1 
 
      uint32_t   rxfe: 1 
 
      uint32_t   txff: 1 
 
      uint32_t   rxff: 1 
 
      uint32_t   txfe: 1 
 
      uint32_t   ri: 1 
 
   }  
 
   uint32_t   value 
 
};  
 
uint8_t is_busy: 1
 
uint8_t rx_error_detected: 1
 
uint8_t tx_error_detected: 1
 
uint8_t rx_cancel: 1
 
uint8_t tx_cancel: 1
 
uint32_t more_status: 27
 
union { 
 
   struct { 
 
      uint32_t   parity_err: 1 
 
      uint32_t   frame_err: 1 
 
      uint32_t   noise_err: 1 
 
      uint32_t   overrun_err: 1 
 
      uint32_t   idle: 1 
 
      uint32_t   rfne: 1 
 
      uint32_t   trans_complete: 1 
 
      uint32_t   tfnf: 1 
 
      uint32_t   __dummy0: 1 
 
      uint32_t   cts_changed: 1 
 
      uint32_t   cts_level: 1 
 
      uint32_t   rx_timeouted: 1 
 
      uint32_t   __dummy1: 4 
 
      uint32_t   is_busy: 1 
 
      uint32_t   __dummy2: 15 
 
   }  
 
   uint32_t   value 
 
};  
 
union { 
 
};  
 
union { 
 
   struct { 
 
      uint32_t   parity_err: 1 
 
      uint32_t   frame_err: 1 
 
      uint32_t   noise_err: 1 
 
      uint32_t   overrun_err: 1 
 
      uint32_t   idle: 1 
 
      uint32_t   rfne: 1 
 
      uint32_t   trans_complete: 1 
 
      uint32_t   tfnf: 1 
 
      uint32_t   __dummy0: 1 
 
      uint32_t   cts_changed: 1 
 
      uint32_t   cts_level: 1 
 
      uint32_t   rx_timeouted: 1 
 
      uint32_t   __dummy1: 4 
 
      uint32_t   is_busy: 1 
 
      uint32_t   __dummy2: 15 
 
   }  
 
   uint32_t   value 
 
};  
 
union { 
 
   struct { 
 
      uint32_t   parity_err: 1 
 
      uint32_t   frame_err: 1 
 
      uint32_t   noise_err: 1 
 
      uint32_t   overrun_err: 1 
 
      uint32_t   idle: 1 
 
      uint32_t   rfne: 1 
 
      uint32_t   trans_complete: 1 
 
      uint32_t   tfnf: 1 
 
      uint32_t   __dummy0: 1 
 
      uint32_t   cts_changed: 1 
 
      uint32_t   cts_level: 1 
 
      uint32_t   rx_timeouted: 1 
 
      uint32_t   __dummy1: 4 
 
      uint32_t   is_busy: 1 
 
      uint32_t   __dummy2: 15 
 
   }  
 
   uint32_t   value 
 
};  
 
union { 
 
   struct { 
 
      uint32_t   is_busy: 1 
 
      uint32_t   is_tx_busy: 1 
 
      uint32_t   is_rx_busy: 1 
 
      uint32_t   tx_fifo_thresh: 8 
 
      uint32_t   rx_fifo_thresh: 8 
 
   }  
 
};  
 
union { 
 
   uint32_t   value 
 
};  
 

Detailed Description

USART status information structure Contains the current status of USART operations and FIFO thresholds.

Note
It's not obligated to inherit from vsf_peripheral_status_t. If not, there MUST be a is_busy bit in vsf_usart_status_t.

Field Documentation

◆ [union]

union { ... } vsf_usart_status_t

◆ is_busy [1/2]

uint32_t vsf_usart_status_t::is_busy

USART is busy with any operation.

◆ is_tx_busy

uint32_t vsf_usart_status_t::is_tx_busy

TX is busy transmitting data.

◆ is_rx_busy

uint32_t vsf_usart_status_t::is_rx_busy

RX is busy receiving data.

◆ tx_fifo_thresh

uint32_t vsf_usart_status_t::tx_fifo_thresh

TX FIFO threshold level (0-255)

◆ rx_fifo_thresh

uint32_t vsf_usart_status_t::rx_fifo_thresh

RX FIFO threshold level (0-255)

◆ [union]

union { ... } vsf_usart_status_t

◆ parity_err

uint32_t vsf_usart_status_t::parity_err

◆ frame_err

uint32_t vsf_usart_status_t::frame_err

◆ noise_err

uint32_t vsf_usart_status_t::noise_err

◆ overrun_err

uint32_t vsf_usart_status_t::overrun_err

◆ idle

uint32_t vsf_usart_status_t::idle

◆ rfne

uint32_t vsf_usart_status_t::rfne

◆ trans_complete

uint32_t vsf_usart_status_t::trans_complete

◆ tfnf

uint32_t vsf_usart_status_t::tfnf

◆ __dummy0

uint32_t vsf_usart_status_t::__dummy0

◆ cts_changed

uint32_t vsf_usart_status_t::cts_changed

◆ cts_level

uint32_t vsf_usart_status_t::cts_level

◆ rx_timeouted

uint32_t vsf_usart_status_t::rx_timeouted

◆ __dummy1

uint32_t vsf_usart_status_t::__dummy1

◆ __dummy2

uint32_t vsf_usart_status_t::__dummy2

◆ value

uint32_t vsf_usart_status_t::value

◆ [union]

union { ... } vsf_usart_status_t

◆ cts

uint32_t vsf_usart_status_t::cts

◆ dsr

uint32_t vsf_usart_status_t::dsr

◆ dcd

uint32_t vsf_usart_status_t::dcd

◆ rxfe

uint32_t vsf_usart_status_t::rxfe

◆ txff

uint32_t vsf_usart_status_t::txff

◆ rxff

uint32_t vsf_usart_status_t::rxff

◆ txfe

uint32_t vsf_usart_status_t::txfe

◆ ri

uint32_t vsf_usart_status_t::ri

◆ [union]

union { ... } vsf_usart_status_t

◆ is_busy [2/2]

uint8_t vsf_usart_status_t::is_busy

◆ rx_error_detected

uint8_t vsf_usart_status_t::rx_error_detected

◆ tx_error_detected

uint8_t vsf_usart_status_t::tx_error_detected

◆ rx_cancel

uint8_t vsf_usart_status_t::rx_cancel

◆ tx_cancel

uint8_t vsf_usart_status_t::tx_cancel

◆ more_status

uint32_t vsf_usart_status_t::more_status

◆ [union]

union { ... } vsf_usart_status_t

◆ [union]

union { ... } vsf_usart_status_t

◆ [union]

union { ... } vsf_usart_status_t

◆ [union]

union { ... } vsf_usart_status_t

◆ [union]

union { ... } vsf_usart_status_t

◆ [union]

union { ... } vsf_usart_status_t
Generated from commit: vsfteam/vsf@2b286be