Esempio n. 1
0
        public void SendCommand(PTP_Operation op, byte[] data, int num_params, int param1 = 0, int param2 = 0, int param3 = 0, int param4 = 0, int param5 = 0)
        {
            //ptp.ResetParams(); //not needed as all params are set anyway
            ptp.Code = (ushort)op;
            ptp.NParams = num_params; // perhaps check for value value
            ptp.Param1 = param1;
            ptp.Param2 = param2;
            ptp.Param3 = param3;
            ptp.Param4 = param4;
            ptp.Param5 = param5;

            ptp.Send(data);
        }
Esempio n. 2
0
        public void SendCommand(PTP_Operation op, out byte[] data, int num_params, int param1 = 0, int param2 = 0, int param3 = 0, int param4 = 0, int param5 = 0)
        {
            //ptp.ResetParams(); //not needed as all params are set anyway
            ptp.Code    = (ushort)op;
            ptp.NParams = num_params; // perhaps check for value value
            ptp.Param1  = param1;
            ptp.Param2  = param2;
            ptp.Param3  = param3;
            ptp.Param4  = param4;
            ptp.Param5  = param5;

            ptp.Send(out data);
        }
Esempio n. 3
0
        public void SendCommand(
            PTP_Operation op,
            int num_params,
            int param1 = 0,
            int param2 = 0,
            int param3 = 0,
            int param4 = 0,
            int param5 = 0)
        {
            //ptp.ResetParams(); //not needed as all params are set anyway
            this.ptp.Code = (ushort)op;
            this.ptp.NParams = num_params; // perhaps check for value value
            this.ptp.Param1 = param1;
            this.ptp.Param2 = param2;
            this.ptp.Param3 = param3;
            this.ptp.Param4 = param4;
            this.ptp.Param5 = param5;

            this.ptp.Send();
        }