ADI constructor
Debug transport to use
Optional mode: DAPProtocolDebug mode to use (default 0)
Optional clockFrequency: numberCommunication clock frequency to use (default 10000000)
ADI constructor
Proxy to use
Protected concatExucute code at a specified memory address
The address to put the code
The code to use
The stack pointer to use
The program counter to use
The link register to use (defaults to address + 1)
Rest ...registers: number[]Values to add to the general purpose registers, R0, R1, R2, etc.
Read from an access port register
AP register to read
Promise of register value
Protected readAPCommandRead from a core register
The register to read
Promise of value
Read an array of core registers
The registers to read
Promise of register values in an array
Read from a debug port register
DP register to read
Promise of register value
Protected readDPCommandProtected readProtected readProtected readRead a sequence of 32-bit words from a memory access port register, without crossing TAR auto-increment boundaries
ID of register to read from
The count of values to read
Promise of register data
Protected readset the target to reset state
use hardware reset pin or software reset
true: Requests a local CPU reset using VECTRESET, false: Requests a reset by an external system resource using SYSRESETREQ
Milliseconds to wait before aborting wait
Promise
Continually run a function until it returns true
The function to run
Optional timeout to wait before giving up and throwing
The milliseconds to wait between each run
Promise
Write to an access port register
AP register to write
Value to write
Promise
Protected writeAPCommandWrite to a core register
The register to write to
The value to write
Promise
Write to a debug port register
DP register to write
Value to write
Promise
Protected writeDPCommandProtected writeProtected writeProtected writeProtected write
Cortex M class