Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
MCP2515Can::Config2 Struct Reference

Configuration resgister 2 structure. More...

Public Member Functions

 Config2 (uint8_t prseg, uint8_t prseg1, uint8_t sam, uint8_t bltmode)
 Constructor.
 

Public Attributes

union { 
 
   uint8_t   data_ 
 raw data for register More...
 
   struct { 
 
      uint8_t   prseg_: 3 
 propagation segment length bits More...
 
      uint8_t   prseg1_: 3 
 PS1 length bits. More...
 
      uint8_t   sam_: 1 
 sample point configuration bit More...
 
      uint8_t   bltmode_: 1 
 PS2 bit time length bit. More...
 
   }  
 
};  
 

Detailed Description

Configuration resgister 2 structure.

Definition at line 313 of file MCP2515Can.hxx.

Constructor & Destructor Documentation

◆ Config2()

MCP2515Can::Config2::Config2 ( uint8_t  prseg,
uint8_t  prseg1,
uint8_t  sam,
uint8_t  bltmode 
)
inline

Constructor.

Parameters
prseginitial value
prseg1initial value
saminitial value
bltmodeinitial value

Definition at line 321 of file MCP2515Can.hxx.

Member Data Documentation

◆ bltmode_

uint8_t MCP2515Can::Config2::bltmode_

PS2 bit time length bit.

Definition at line 337 of file MCP2515Can.hxx.

◆ data_

uint8_t MCP2515Can::Config2::data_

raw data for register

Definition at line 331 of file MCP2515Can.hxx.

◆ prseg1_

uint8_t MCP2515Can::Config2::prseg1_

PS1 length bits.

Definition at line 335 of file MCP2515Can.hxx.

◆ prseg_

uint8_t MCP2515Can::Config2::prseg_

propagation segment length bits

Definition at line 334 of file MCP2515Can.hxx.

◆ sam_

uint8_t MCP2515Can::Config2::sam_

sample point configuration bit

Definition at line 336 of file MCP2515Can.hxx.


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