Module: BusPirate/uart

I2C module - adds I2C function calls to the BusPirate object
Author:
  • hannes-hochreiner
Source:

Methods


<inner> uartConfig(opts)

Configure UART
Parameters:
Name Type Description
opts Object Configuration object.
Properties
Name Type Description
pinOutput String HiZ (default) or 3V3
databitsParity String 8/N (default), 8/E, 8/O, or 9/N
stopBits Number 1 (default) or 2
polarity String idleHigh (default) or idleLow
Source:

<inner> uartInit()

Initialize UART
Source:

<inner> uartSetPeripherals(opts)

Configure peripherals
Parameters:
Name Type Description
opts Object Configuration object with one or more of the following properties:
Properties
Name Type Description
power boolean default is false
pullups boolean default is false
aux boolean default is false
cs boolean default is false
Source:

<inner> uartSetRxEcho(rxEcho)

Set receive echo switch
Parameters:
Name Type Description
rxEcho Boolean "false" suppresses received data (default); "true" echos received data.
Source:

<inner> uartSetSpeed(speed)

Set UART speed
Parameters:
Name Type Description
speed Number 300 (default), 1200, 2400, 4800, 9600, 19200, 31250, 38400, 57600, or 115200;
Source:

<inner> uartWrite(data)

Write to UART
Parameters:
Name Type Description
data Buffer buffer with data to be written.
Source: