tscircuit/standard-jst-programmer
26 × 42 mm USB-C RP2040 programmer with JST and TC2030 IDC SWD, NRST, selectable sensed 5 V / 3.3 V power, RGB status, and importable JST SH/Tag-Connect targets. Top-side assembly.
- Version
- 0.8.0
- License
- unset
- Stars
- 0
dist/index.d.ts
import * as react from 'react';
import { ChipProps } from 'tscircuit';
declare const swdPinLabels: {
readonly pin1: readonly ["SWCLK"];
readonly pin2: readonly ["GND"];
readonly pin3: readonly ["SWDIO"];
};
declare const powerPinLabels: {
readonly pin1: readonly ["VOUT"];
readonly pin2: readonly ["GND"];
};
type SwdConnectorProps = Omit<ChipProps<typeof swdPinLabels>, "footprint" | "pinLabels">;
type PowerConnectorProps = Omit<ChipProps<typeof powerPinLabels>, "footprint" | "pinLabels">;
declare function StandardJstSwdUpward(props: SwdConnectorProps): any;
declare function StandardJstSwdSide(props: SwdConnectorProps): any;
declare function StandardJstPowerUpward(props: PowerConnectorProps): any;
declare function StandardJstPowerSide(props: PowerConnectorProps): any;
/** Five-pin powered SWD extension; pin 1 follows the programmer's voltage selector. */
declare const swdResetPinLabels: {
readonly pin1: readonly ["VOUT"];
readonly pin2: readonly ["SWDIO"];
readonly pin3: readonly ["GND"];
readonly pin4: readonly ["SWCLK"];
readonly pin5: readonly ["NRST", "nRESET"];
};
type SwdResetConnectorProps = Omit<ChipProps<typeof swdResetPinLabels>, "footprint" | "pinLabels">;
declare function StandardJstSwdResetSide(props: SwdResetConnectorProps): any;
declare function StandardJstSwdResetUpward(props: SwdResetConnectorProps): any;
/** UART labels are local to the board: target RX mates with programmer TX. */
declare const uartPinLabels: {
readonly pin1: readonly ["RX"];
readonly pin2: readonly ["GND"];
readonly pin3: readonly ["TX"];
};
declare const uartHostPinLabels: {
readonly pin1: readonly ["TX"];
readonly pin2: readonly ["GND"];
readonly pin3: readonly ["RX"];
};
type UartConnectorProps = Omit<ChipProps<typeof uartPinLabels>, "footprint" | "pinLabels"> & {
/** Target by default; use host on a programmer for a straight-through cable. */
role?: "target" | "host";
};
declare function StandardJstUartSide({ role, ...props }: UartConnectorProps): any;
declare function StandardJstUartUpward({ role, ...props }: UartConnectorProps): any;
/** Discrete RP2040 + USB-C support circuit adapted from tscircuit/common. */
declare function ProgrammerBoard({ previewPlacement, }?: {
previewPlacement?: boolean;
}): any;
/** Project-specific TC2030 assignment: fixed 3.3 V on pin 1 and USB 5 V on pin 6. */
declare const tagConnectPinLabels: {
readonly pin1: readonly ["V3_3"];
readonly pin2: readonly ["SWDIO"];
readonly pin3: readonly ["NRST", "nRESET"];
readonly pin4: readonly ["SWCLK"];
readonly pin5: readonly ["GND"];
readonly pin6: readonly ["V5"];
};
type TagConnectProps = Omit<ChipProps<typeof tagConnectPinLabels>, "footprint" | "pinLabels" | "cadModel" | "doNotPlace">;
/** TC2030-NL-FP Rev B, viewed from PCB top. Bare pads: no connector or solder paste. */
declare function StandardTagConnectSwd(props: TagConnectProps): any;
export { ProgrammerBoard, StandardJstPowerSide, StandardJstPowerUpward, StandardJstSwdResetSide, StandardJstSwdResetUpward, StandardJstSwdSide, StandardJstSwdUpward, StandardJstUartSide, StandardJstUartUpward, StandardTagConnectSwd, StandardJstSwdUpward as default, powerPinLabels, swdPinLabels, swdResetPinLabels, tagConnectPinLabels, uartHostPinLabels, uartPinLabels };
export type { PowerConnectorProps, SwdConnectorProps, SwdResetConnectorProps, TagConnectProps, UartConnectorProps };