RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros
UART status register (STATUS)

This group contains register bit definitions. More...

Macros

#define APBUART_STATUS_RCNT_SHIFT   26
 
#define APBUART_STATUS_RCNT_MASK   0xfc000000U
 
#define APBUART_STATUS_RCNT_GET(_reg)
 
#define APBUART_STATUS_RCNT_SET(_reg, _val)
 
#define APBUART_STATUS_RCNT(_val)
 
#define APBUART_STATUS_TCNT_SHIFT   20
 
#define APBUART_STATUS_TCNT_MASK   0x3f00000U
 
#define APBUART_STATUS_TCNT_GET(_reg)
 
#define APBUART_STATUS_TCNT_SET(_reg, _val)
 
#define APBUART_STATUS_TCNT(_val)
 
#define APBUART_STATUS_RF   0x400U
 
#define APBUART_STATUS_TF   0x200U
 
#define APBUART_STATUS_RH   0x100U
 
#define APBUART_STATUS_TH   0x80U
 
#define APBUART_STATUS_FE   0x40U
 
#define APBUART_STATUS_PE   0x20U
 
#define APBUART_STATUS_OV   0x10U
 
#define APBUART_STATUS_BR   0x8U
 
#define APBUART_STATUS_TE   0x4U
 
#define APBUART_STATUS_TS   0x2U
 
#define APBUART_STATUS_DR   0x1U
 

Detailed Description

This group contains register bit definitions.

Macro Definition Documentation

◆ APBUART_STATUS_RCNT

#define APBUART_STATUS_RCNT (   _val)
Value:
( ( ( _val ) << APBUART_STATUS_RCNT_SHIFT ) & \
APBUART_STATUS_RCNT_MASK )

◆ APBUART_STATUS_RCNT_GET

#define APBUART_STATUS_RCNT_GET (   _reg)
Value:
( ( ( _reg ) & APBUART_STATUS_RCNT_MASK ) >> \
APBUART_STATUS_RCNT_SHIFT )

◆ APBUART_STATUS_RCNT_SET

#define APBUART_STATUS_RCNT_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~APBUART_STATUS_RCNT_MASK ) | \
( ( ( _val ) << APBUART_STATUS_RCNT_SHIFT ) & \
APBUART_STATUS_RCNT_MASK ) )

◆ APBUART_STATUS_TCNT

#define APBUART_STATUS_TCNT (   _val)
Value:
( ( ( _val ) << APBUART_STATUS_TCNT_SHIFT ) & \
APBUART_STATUS_TCNT_MASK )

◆ APBUART_STATUS_TCNT_GET

#define APBUART_STATUS_TCNT_GET (   _reg)
Value:
( ( ( _reg ) & APBUART_STATUS_TCNT_MASK ) >> \
APBUART_STATUS_TCNT_SHIFT )

◆ APBUART_STATUS_TCNT_SET

#define APBUART_STATUS_TCNT_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~APBUART_STATUS_TCNT_MASK ) | \
( ( ( _val ) << APBUART_STATUS_TCNT_SHIFT ) & \
APBUART_STATUS_TCNT_MASK ) )