DAPLink constructor
Debug transport to use
Debug mode to use
Communication clock frequency to use (default 10000000)
Progress event
Serial read event
The maximum block size which can be transferred
Whether the device has been opened
The maximum DAPOperations which can be transferred
Clears the abort register of all error flags
Optional AbortMask to use, otherwise clears all flags
Number of extra idle cycles after each transfer
Number of transfer retries after WAIT response
Number of retries on reads with Value Match in DAP_Transfer
Promise
Connect to target device
Promise
Send Delay Command https://www.keil.com/pack/doc/CMSIS/DAP/html/group__DAP__Delay.html
Time to delay in microseconds
Promise
Get DAP information
Type of information to get
Promise of number or string
Disconnect from target device
Promise
Flash the target
The image to flash
The page size to use (defaults to 62)
Promise
Get the serial baud rate setting
Promise of baud rate
Reconnect to target device
Promise
Reset target device
Promise of whether a device specific reset sequence is implemented
Switches the CMSIS-DAP unit to use SWD http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0316d/Chdhfbhc.html
Send a command
Command to send
Data to use
Promise of DataView
Read serial data
Promise of any arrayBuffer read
Write serial data
The data to write
Promise
Set the serial baud rate setting
The baudrate to use (defaults to 9600)
Promise
Start listening for serial data
The serial delay to use (default 100)
whether to automatically connect to the target (default true)
Stop listening for serial data
Send an SWJ Clock value https://www.keil.com/pack/doc/CMSIS/DAP/html/group__DAP__SWJ__Clock.html
The SWJ clock value to send
Promise
Read/Write SWJ Pins https://www.keil.com/pack/doc/CMSIS/DAP/html/group__DAP__SWJ__Pins.html
Pin values to write
Maske to select output pins to change
Time in microseconds to wait for output pin value to stabilize (0 - no wait, 1..3000000)
Promise
Send an SWJ Sequence https://www.keil.com/pack/doc/CMSIS/DAP/html/group__DAP__SWJ__Sequence.html
The sequence to send
Promise
Transfer data with a single read or write operation
Port type (debug port or access port)
Whether to read or write
The register to use
Any value to write
Promise of any value read
Transfer data with multiple read or write operations
The operations to use
Promise of any values read
Read a block of data from a single register
Port type (debug port or access port)
The register to use
Promise of values read
Write a block of data to a single register
Port type (debug port or access port)
The register to use
The values to write
Promise
DAPLink Class