#!/bin/sh

unit=$1

if [ "$1" == "-u" ] unit=$2 ; fi

if [ "$unit" == ""  ] ; then unit=0 ; fi

# snap options
# -L load the Xilinx
# -f turn on the framer
# -d turn on the descrambler
# -t framing testing, sets up the AMCC for loopback and turn on prbs7 frames with SONET/SDH headers for output 
# each loop is 1MB worth of data, so "-l 4000" corresponds to a 4GB snap
oc192_snap -u $unit -c 1 -l 100 -L -f -d raw
