mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
256319e035
fix baseDev.addEventCallBack use setCallBack in std update std support flow control for uart add flowcontrol API for std.uart
86 lines
2.1 KiB
Python
86 lines
2.1 KiB
Python
import PikaStdDevice
|
|
|
|
|
|
class GPIO(PikaStdDevice.GPIO):
|
|
# overrid
|
|
def platformHigh(self): ...
|
|
def platformLow(self): ...
|
|
def platformEnable(self): ...
|
|
def platformDisable(self): ...
|
|
def platformSetMode(self): ...
|
|
def platformRead(self): ...
|
|
def platformGetEventId(self): ...
|
|
def eventTest(self): ...
|
|
|
|
|
|
class Time(PikaStdDevice.Time):
|
|
# override
|
|
def sleep_s(self, s: int): ...
|
|
def sleep_ms(self, ms: int): ...
|
|
def platformGetTick(): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class ADC(PikaStdDevice.ADC):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformRead(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class UART(PikaStdDevice.UART):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformWrite(self): ...
|
|
def platformWriteBytes(self): ...
|
|
def platformRead(self): ...
|
|
def platformReadBytes(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class IIC(PikaStdDevice.IIC):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformWrite(self): ...
|
|
def platformWriteBytes(self): ...
|
|
def platformRead(self): ...
|
|
def platformReadBytes(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class PWM(PikaStdDevice.PWM):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformSetFrequency(self): ...
|
|
def platformSetDuty(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class SPI(PikaStdDevice.SPI):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformWrite(self): ...
|
|
def platformWriteBytes(self): ...
|
|
def platformRead(self): ...
|
|
def platformReadBytes(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
class CAN(PikaStdDevice.CAN):
|
|
# override
|
|
def platformEnable(self): ...
|
|
def platformWrite(self): ...
|
|
def platformWriteBytes(self): ...
|
|
def platformRead(self): ...
|
|
def platformReadBytes(self): ...
|
|
def platformDisable(self): ...
|
|
def platformGetEventId(self): ...
|
|
|
|
|
|
def __del__(self): ...
|