templates: # defining templates to be used later on
  - &AP_mate
    type: HEW.LM.368.XLNP
  - &CEX_mate
    type: HEW.LM.368.XLNP
    pinlabels: [Power 1,Power 2,GND,GND,CanA P,CanA N,CAN GND,CanB P,CanB N,Out RS-485 P,Out RS-485 N,IN RS-485 N,IN RS-485 P,RS-485 GND,RS-232A TX,RS-232A RX,GND,
    RS-232B TX,RS-232B RX,I2C SCL,I2C SDA,3.3V out,GND,5V out,GND,ATX(0) N,ATX(0) P,ARX(0) P,ARX(0) N,ECAP 0,ECAP 1, ECAP 2,ECAP 3,
    PWM 0,PWM 1,PWM 2,PWM 3,PWM 4,PWM 5,PWM 6,PWM 7, GND,A0 3.3V,A1 3.3V,A2 5V,A3 5V,A4 12V,
    A5 12V,A6 36V,A7 36V,GND,ARX(0) P,ARX(0) N,ARX(1) P,ARX(1) N,ARX(2) P,ARX(2) N,ARX(3) P,ARX(3) N,
    GPIO 8,GPIO 9,GPIO 10,GPIO 11,GPIO 12,GPIO 13,GPIO 14,GPIO 15,GPIO 16]
    pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]
    image:
      src: images\CEX_plug.png
      caption: Connector HEW.LM.368.XLNP (mounted in CEX)
  - &wire
    category: bundle
    gauge: 22 AWG




connectors:
  Veronte CEX:
    <<: *CEX_mate # copying items from the template
    notes: Veronte CEX
  1X:
    type: HEW.LM.368.XLNP
    pinlabels: [CAN_GND,CANB_P,CANB_N]
    pins: [27, 28, 29]  
    image:
      src: images\CEX_plug.png
  # VPX J12:
  #   #type: DC_power
  #   pinlabels: [GND, +5A]
  #   pins: [4,8] 
  VPX J1:
    type: J1
    pinlabels: [TX, GND, RX]
    pins: [20, 21, 22]
  Mag:
    type: Mag
    pinlabels: [TX, RX, GND]
    pins: [2, 3, 5]
  # Radar:
  #   pinlabels: [GND, CAN_L, CAN_H, V+]
  #   pins: [1,2,3,4]
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice
  shield1:
    pinlabels: [Shield]
  GND: &GND
    style: simple
    autogenerate: true
    type: GND

cables:
  W1:
    <<: *wire
    length: 12 Inches
    colors: [WH,BN,GN,YE,GY,PK,VT,PKGY,BURD,GNWH,GNBN,GYWH,BNGY,PKWH,BUBN,RDWH,RDBN,BKWH,BKBN,GNGY,GNYE,GNPK,PKYE,WH,BN,GN,YE,GY,PK,BU,RD,BK,PK,PKGY,BURD,GNWH,GNBN,YEWH,BNYE,GYWH,BNGY,PKWH,BNPK,BUWH,BUBN,RDWH,RDBN,BKWH,BKBN,GNGY,GNYE,GNPK,PKYE,WH,BN,GN,YE,GY,PK,BU,RD]
  W2:
    <<: *wire
    length: 12 Inches
    colors: [BU,RD,BK]
    shield: true
    notes: Twisted Pair
  W3:
    <<: *wire
    length: 124 Inches
    colors: [BNPK,BUWH]
    shield: true
    notes: Twisted Pair
  W4:
    <<: *wire
    length: 87.5 Inches
    colors: [YEWH,BNYE]
    shield: true
    notes: Twisted Pair
  W5:
    <<: *wire
    length: 0.0
    colors: [GNGY,GNYE,GNPK]
    shield: true
    notes: Twisted Pair

  # W2:
  #   <<: *wire
  #   length: 0.4
  #   colors: [RD, BK, WH]
  # W3:
  #   <<: *wire
  #   length: 0.3
  #   colors: [GY, PK, BU, RD]
  # W4:
  #   <<: *wire
  #   length: 0.3
  #   colors: [RD, BK]
  # W5:
  #   <<: *wire
  #   length: 0.3
  #   colors: [RD, BK, WH]
  # W6:
  #   <<: *wire
  #   length: 0.3
  #   colors: [GYGN, YEGY, PKGN]
  #   shield: true
  # W7: 
  #   <<: *wire
  #   length: 0.3
  #   colors: [BU, RD, BK]
  #   shield: true
  # W8:
  #   <<: *wire
  #   length: 0.3
  #   colors: [GN,YE]
  #   shield: true
  #   notes: Twisted Pair
    


connections:
  -
    - Veronte CEX: [1-2,5-6,10-14,20-22,24,26-41,43-50,52-68]
    - W1: [1-2,5-6,7-11,13-15,17,19-34,36-43,45-61]
  -
    - Veronte CEX: [7,8,9]
    - W2: [1-3]
  -
    - Veronte CEX: [18,19]
    - W3: [1-2]
    - Mag: [RX,TX]
  # -
  #   - W2: s
  #   - shield1: [1]
  #   - W8: s
  -
    - Veronte CEX: [15,16]
    - W4: [1-2]
    - VPX J1: [RX,TX]
  #   - [S,S,S]
  #   - W2: [1-3]
  # -
  #   - W2: [1-3]
 #   - 1X: [27, 28, 29] 
  # -
  #   - Veronte CEX: [7-9]
  #   - W1: [1-3]
  #  - Radar: [1,3,2]
  # -
  #   - Veronte CEX: [1-4]
  #   - W3: [1-4]
    # - [S,S,S,S]
    # - W4: [1,1,2,2]
  # -
  #   - W4: [1-2]
    # - VPX J12: [4,4,8,8]
  # -
  #   - Veronte CEX: [15-17]
    # - W5: [1-3]
    # - [S,S,S]
 #   - W6: [1-3]
  # -
  #   - W6: [1-3]
  #  - VPX J1: [22, 20, 21]
  # -
  #   - Veronte CEX: [19,18,17]
  #   - W7: [1-3]
  #   - Mag: [2, 3, 5]
  # -
  #   - Veronte CEX: [17]
  #   - W7: s
  #   - Mag: [GND]
  # -
  #   - W1: [18,19]
  #   - Mag: [TX,RX]
  # -
  #   - Veronte CEX: [17]
  #   - W6: [s]
  #   - VPX J1: [GND]
  # -
  #   - W2: [3,2]
  #   - [S,S]
  #   - W8: [1-2]
  #   - Radar: [2-3]
  -
    - W2: [1-3]
    - [S,S,S]
    - W5: [1-3]
    - 1X: [27-29]
  # -
    # - W2: s
    # - shield1: [1]
    # - W5: s
    # - 1X: [27]
  -
    - Veronte CEX: [3,4,17,23,25,42,51]
    - W1: [3,4,12,16,18,35,44]
    - [GND,GND,GND,GND,GND,GND,GND]
  -
    - W8: s
    - GND
  -
    - GND
    - W4: s
    - GND
  -
    - GND
    - W3: s
    - GND
  -
    - Veronte CEX: [7]
    - W2: s