pikapython/package/STM32G0/STM32G0.pyi

107 lines
1.5 KiB
Python
Raw Normal View History

2022-04-26 21:38:15 +08:00
#api
2021-11-21 16:33:57 +08:00
from PikaObj import *
import PikaStdDevice
import PikaStdTask
2021-11-21 16:33:57 +08:00
class GPIO(PikaStdDevice.GPIO):
# override
2022-04-07 23:37:35 +08:00
def platformHigh(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformLow(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformEnable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformDisable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformSetMode(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformRead(self):
2021-11-21 16:33:57 +08:00
pass
class Time(PikaStdDevice.Time):
# override
2022-04-07 23:37:35 +08:00
def sleep_s(self, s: int):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def sleep_ms(self, ms: int):
2021-11-21 16:33:57 +08:00
pass
class ADC(PikaStdDevice.ADC):
# override
2022-04-07 23:37:35 +08:00
def platformEnable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformRead(self):
2021-11-21 16:33:57 +08:00
pass
class UART(PikaStdDevice.UART):
# override
2022-04-07 23:37:35 +08:00
def platformEnable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformWrite(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformRead(self):
2021-11-21 16:33:57 +08:00
pass
class PWM(PikaStdDevice.PWM):
# override
2022-04-07 23:37:35 +08:00
def platformEnable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformSetFrequency(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformSetDuty(self):
2021-11-21 16:33:57 +08:00
pass
class IIC(PikaStdDevice.IIC):
SCL = GPIO()
SDA = GPIO()
# override
2022-04-07 23:37:35 +08:00
def platformEnable(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformWrite(self):
2021-11-21 16:33:57 +08:00
pass
# override
2022-04-07 23:37:35 +08:00
def platformRead(self):
2021-11-21 16:33:57 +08:00
pass
class lowLevel(TinyObj):
2022-04-07 23:37:35 +08:00
def readPin(self, pin: str) -> int:
2021-11-21 16:33:57 +08:00
pass
class Task(PikaStdTask.Task):
# override
2022-04-07 23:37:35 +08:00
def platformGetTick(self):
pass