5#ifndef serial_transport_h
6#define serial_transport_h
53#define MCP_SERIAL_EOF (-1)
55#define MCP_SERIAL_NO_DATA (-2)
57#define MCP_SERIAL_INPUT_LOST (-3)
94#if C_MCP_ENABLE_SERIAL_LOOP
int mcp_serial_getchar(void)
Obtain one input byte (weak default on CMSIS boards).
void end_serial(void)
Reset line-buffer state and call mcp_serial_transport_close().
int mcp_serial_transport_init(void)
Initialize the transport (weak default on CMSIS boards).
int init_serial(void)
Reset line-buffer state and call mcp_serial_transport_init().
void mcp_serial_transport_close(void)
Release transport resources (weak default on CMSIS boards).
int process_serial(void)
Consume input until one line is processed, RX is empty or EOF occurs.
void mcp_serial_send(const char *json, int channel)
Synchronous sender (weak default on CMSIS boards).