def startAutoTrigger(self, source: DigitalSource, rising: bool, falling: bool) -> None: """Start running the automatic SPI transfer engine when a trigger occurs. :meth:`.initAuto` and :meth:`.setAutoTransmitData` must be called before calling this function. :param source: digital source for the trigger (may be an analog trigger) :param rising: trigger on the rising edge :param falling: trigger on the falling edge """ hal.startSPIAutoTrigger(self.port, source.getPortHandleForRouting(), source.getAnalogTriggerTypeForRouting(), rising, falling)
def startAutoTrigger( self, source: DigitalSource, rising: bool, falling: bool ) -> None: """Start running the automatic SPI transfer engine when a trigger occurs. :meth:`.initAuto` and :meth:`.setAutoTransmitData` must be called before calling this function. :param source: digital source for the trigger (may be an analog trigger) :param rising: trigger on the rising edge :param falling: trigger on the falling edge """ hal.startSPIAutoTrigger( self.port, source.getPortHandleForRouting(), source.getAnalogTriggerTypeForRouting(), rising, falling, )