@@ -77,49 +77,49 @@ public Identification(ushort vendorId, ushort productId, ushort bcdProductVersio
77
77
/// <summary>
78
78
/// Returns the number of available alternate settings of the DFU interface.
79
79
/// </summary>
80
- public abstract byte NumberOfAlternateSettings { get ; }
80
+ protected abstract byte NumberOfAlternateSettings { get ; }
81
81
82
82
/// <summary>
83
83
/// Gets or sets the DFU interface's alternate setting.
84
84
/// </summary>
85
- public abstract byte AlternateSetting { get ; set ; }
85
+ protected abstract byte AlternateSetting { get ; set ; }
86
86
87
87
/// <summary>
88
88
/// Returns the string index of the specified alternate selector.
89
89
/// </summary>
90
90
/// <param name="altSetting">The alternate selector index</param>
91
91
/// <returns>The string index</returns>
92
- public abstract byte iAlternateSetting ( byte altSetting ) ;
92
+ protected abstract byte iAlternateSetting ( byte altSetting ) ;
93
93
94
94
/// <summary>
95
95
/// Reads the USB device string for a specific string index.
96
96
/// </summary>
97
97
/// <param name="iString">USB device string index to read with</param>
98
98
/// <returns>The string from the device</returns>
99
- public abstract string GetString ( byte iString ) ;
99
+ protected abstract string GetString ( byte iString ) ;
100
100
101
101
/// <summary>
102
102
/// USB class-specific control transfer to the DFU interface, with 0 length.
103
103
/// </summary>
104
104
/// <param name="request">Class request code</param>
105
105
/// <param name="value">Value field of the setup request</param>
106
- public abstract void ControlTransfer ( Request request , ushort value = 0 ) ;
106
+ protected abstract void ControlTransfer ( Request request , ushort value = 0 ) ;
107
107
108
108
/// <summary>
109
109
/// USB class-specific control transfer to the DFU interface, with OUT data.
110
110
/// </summary>
111
111
/// <param name="request">Class request code</param>
112
112
/// <param name="value">Value field of the setup request</param>
113
113
/// <param name="outdata">OUT data to send to the device</param>
114
- public abstract void ControlTransfer ( Request request , ushort value , byte [ ] outdata ) ;
114
+ protected abstract void ControlTransfer ( Request request , ushort value , byte [ ] outdata ) ;
115
115
116
116
/// <summary>
117
117
/// USB class-specific control transfer to the DFU interface, with IN data.
118
118
/// </summary>
119
119
/// <param name="request">Class request code</param>
120
120
/// <param name="value">Value field of the setup request</param>
121
121
/// <param name="indata">IN data to fill from the device</param>
122
- public abstract void ControlTransfer ( Request request , ushort value , ref byte [ ] indata ) ;
122
+ protected abstract void ControlTransfer ( Request request , ushort value , ref byte [ ] indata ) ;
123
123
124
124
// not used, only added for symmetry
125
125
//public abstract void Open();
@@ -139,7 +139,7 @@ public Identification(ushort vendorId, ushort productId, ushort bcdProductVersio
139
139
/// Performs a USB bus reset for the device (also closing the device in the operation).
140
140
/// Only required for devices which don't WillDetach, or are ManifestationTolerant.
141
141
/// </summary>
142
- public abstract void BusReset ( ) ;
142
+ protected abstract void BusReset ( ) ;
143
143
#endregion
144
144
145
145
#region DFU class requests
0 commit comments