Continue work on device setup
This commit is contained in:
parent
f1e2939829
commit
85e81073ec
1 changed files with 8 additions and 1 deletions
|
|
@ -5,14 +5,21 @@ uint32_t = ctypes.c_uint32
|
||||||
class TCAN4550:
|
class TCAN4550:
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
|
||||||
|
self.dev_ie = TCAN4550_device_interrupt_enable()
|
||||||
|
self.dev_ie = 0x0
|
||||||
# Begin by clearing any potential SPI errors
|
# Begin by clearing any potential SPI errors
|
||||||
self.TCAN_clearSPIerr()
|
self.TCAN_clearSPIerr()
|
||||||
|
|
||||||
|
self.TCAN_configure_interrupt_enable(self.dev_ie)
|
||||||
|
|
||||||
|
|
||||||
def TCAN_clearSPIerr(self) -> None:
|
def TCAN_clearSPIerr(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def TCAN_configure_interrupt_enable(self) -> int
|
def TCAN_configure_interrupt_enable(self, ie) -> bool:
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue