Tasmota/lib/libesp32/RadioLib/examples/NonArduino/Tock/libtock-c/libtock/console.h
2024-02-23 16:20:09 +01:00

27 lines
551 B
C

#pragma once
#include "tock.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DRIVER_NUM_CONSOLE 0x1
int putstr(const char* str);
int putnstr(const char* str, size_t len);
int putnstr_async(const char* str, size_t len, subscribe_upcall cb, void* userdata);
int getnstr(char *str, size_t len);
int getnstr_async(char *str, size_t len, subscribe_upcall cb, void* userdata);
/* Returns TOCK_FAIL on failure, or else the character received */
int getch(void);
// Abort an ongoing receive call.
int getnstr_abort(void);
#ifdef __cplusplus
}
#endif