2022-08-25 13:32:34 +08:00
|
|
|
import PikaStdDevice
|
|
|
|
|
|
|
|
|
|
|
|
class GPIO(PikaStdDevice.GPIO):
|
|
|
|
# overrid
|
|
|
|
def platformHigh(self): ...
|
|
|
|
def platformLow(self): ...
|
|
|
|
def platformEnable(self): ...
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformDisable(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
def platformSetMode(self): ...
|
|
|
|
def platformRead(self): ...
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Time(PikaStdDevice.Time):
|
|
|
|
# override
|
|
|
|
def sleep_s(self, s: int): ...
|
|
|
|
def sleep_ms(self, ms: int): ...
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformGetTick(): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class ADC(PikaStdDevice.ADC):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformRead(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class UART(PikaStdDevice.UART):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformWrite(self): ...
|
|
|
|
#def platformWriteBytes(self): ...
|
|
|
|
#def platformRead(self): ...
|
|
|
|
#def platformReadBytes(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class IIC(PikaStdDevice.IIC):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformWrite(self): ...
|
|
|
|
#def platformWriteBytes(self): ...
|
|
|
|
#def platformRead(self): ...
|
|
|
|
#def platformReadBytes(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class PWM(PikaStdDevice.PWM):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformSetFrequency(self): ...
|
|
|
|
#def platformSetDuty(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class SPI(PikaStdDevice.SPI):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformWrite(self): ...
|
|
|
|
#def platformWriteBytes(self): ...
|
|
|
|
#def platformRead(self): ...
|
|
|
|
#def platformReadBytes(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class CAN(PikaStdDevice.CAN):
|
|
|
|
# override
|
2022-08-25 15:07:29 +08:00
|
|
|
#def platformEnable(self): ...
|
|
|
|
#def platformWrite(self): ...
|
|
|
|
#def platformWriteBytes(self): ...
|
|
|
|
#def platformRead(self): ...
|
|
|
|
#def platformReadBytes(self): ...
|
|
|
|
#def platformDisable(self): ...
|
|
|
|
#def platformGetEventId(self): ...
|
2022-08-25 13:32:34 +08:00
|
|
|
|