tx-gxx-linux/device/gxx-linux/usb/inc/default_cfg.h

58 lines
1.7 KiB
C

/*
* CAMTP Responder
* Copyright (c) 2020 Holdtecs Technologies
*
* CAMTP Responder is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* CAMTP Responder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License version 3 for more details.
*
* You should have received a copy of the GNU General Public License
* along with CAMTP Responder; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file default.h
* @brief Main CAMMTP protocol functions.
* @author Barry Ruan <cubex@foxmail.com>
*/
#ifndef _INC_DEFAULT_CFG_H_
#define _INC_DEFAULT_CFG_H_
#ifndef CAMTPR_CONF_FILE
#define CAMTPR_CONF_FILE "/etc/camtprd/camtprd.conf"
#endif
#define MAX_PACKET_SIZE 1024
#define USB_DEV_VENDOR_ID 0x04b4
//0x04B4 // Linux Foundation
#define USB_DEV_PRODUCT_ID 0x8613 // PTP Gadget
#define USB_DEV_CLASS 0x6 // Still Imaging device
#define USB_DEV_SUBCLASS 0x0 //
#define USB_DEV_PROTOCOL 0x0 //
#define USB_DEV_VERSION 0x3008
#define USB_FFS_MODE 1
#define USB_DEV "/dev/ffs-camtp/ep0"
#define USB_EPIN "/dev/ffs-camtp/ep1"
#define USB_EPOUT "/dev/ffs-camtp/ep2"
#define USB_EPINTIN "/dev/ffs-camtp/ep3"
#define MANUFACTURER "HUAGAO Technologies"
#define PRODUCT "HUAGAO"
#define SERIALNUMBER "01234567ABCDEFG"
#endif