# proglets.dat for Unit 730
#
# Date		e-mail address			comment
# 07-30-2018	craigloescher@teledyne.com      initial setting	  				
#
# Science Software Ver.8.1
#
#
# CTD			SN 9447
# FLBBCD                SN 5103
# OPTODE                SN 0660
# VR2C(0)               SN 450282
# VR2C(1)               SN 450283
#------------------------------------------------------------------------
# CTD41CP Sea-bird CTD(SBE-41)
# Continuous Profile Unit Version 2
# NOTE: This proglet is a substitute for the ctd41cp, it uses the
#       same output sensor names.  Only 1 power bit and the UART is 
#       different, there is also an initial line of text in the output.
#       ONLY one of these two CTDs may be installed at the same time.  
  proglet = ctd41cp
     uart       = 0          # UART4 Chan A
     bit        = 0          # power control for sensor
     start_snsr = c_profile_on(sec)
     simulator  = ctd41cp_sim
#
#------------------------------------------------------------------------
# Wet Labs flbbcd fluorometer, scattering meter, and cdom sensor, baud rate 19200
# NOTE: This proglet requires the following sensor specific constants from
#       Wet Labs for deriving engineering units (put in autoexec.mi):
#         u_flbbcd_chlor_cwo(nodim)      # clean water dark offset, nodim == counts
#         u_flbbcd_bb_cwo(nodim)         # clean water dark offset, nodim == counts
#         u_flbbcd_cdom_cwo(nodim)       # clean water dark offset, nodim == counts
#         u_flbbcd_chlor_sf(ug/l/nodim)  # scale factor to get units
#         u_flbbcd_bb_sf(Mnodim)         # scale factor to get units
#         u_flbbcd_cdom_sf(ppb/nodim)    # scale factor to get units
#         u_flbbcd_is_calibrated(bool) 1 # set to 1 after entering 
#                                        # calibration constants
#
# For simulator, set u_wetlabs_sim_num_eng_units(nodim) to 3 in autoexec.mi
#
  proglet = flbbcd
     uart       = 6          # U4Soem Pins T-2,R-4  (we only use receive)
     bit        = 0          # power, battery
     start_snsr = c_flbbcd_on(sec)
     simulator = wetlabs_sim
#
#------------------------------------------------------------------------
# Vemco VR2C Submersible, Single-Vhannel Acoustic Reciever
# NOTE: This proglet requires the following sensor specific constants
#       for deriving device serial numbers and associated UARTS (put in autoexec.mi):
#         sci_vr2c_serial_num_0(nodim)   # serial number of device 0
#         sci_vr2c_serial_num_1(nodim)   # serial number of device 1
#       The serial number ID's need to correspond with the bits defined below,
#       otherwise communications with vr2c devices will fail.
#
  proglet = vr2c
     uart       = 3          # UART for device 0
     bit        = 0          # power control for device 0
     uart       = 4          # UART for Device 1  
     bit        = 0          # power control for device 1
     start_snsr = c_vr2c_on(sec)
#

#------------------------------------------------------------------------
# Aanderaa Oxygen Optode 4330F or 4841
# NOTE: This proglet requires the following input sensor (put in autoexec.mi):
#       u_oxy4_slow_surface_mode(bool) 1 (default for 4330F), 0 for 4841 model
#
  proglet = oxy4
     uart       = 1          # U4Soem Pins T-2,R-3 
     bit        = 2          # 8.8v
     start_snsr = c_oxy4_on(sec)
#------------------------------------------------------------------------

# <PROTO> add new proglets here
# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
# The uart port encoding is:
#   0   UART4   A                 bam, bb2fV2
#   1   UART4   B                 clothesline
#   2   UART4   C                 ctd41cp
#   3   UART4   D                 uModem
#   4   U4Soem  pins T- 2, R- 4   bb2f, bb2c, leftmost as looking at edge of board
#                                 bb2fls, bb2flsV2, bb2flsV3, ...
#   5   U4Soem  pins T- 6, R- 8   bb2lss, ocr504I, ocr507I
#   6   U4Soem  pins T-10, R-12   sam, ocr504R, ocr507R, auvb
#   7   U4Soem  pins T-14, R-16
#
# &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
# Available "bits":
# Looking down at persistor pins with 5x2 white box on left
#     2 4 ... 50
#     1 3 ... 49
#
#
#SIGNAL  PIN        DESCRIPTION          DIR     FUNCT       PU  R   WU
#          0        Vbatt (default, No-op)
#          1        SBM2 15V regulated
#          2        SBM2 8.8V regulated
#          3        SBM2 aux power
#          4        SBM2 high power
#PCS2    pin# 15,   SPI Chip Select 2    I/O     GPIO/QSPI       I?  O+ X
#SCK     pin# 16,   SPI Serial Clock     I/O     GPIO/QSPI       I?  O+ X
#PCS3    pin# 17,   SPI Chip Select 3    I/O     GPIO/QSPI       I?  O+ X
#MOSI    pin# 18,   SPI Master Data Out  I/O     GPIO/QSPI       I?  O+ X
#PCS1    pin# 19,   SPI Chip Select 1    I/O     GPIO/QSPI       I?  O+ X
#MISO    pin# 20,   SPI Master Data In   I/O     GPIO/QSPI   1M  I+  I+ X
#PCS0    pin# 21,   SPI Chip Select 0    I/O     GPIO/QSPI       I?  O+ X
#CTD10   pin# 22,   Double Action Timer  I/O     GPIO/TMR        I?  I?  bb2f power
#CTD9    pin# 23,   Double Action Timer  I/O     GPIO/TMR        I?  I?  
#CTD7    pin# 24,   Double Action Timer  I/O     GPIO/TMR        I?  I?  X UART4 RS232 RSON, DebugBit 0
#CTD8    pin# 25,   Double Action Timer  I/O     GPIO/TMR        I?  I?  bam power,    DebugBit1
#CTD6    pin# 26,   Double Action Timer  I/O     GPIO/TMR        I?  I?  ctd41cp mode, DebugBit2
#CTD5    pin# 27,   Double Action Timer  I/O     GPIO/TMR        I?  I?  ctd41cp power,DebugBit3
#CTS14B  pin# 28,   Single Action Timer  I/O     GPIO/TMR        I?  I?  X UART4 RS232 RSOFF
#CTD4    pin# 29,   Double Action Timer  I/O     GPIO/TMR        I?  I?  bb2c, hps:hib power, bb2fV2
#CTS14A  pin# 30,   Single Action Timer  I/O     GPIO/TMR        I?  I?  sam, auvb  hps:hib load clk, uModem
#CTS18A  pin# 31,   Single Action Timer  I/O     GPIO/TMR        I?  I?  hps:hib data
#CTS18B  pin# 32,   Single Action Timer  I/O     GPIO/TMR        I?  I?  hps:hib shift clk
#CTD29   pin# 33,   Double Action Timer  I/O     GPIO/TMR        I?  I?  hps:ahb load clk
#CTD28   pin# 34,   Double Action Timer  I/O     GPIO/TMR        I?  I?  bb2lss
#CTD27   pin# 35,   Double Action Timer  I/O     GPIO/TMR        I?  I?  hps, ahb data
#CTM31L  pin# 36,   Timer Load/Clock     In      GPIO/TMR    1M  I+  I+  
#CTD26   pin# 37,   Double Action Timer  I/O     GPIO/TMR        I?  I?  hps, ahb shift clk
#IRQ5    pin# 39,   Interrupt Request 5  I/O     GPIO/IRQ    10K IB+ I+  X
#IRQ7    pin# 40,   Interrupt Request 7  I/O     GPIO/IRQ    10K IB+ I+  X
#IRQ2    pin# 41,   Interrupt Request 2  I/O     GPIO/IRQ    10K IB+ I+  X
#MODCLK  pin# 42,   Clk Source Sel/GPIO  I/O     GPIO/CLK    10K I+  I+
#IRQ4RXD pin# 45,   IRQ/CMOS RxD Sense   In      GPIO/UART       IB? I+
#TXD     pin# 46,   CMOS Serial TxD      Out     GPIO/UART       I?  OB  X
#RTS     pin# 48,   CMOS RTS Ouput       Out     GPIO/UART   1M  I+  O+  X
#IRQ3CTS pin# 50,   IRQ/CMOS CTS Sense   in      GPIO/UART       IB? I+

