mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Merge branch 'baud500000' of https://github.com/dodo/node-serialport
This commit is contained in:
commit
fee3d24ad3
2 changed files with 3 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ var net = require('net');
|
|||
var serialport_native = require('bindings')('serialport_native.node');
|
||||
var IOWatcher = process.binding('io_watcher').IOWatcher;
|
||||
|
||||
var BAUDRATES = [115200, 57600, 38400, 19200, 9600, 4800, 2400, 1800, 1200, 600, 300, 200, 150, 134, 110, 75, 50];
|
||||
var BAUDRATES = [500000, 230400, 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1800, 1200, 600, 300, 200, 150, 134, 110, 75, 50];
|
||||
var DATABITS = [8, 7, 6, 5];
|
||||
var STOPBITS = [1, 2];
|
||||
var PARITY = [0, 1, 2];
|
||||
|
|
|
|||
|
|
@ -19,11 +19,12 @@
|
|||
namespace node {
|
||||
|
||||
using namespace v8;
|
||||
|
||||
|
||||
static Persistent<String> errno_symbol;
|
||||
|
||||
static long GetBaudConstant(long Baud_Rate) {
|
||||
switch (Baud_Rate) {
|
||||
case 500000: return B500000;
|
||||
case 230400: return B230400;
|
||||
case 115200: return B115200;
|
||||
case 57600: return B57600;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue