Open
Description
Based on the finding of io.Stream
class/Protocol defined by Andy ion #781
that I think related to : https://github.com/micropython/micropython/blob/2c80d369988a84d85efe0483f9cf469ff27b70f9/py/stream.h#L69-L92
the naming convention in MicroPython's C source appears to be :
struct _mp_stream_p_t
struct _<protocol>_p_t
Protocols
-
io.Stream
-
Buffer ?
-
mp_machine_i2c_p_t - SoftI2C - static const mp_machine_i2c_p_t mp_machine_soft_i2c_p = {
-
FrameBuffer - static mp_framebuf_p_t formats[] = {
Stubs:
define in _mpt_shed , expose in the relevant modules - assuming they are consistent across boards an ports
Documentation:
these are sparsely documented , may need a separate page for it