Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
TCAN4550Can::Nbtp Struct Reference

Nominal bit timing & prescaler register definition. More...

Public Member Functions

 Nbtp (uint32_t sjw, uint32_t tseg2, uint32_t tseg1, uint32_t brp)
 Constructor.
 
 Nbtp (uint32_t sjw, uint32_t tseg2, uint32_t tseg1, uint32_t brp)
 Constructor.
 

Public Attributes

union { 
 
   uint32_t   data 
 raw word value More...
 
   struct { 
 
      uint32_t   ntseg2: 7 
 time segment before sample More...
 
      uint32_t   rsvd1: 1 
 reserved More...
 
      uint32_t   ntseg1: 8 
 time segment after sample More...
 
      uint32_t   nbrp: 9 
 bit rate prescaler More...
 
      uint32_t   nsjw: 7 
 re-synchronization jump width More...
 
   }  
 
};  
 
union { 
 
   uint32_t   data 
 raw word value More...
 
   struct { 
 
      uint32_t   ntseg2: 7 
 time segment before sample More...
 
      uint32_t   rsvd1: 1 
 reserved More...
 
      uint32_t   ntseg1: 8 
 time segment after sample More...
 
      uint32_t   nbrp: 9 
 bit rate prescaler More...
 
      uint32_t   nsjw: 7 
 re-synchronization jump width More...
 
   }  
 
};  
 

Detailed Description

Nominal bit timing & prescaler register definition.

Definition at line 397 of file MCAN.hxx.

Constructor & Destructor Documentation

◆ Nbtp() [1/2]

TCAN4550Can::Nbtp::Nbtp ( uint32_t  sjw,
uint32_t  tseg2,
uint32_t  tseg1,
uint32_t  brp 
)
inline

Constructor.

Parameters
dsjwdata (re)synchronization jump width
dtseg2data time segment before sample point
dtseg1data time segment after sample point
dbrpdata bit rate prescaler
tdctrasmitter delay compensation

Definition at line 405 of file MCAN.hxx.

◆ Nbtp() [2/2]

TCAN4550Can::Nbtp::Nbtp ( uint32_t  sjw,
uint32_t  tseg2,
uint32_t  tseg1,
uint32_t  brp 
)
inline

Constructor.

Parameters
dsjwdata (re)synchronization jump width
dtseg2data time segment before sample point
dtseg1data time segment after sample point
dbrpdata bit rate prescaler
tdctrasmitter delay compensation

Definition at line 405 of file TCAN4550Can.hxx.

Member Data Documentation

◆ data

uint32_t TCAN4550Can::Nbtp::data

raw word value

Definition at line 415 of file MCAN.hxx.

◆ nbrp

uint32_t TCAN4550Can::Nbtp::nbrp

bit rate prescaler

Definition at line 421 of file MCAN.hxx.

◆ nsjw

uint32_t TCAN4550Can::Nbtp::nsjw

re-synchronization jump width

Definition at line 422 of file MCAN.hxx.

◆ ntseg1

uint32_t TCAN4550Can::Nbtp::ntseg1

time segment after sample

Definition at line 420 of file MCAN.hxx.

◆ ntseg2

uint32_t TCAN4550Can::Nbtp::ntseg2

time segment before sample

Definition at line 418 of file MCAN.hxx.

◆ rsvd1

uint32_t TCAN4550Can::Nbtp::rsvd1

reserved

Definition at line 419 of file MCAN.hxx.


The documentation for this struct was generated from the following files: