65 lines
1.9 KiB
C
65 lines
1.9 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 USB_CLASS_STILL_IMAGE // 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_EP_BULK_IN "/dev/ffs-camtp/ep1"
|
||
|
#define USB_EP_BULK_OUT "/dev/ffs-camtp/ep2"
|
||
|
#define USB_EP_INT_IN "/dev/ffs-camtp/ep3"
|
||
|
enum
|
||
|
{
|
||
|
EP_IND_BULK_IN = 0,
|
||
|
EP_IND_BULK_OUT,
|
||
|
EP_IND_INT_IN,
|
||
|
};
|
||
|
|
||
|
#define MANUFACTURER "HUAGAO Technologies"
|
||
|
#define PRODUCT "HUAGAO"
|
||
|
#define SERIALNUMBER "01234567ABCDEFG"
|
||
|
#define USB_INTERFACE "camtp"
|
||
|
|
||
|
#endif
|