예제 #1
0
    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)
예제 #2
0
    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,
        )