KiCad PCB EDA Suite
netlist_exporter_pspice.h File Reference
#include "netlist_exporter.h"
#include <list>
#include <map>

Go to the source code of this file.

Classes

struct  SPICE_ITEM
 Structure to represent a schematic component in the Spice simulation. More...
 
class  NETLIST_EXPORTER_PSPICE
 Class NETLIST_EXPORTER_PSPICE generates a PSPICE compatible netlist. More...
 

Enumerations

enum  SPICE_NETLIST_OPTIONS { NET_ADJUST_INCLUDE_PATHS = 8, NET_ADJUST_PASSIVE_VALS = 16, NET_ALL_FLAGS = 0xffff }
 Flags for Spice netlist generation (can be combined) More...
 
enum  SPICE_FIELD {
  SF_PRIMITIVE, SF_MODEL, SF_ENABLED, SF_NODE_SEQUENCE,
  SF_LIB_FILE, SF_END
}
 
enum  SPICE_PRIMITIVE {
  SP_RESISTOR = 'R', SP_CAPACITOR = 'C', SP_INDUCTOR = 'L', SP_DIODE = 'D',
  SP_BJT = 'Q', SP_MOSFET = 'M', SP_SUBCKT = 'X', SP_VSOURCE = 'V',
  SP_ISOURCE = 'I'
}
 

Basic Spice component primitives

More...
 

Enumeration Type Documentation

Enumerator
SF_PRIMITIVE 
SF_MODEL 
SF_ENABLED 
SF_NODE_SEQUENCE 
SF_LIB_FILE 
SF_END 

Definition at line 42 of file netlist_exporter_pspice.h.

Flags for Spice netlist generation (can be combined)

Enumerator
NET_ADJUST_INCLUDE_PATHS 
NET_ADJUST_PASSIVE_VALS 
NET_ALL_FLAGS 

Definition at line 36 of file netlist_exporter_pspice.h.

36  {
37  NET_ADJUST_INCLUDE_PATHS = 8, // use full paths for included files (if they are in search path)
38  NET_ADJUST_PASSIVE_VALS = 16, // reformat passive component values (e.g. 1M -> 1Meg)
39  NET_ALL_FLAGS = 0xffff
40 };

Basic Spice component primitives

Enumerator
SP_RESISTOR 
SP_CAPACITOR 
SP_INDUCTOR 
SP_DIODE 
SP_BJT 
SP_MOSFET 
SP_SUBCKT 
SP_VSOURCE 
SP_ISOURCE 

Definition at line 52 of file netlist_exporter_pspice.h.