SpiController Class
Package: GHIElectronics.Endpoint.Core
Namespace: GHIElectronics.Endpoint.Core
Chip-neutral entry point for SPI setup. Call once before using Spi.SpiDevice: it brings up the bus and muxes its pins.
class SpiController: ...
Methods
Initialize(int bus, int bufferSize)
@staticmethod
def Initialize(bus: int, bufferSize: int) -> None:
Connects the bus's SCK/MISO/MOSI pins. On EPM815, also sizes the kernel transfer buffer; on EPN256/EPN128 bufferSize is accepted for signature parity and otherwise ignored (the Nuvoton driver uses a fixed DMA buffer).
UnInitialize(int bus)
@staticmethod
def UnInitialize(bus: int) -> None:
Releases the bus's pins back to free GPIO.