1.1.1 • Published 3 years ago

plunger-binding v1.1.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

Plunger Node.js binding

Node.js microcontroller firmware flashing/erasing library, based on @probe-rs and @napi-rs

API

Check this d.ts - detailed documentation will be provided later

export enum ProbeType {
    DapLink = "DAPLink",
    StLink = "STLink",
    Ftdi = "FTDI",
    JLink = "JLink"
}

export interface ProbeInfo {
    vid: number;
    pid: number;
    serialNum?: string;
    probeType: ProbeType
    shortId: number;
}

export interface Probes {
    probes: ProbeInfo[]
}

export enum FirmwareType {
    BIN = 'bin',
    HEX = 'hex',
    ELF = 'elf'
}

export const listAllProbes: () => Probes;
export const eraseStm32L0: (targetName: string, vid: number, pid: number, serialNum?: String) => Promise<void>;
export const flashFirmwareFile: (path: string, targetName: string, type: FirmwareType, vid: number, pid: number, skip_erase?: boolean, speed_khz?: number, serialNum?: string) => Promise<void>;

License

  • Dual license:
    • GPL-3.0, for personal & research uses only
    • Commerical license for commercial propose
      • Currently licensed to:
        • SmartGuide Pty Ltd (my employer)
1.1.1

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.2

3 years ago