summaryrefslogtreecommitdiff
path: root/components/external/espruino/src/jswrap_serial.h
blob: ff98596753308351f66ad89d09fe2ed7b59dab85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This file is part of Espruino, a JavaScript interpreter for Microcontrollers
 *
 * Copyright (C) 2013 Gordon Williams <[email protected]>
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * ----------------------------------------------------------------------------
 * JavaScript Serial Port Functions
 * ----------------------------------------------------------------------------
 */
#include "jsvar.h"


void jswrap_serial_setup(JsVar *parent, JsVarInt baud, JsVar *options);
void jswrap_serial_print(JsVar *parent, JsVar *str);
void jswrap_serial_println(JsVar *parent, JsVar *str);
void jswrap_serial_write(JsVar *parent, JsVar *data);
void jswrap_serial_onData(JsVar *parent, JsVar *funcVar);