43 #define STM_TIMEOUT MSG_TIMEOUT 44 #define STM_RESET MSG_RESET 50 #define _base_sequential_stream_methods \ 51 _base_object_methods \ 53 size_t (*write)(void *instance, const uint8_t *bp, size_t n); \ 55 size_t (*read)(void *instance, uint8_t *bp, size_t n); \ 57 msg_t (*put)(void *instance, uint8_t b); \ 59 msg_t (*get)(void *instance); \ 66 #define _base_sequential_stream_data \ 106 #define streamWrite(ip, bp, n) ((ip)->vmt->write(ip, bp, n)) 121 #define streamRead(ip, bp, n) ((ip)->vmt->read(ip, bp, n)) 137 #define streamPut(ip, b) ((ip)->vmt->put(ip, b)) 151 #define streamGet(ip) ((ip)->vmt->get(ip))
const struct BaseSequentialStreamVMT * vmt
Virtual Methods Table.
#define _base_sequential_stream_methods
BaseSequentialStream specific methods.
#define _base_sequential_stream_data
BaseSequentialStream specific data.
BaseSequentialStream virtual methods table.