RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros
Configuration Register (CanCONF)

This group contains register bit definitions. More...

Macros

#define GRCAN_CANCONF_SCALER_SHIFT   24
 
#define GRCAN_CANCONF_SCALER_MASK   0xff000000U
 
#define GRCAN_CANCONF_SCALER_GET(_reg)
 
#define GRCAN_CANCONF_SCALER_SET(_reg, _val)
 
#define GRCAN_CANCONF_SCALER(_val)
 
#define GRCAN_CANCONF_PS1_SHIFT   20
 
#define GRCAN_CANCONF_PS1_MASK   0xf00000U
 
#define GRCAN_CANCONF_PS1_GET(_reg)
 
#define GRCAN_CANCONF_PS1_SET(_reg, _val)
 
#define GRCAN_CANCONF_PS1(_val)
 
#define GRCAN_CANCONF_PS2_SHIFT   16
 
#define GRCAN_CANCONF_PS2_MASK   0xf0000U
 
#define GRCAN_CANCONF_PS2_GET(_reg)
 
#define GRCAN_CANCONF_PS2_SET(_reg, _val)
 
#define GRCAN_CANCONF_PS2(_val)
 
#define GRCAN_CANCONF_RSJ_SHIFT   12
 
#define GRCAN_CANCONF_RSJ_MASK   0x7000U
 
#define GRCAN_CANCONF_RSJ_GET(_reg)
 
#define GRCAN_CANCONF_RSJ_SET(_reg, _val)
 
#define GRCAN_CANCONF_RSJ(_val)
 
#define GRCAN_CANCONF_BPR_SHIFT   8
 
#define GRCAN_CANCONF_BPR_MASK   0x300U
 
#define GRCAN_CANCONF_BPR_GET(_reg)
 
#define GRCAN_CANCONF_BPR_SET(_reg, _val)
 
#define GRCAN_CANCONF_BPR(_val)
 
#define GRCAN_CANCONF_SAM   0x20U
 
#define GRCAN_CANCONF_SILNT   0x10U
 
#define GRCAN_CANCONF_SELECT   0x8U
 
#define GRCAN_CANCONF_ENABLE1   0x4U
 
#define GRCAN_CANCONF_ENABLE0   0x2U
 
#define GRCAN_CANCONF_ABORT   0x1U
 

Detailed Description

This group contains register bit definitions.

Macro Definition Documentation

◆ GRCAN_CANCONF_BPR

#define GRCAN_CANCONF_BPR (   _val)
Value:
( ( ( _val ) << GRCAN_CANCONF_BPR_SHIFT ) & \
GRCAN_CANCONF_BPR_MASK )

◆ GRCAN_CANCONF_BPR_GET

#define GRCAN_CANCONF_BPR_GET (   _reg)
Value:
( ( ( _reg ) & GRCAN_CANCONF_BPR_MASK ) >> \
GRCAN_CANCONF_BPR_SHIFT )

◆ GRCAN_CANCONF_BPR_SET

#define GRCAN_CANCONF_BPR_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~GRCAN_CANCONF_BPR_MASK ) | \
( ( ( _val ) << GRCAN_CANCONF_BPR_SHIFT ) & \
GRCAN_CANCONF_BPR_MASK ) )

◆ GRCAN_CANCONF_PS1

#define GRCAN_CANCONF_PS1 (   _val)
Value:
( ( ( _val ) << GRCAN_CANCONF_PS1_SHIFT ) & \
GRCAN_CANCONF_PS1_MASK )

◆ GRCAN_CANCONF_PS1_GET

#define GRCAN_CANCONF_PS1_GET (   _reg)
Value:
( ( ( _reg ) & GRCAN_CANCONF_PS1_MASK ) >> \
GRCAN_CANCONF_PS1_SHIFT )

◆ GRCAN_CANCONF_PS1_SET

#define GRCAN_CANCONF_PS1_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~GRCAN_CANCONF_PS1_MASK ) | \
( ( ( _val ) << GRCAN_CANCONF_PS1_SHIFT ) & \
GRCAN_CANCONF_PS1_MASK ) )

◆ GRCAN_CANCONF_PS2

#define GRCAN_CANCONF_PS2 (   _val)
Value:
( ( ( _val ) << GRCAN_CANCONF_PS2_SHIFT ) & \
GRCAN_CANCONF_PS2_MASK )

◆ GRCAN_CANCONF_PS2_GET

#define GRCAN_CANCONF_PS2_GET (   _reg)
Value:
( ( ( _reg ) & GRCAN_CANCONF_PS2_MASK ) >> \
GRCAN_CANCONF_PS2_SHIFT )

◆ GRCAN_CANCONF_PS2_SET

#define GRCAN_CANCONF_PS2_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~GRCAN_CANCONF_PS2_MASK ) | \
( ( ( _val ) << GRCAN_CANCONF_PS2_SHIFT ) & \
GRCAN_CANCONF_PS2_MASK ) )

◆ GRCAN_CANCONF_RSJ

#define GRCAN_CANCONF_RSJ (   _val)
Value:
( ( ( _val ) << GRCAN_CANCONF_RSJ_SHIFT ) & \
GRCAN_CANCONF_RSJ_MASK )

◆ GRCAN_CANCONF_RSJ_GET

#define GRCAN_CANCONF_RSJ_GET (   _reg)
Value:
( ( ( _reg ) & GRCAN_CANCONF_RSJ_MASK ) >> \
GRCAN_CANCONF_RSJ_SHIFT )

◆ GRCAN_CANCONF_RSJ_SET

#define GRCAN_CANCONF_RSJ_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~GRCAN_CANCONF_RSJ_MASK ) | \
( ( ( _val ) << GRCAN_CANCONF_RSJ_SHIFT ) & \
GRCAN_CANCONF_RSJ_MASK ) )

◆ GRCAN_CANCONF_SCALER

#define GRCAN_CANCONF_SCALER (   _val)
Value:
( ( ( _val ) << GRCAN_CANCONF_SCALER_SHIFT ) & \
GRCAN_CANCONF_SCALER_MASK )

◆ GRCAN_CANCONF_SCALER_GET

#define GRCAN_CANCONF_SCALER_GET (   _reg)
Value:
( ( ( _reg ) & GRCAN_CANCONF_SCALER_MASK ) >> \
GRCAN_CANCONF_SCALER_SHIFT )

◆ GRCAN_CANCONF_SCALER_SET

#define GRCAN_CANCONF_SCALER_SET (   _reg,
  _val 
)
Value:
( ( ( _reg ) & ~GRCAN_CANCONF_SCALER_MASK ) | \
( ( ( _val ) << GRCAN_CANCONF_SCALER_SHIFT ) & \
GRCAN_CANCONF_SCALER_MASK ) )