#===============================================================================
# Copyright (C) 2014 by Raytrex Technologies Co., Ltd All Rights Reserved.
#
# This file is a example to show you how to make a profile for Zebra capture
# card.
#
# CAPTURE CARD: Zebra4
# SENSOR: OV4688
# Config: RAW10_EXT16. 45fps 1.2GHz. 2 lane. 
#===============================================================================

#===============================================================================
# $ALIAS:     test step display name
#
# I2C_ADDR:   Sensor's I2c address
# I2C_10BIT:  0=7bit, 1=10bit
# I2C_NO_ACK: 1= Ignore I2C ACK and NAK
# DATA_RATE:  n kbps. The data rate of one lane
# LANE:       
# PIC_WIDTH:  Video width
# PIC_HEIGHT: Video height
# CRC:        CRC enable/disable
# SKIP:       Skip a number of picture
#             Ex: SKIP=3, start capture from 4th picture
# FORMAT:     Video format (reference the Video Format Table below)
#-------------------------------------------------------------------------------
#  Video Format Table
#-------------------------------------------------------------------------------
#  1.  FMT_SBGGR8_1X8
#  2.  FMT_SGBRG8_1X8
#  3.  FMT_SGRBG8_1X8
#  4.  FMT_SRGGB8_1X8
#  5.  FMT_SGRBG10_1X10
#  6.  FMT_SRGGB10_1X10
#  7.  FMT_SBGGR10_1X10
#  8.  FMT_SGBRG10_1X10
#  9.  FMT_SGRBG10_DPCM8_1X8
#  10. FMT_SRGGB10_DPCM8_1X8
#  11. FMT_SBGGR10_DPCM8_1X8
#  12. FMT_SGBRG10_DPCM8_1X8
#  13. FMT_RGB565_2X8_BE
#  14. FMT_RGB565_2X8_LE
#  15. FMT_UYVY8_1X16
#  16. FMT_YUYV8_1X16
#-------------------------------------------------------------------------------

[SETTING]
$ALIAS= 4688_1.2G_2Lane  

I2C_ADDR=0x36
I2C_10BIT=0
I2C_NO_ACK=0
DATA_RATE=1200000
LANE=2
PIC_WIDTH= 2688    //0x0a80
PIC_HEIGHT= 1520   //0x05f0
FORMAT=5
CRC=0
SKIP=0
SNAP_CNT=1

//Raytrex RD setting
//REF_CLK=16000

#===============================================================================
# Action command list:
#   I2C_W:WRITE_LEN,DATA...
#         - Write data to device
#   I2C_R:READ_LEN,REG_LEN,REG...
#         - Read data from device
#         - If no REG data then REG_LEN and REG fill 0
#   PWR:2/1/0
#         - POWER pin 0=low, 1=high 2=Z
#   RST:2/1/0
#         - RESET pin 0=low, 1=high 2=Z
#   DELAY:delay_time
#         - Delay time (unit is ms, max vaule is 32768)
#
# Segment definitin
#  [STREAM_ON]/[STREAM_OFF]:Take picture, each profile only allow one
#                           [STREAM_ON] and one [STREAM_OFF] segment.
#       - [STREAM_ON]: All GPIO/I2C/DELAY actions before starting take picture.
#       - [STREAM_OFF]: All GPIO/I2C/DELAY actions after starting take picture.
#  [CONTROL]: Just control device without take picture, not allow to use it with
#             [STREAM_ON]/[STREAM_OFF].
#
#===============================================================================
[STREAM_ON]
//PWR:2
//RST:2
[STREAM_OFF]