Change formatting
This commit is contained in:
parent
a063922470
commit
5776b07481
1 changed files with 501 additions and 492 deletions
|
|
@ -17,6 +17,7 @@ class TCAN4550:
|
|||
REG_MCAN =0x1000
|
||||
REG_MRAM =0x8000
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# SPI Registers and Device ID Register Addresses: 0x0000 Prefix
|
||||
#*****************************************************************************
|
||||
|
|
@ -26,6 +27,7 @@ class TCAN4550:
|
|||
REG_SPI_STATUS =0x000C
|
||||
REG_SPI_ERROR_STATUS_MASK =0x0010
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# Device Configuration Register Addresses: 0x0800 Prefix
|
||||
#*****************************************************************************
|
||||
|
|
@ -35,6 +37,7 @@ class TCAN4550:
|
|||
REG_DEV_IR =0x0820
|
||||
REG_DEV_IE =0x0830
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# MCAN Register Addresses: 0x1000 Prefix
|
||||
#*****************************************************************************
|
||||
|
|
@ -87,6 +90,7 @@ class TCAN4550:
|
|||
REG_MCAN_TXEFA =0x10F8
|
||||
#*****************************************************************************
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# DLC Value Defines: Used for RX and TX elements. The DLC[3:0] bit field
|
||||
#*****************************************************************************
|
||||
|
|
@ -108,6 +112,9 @@ class TCAN4550:
|
|||
MCAN_DLC_64B =0x0000000F
|
||||
#*****************************************************************************
|
||||
|
||||
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# MCAN Register Bit Field Defines
|
||||
#*****************************************************************************
|
||||
|
|
@ -439,6 +446,7 @@ class TCAN4550:
|
|||
REG_BITS_MCAN_TXBCIE_CFIE0 =0x00000001
|
||||
#*****************************************************************************
|
||||
|
||||
|
||||
#*****************************************************************************
|
||||
# Device Register Bit Field Defines
|
||||
#*****************************************************************************
|
||||
|
|
@ -548,6 +556,7 @@ class TCAN4550:
|
|||
REG_BITS_DEVICE_MODE_TESTMODE_PHY =0x00000000
|
||||
REG_BITS_DEVICE_MODE_TESTMODE_CONTROLLER =0x00000001
|
||||
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# Device Interrupt Register values (0x0820)
|
||||
REG_BITS_DEVICE_IR_CANLGND =0x08000000
|
||||
|
|
@ -737,7 +746,7 @@ class TCAN4550:
|
|||
self.TCAN4x5x_MCAN_ClearInterruptsAll() # Resets all MCAN interrupts (does NOT include any SPIERR interrupts)
|
||||
|
||||
def TCAN4x5x_Device_ClearInterrupts(self, ir):
|
||||
pass
|
||||
self.TCAN_write_32(REG_DEV_IR, ir.word)
|
||||
|
||||
def TCAN_clearSPIerr(self) -> None:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue