@@ -34,7 +34,7 @@ public enum LibConfigFlags
34
34
RadioConfigAlways = 0x01 ,
35
35
/// <summary>The message out inc time stamp</summary>
36
36
MesgOutIncTimeStamp = 0x20 ,
37
- /// <summary>The message out inc rssi </summary>
37
+ /// <summary>The message out inc RSSI </summary>
38
38
MesgOutIncRssi = 0x40 ,
39
39
/// <summary>The message out inc device identifier</summary>
40
40
MesgOutIncDeviceId = 0x80 ,
@@ -48,37 +48,23 @@ public interface IAntConfiguration
48
48
/// <param name="maxPacketLength">Maximum length of the packet.</param>
49
49
/// <param name="requiredFields">The required fields.</param>
50
50
/// <param name="optionalFields">The optional fields.</param>
51
- void ConfigureAdvancedBursting ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields ) ;
52
- /// <summary>Configures the advanced bursting.</summary>
53
- /// <param name="enable">if set to <c>true</c> [enable].</param>
54
- /// <param name="maxPacketLength">Maximum length of the packet.</param>
55
- /// <param name="requiredFields">The required fields.</param>
56
- /// <param name="optionalFields">The optional fields.</param>
57
- /// <param name="responseWaitTime">The response wait time.</param>
51
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
58
52
/// <returns>
59
53
/// true if successful
60
54
/// </returns>
61
- bool ConfigureAdvancedBursting ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields , uint responseWaitTime ) ;
62
- /// <summary>Configures the extended advanced bursting.</summary>
63
- /// <param name="enable">if set to <c>true</c> [enable].</param>
64
- /// <param name="maxPacketLength">Maximum length of the packet.</param>
65
- /// <param name="requiredFields">The required fields.</param>
66
- /// <param name="optionalFields">The optional fields.</param>
67
- /// <param name="stallCount">The stall count.</param>
68
- /// <param name="retryCount">The retry count.</param>
69
- void ConfigureAdvancedBursting_ext ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields , ushort stallCount , byte retryCount ) ;
55
+ bool ConfigureAdvancedBursting ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields , uint responseWaitTime = 0 ) ;
70
56
/// <summary>Configures the extended advanced bursting.</summary>
71
57
/// <param name="enable">if set to <c>true</c> [enable].</param>
72
58
/// <param name="maxPacketLength">Maximum length of the packet.</param>
73
59
/// <param name="requiredFields">The required fields.</param>
74
60
/// <param name="optionalFields">The optional fields.</param>
75
61
/// <param name="stallCount">The stall count.</param>
76
62
/// <param name="retryCount">The retry count.</param>
77
- /// <param name="responseWaitTime">The response wait time.</param>
63
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms .</param>
78
64
/// <returns>
79
65
/// true if successful
80
66
/// </returns>
81
- bool ConfigureAdvancedBursting_ext ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields , ushort stallCount , byte retryCount , uint responseWaitTime ) ;
67
+ bool ConfigureAdvancedBursting_ext ( bool enable , byte maxPacketLength , AdvancedBurstConfigFlags requiredFields , AdvancedBurstConfigFlags optionalFields , ushort stallCount , byte retryCount , uint responseWaitTime = 0 ) ;
82
68
/// <summary>Configures the advanced burst splitting.</summary>
83
69
/// <param name="splitBursts">if set to <c>true</c> [split bursts].</param>
84
70
/// <returns>
@@ -89,111 +75,76 @@ public interface IAntConfiguration
89
75
/// <param name="config">The configuration.</param>
90
76
/// <param name="size">The size.</param>
91
77
/// <param name="time">The time.</param>
92
- void ConfigureEventBuffer ( EventBufferConfig config , ushort size , ushort time ) ;
93
- /// <summary>Configures the event buffer.</summary>
94
- /// <param name="config">The configuration.</param>
95
- /// <param name="size">The size.</param>
96
- /// <param name="time">The time.</param>
97
- /// <param name="responseWaitTime">The response wait time.</param>
78
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
98
79
/// <returns>
99
80
/// true if successful
100
81
/// </returns>
101
- bool ConfigureEventBuffer ( EventBufferConfig config , ushort size , ushort time , uint responseWaitTime ) ;
102
- /// <summary>Configures the event filter.</summary>
103
- /// <param name="eventFilter">The event filter.</param>
104
- void ConfigureEventFilter ( ushort eventFilter ) ;
82
+ bool ConfigureEventBuffer ( EventBufferConfig config , ushort size , ushort time , uint responseWaitTime = 0 ) ;
105
83
/// <summary>Configures the event filter.</summary>
106
84
/// <param name="eventFilter">The event filter.</param>
107
- /// <param name="responseWaitTime">The response wait time.</param>
85
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms .</param>
108
86
/// <returns>
109
87
/// true if successful
110
88
/// </returns>
111
- bool ConfigureEventFilter ( ushort eventFilter , uint responseWaitTime ) ;
89
+ bool ConfigureEventFilter ( ushort eventFilter , uint responseWaitTime = 0 ) ;
112
90
/// <summary>Configures the high duty search.</summary>
113
91
/// <param name="enable">if set to <c>true</c> [enable].</param>
114
92
/// <param name="suppressionCycles">The suppression cycles.</param>
115
- void ConfigureHighDutySearch ( bool enable , byte suppressionCycles ) ;
116
- /// <summary>Configures the high duty search.</summary>
117
- /// <param name="enable">if set to <c>true</c> [enable].</param>
118
- /// <param name="suppressionCycles">The suppression cycles.</param>
119
- /// <param name="responseWaitTime">The response wait time.</param>
93
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
120
94
/// <returns>
121
95
/// true if successful
122
96
/// </returns>
123
- bool ConfigureHighDutySearch ( bool enable , byte suppressionCycles , uint responseWaitTime ) ;
97
+ bool ConfigureHighDutySearch ( bool enable , byte suppressionCycles , uint responseWaitTime = 0 ) ;
124
98
/// <summary>Configures the user NVM.</summary>
125
99
/// <param name="address">The address.</param>
126
100
/// <param name="data">The data.</param>
127
101
/// <param name="size">The size.</param>
128
- void ConfigureUserNvm ( ushort address , byte [ ] data , byte size ) ;
129
- /// <summary>Configures the user NVM.</summary>
130
- /// <param name="address">The address.</param>
131
- /// <param name="data">The data.</param>
132
- /// <param name="size">The size.</param>
133
- /// <param name="responseWaitTime">The response wait time.</param>
102
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
134
103
/// <returns>
135
104
/// true if successful
136
105
/// </returns>
137
- bool ConfigureUserNvm ( ushort address , byte [ ] data , byte size , uint responseWaitTime ) ;
106
+ bool ConfigureUserNvm ( ushort address , byte [ ] data , byte size , uint responseWaitTime = 0 ) ;
138
107
/// <summary>Crystal enable.</summary>
139
- void CrystalEnable ( ) ;
140
- /// <summary>Crystal enable.</summary>
141
- /// <param name="responseWaitTime">The response wait time.</param>
108
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
142
109
/// <returns>
143
110
/// true if successful
144
111
/// </returns>
145
- bool CrystalEnable ( uint responseWaitTime ) ;
146
- /// <summary>Enables the led.</summary>
147
- /// <param name="isEnabled">if set to <c>true</c> [is enabled].</param>
148
- void EnableLED ( bool isEnabled ) ;
149
- /// <summary>Enables the led.</summary>
112
+ bool CrystalEnable ( uint responseWaitTime = 0 ) ;
113
+ /// <summary>Enables the LED.</summary>
150
114
/// <param name="isEnabled">if set to <c>true</c> [is enabled].</param>
151
- /// <param name="responseWaitTime">The response wait time.</param>
115
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms .</param>
152
116
/// <returns>
153
117
/// true if successful
154
118
/// </returns>
155
- bool EnableLED ( bool isEnabled , uint responseWaitTime ) ;
119
+ bool EnableLED ( bool isEnabled , uint responseWaitTime = 0 ) ;
156
120
/// <summary>Enables Rx extended messages.</summary>
157
121
/// <param name="isEnabled">if set to <c>true</c> [is enabled].</param>
158
- void EnableRxExtendedMessages ( bool isEnabled ) ;
159
- /// <summary>Enables Rx extended messages.</summary>
160
- /// <param name="isEnabled">if set to <c>true</c> [is enabled].</param>
161
- /// <param name="responseWaitTime">The response wait time.</param>
122
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
162
123
/// <returns>
163
124
/// true if successful
164
125
/// </returns>
165
- bool EnableRxExtendedMessages ( bool isEnabled , uint responseWaitTime ) ;
126
+ bool EnableRxExtendedMessages ( bool isEnabled , uint responseWaitTime = 0 ) ;
166
127
/// <summary>Sets the library configuration.</summary>
167
128
/// <param name="libConfigFlags">The library configuration flags.</param>
168
- void SetLibConfig ( LibConfigFlags libConfigFlags ) ;
169
- /// <summary>Sets the library configuration.</summary>
170
- /// <param name="libConfigFlags">The library configuration flags.</param>
171
- /// <param name="responseWaitTime">The response wait time.</param>
129
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
172
130
/// <returns>
173
131
/// true if successful
174
132
/// </returns>
175
- bool SetLibConfig ( LibConfigFlags libConfigFlags , uint responseWaitTime ) ;
133
+ bool SetLibConfig ( LibConfigFlags libConfigFlags , uint responseWaitTime = 0 ) ;
176
134
/// <summary>Sets the network key.</summary>
177
135
/// <param name="netNumber">The network number.</param>
178
136
/// <param name="networkKey">The network key.</param>
179
- void SetNetworkKey ( byte netNumber , byte [ ] networkKey ) ;
180
- /// <summary>Sets the network key.</summary>
181
- /// <param name="netNumber">The network number.</param>
182
- /// <param name="networkKey">The network key.</param>
183
- /// <param name="responseWaitTime">The response wait time.</param>
137
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms.</param>
184
138
/// <returns>
185
139
/// true if successful
186
140
/// </returns>
187
- bool SetNetworkKey ( byte netNumber , byte [ ] networkKey , uint responseWaitTime ) ;
188
- /// <summary>Sets the transmit power for all channels.</summary>
189
- /// <param name="transmitPower">The transmit power.</param>
190
- void SetTransmitPowerForAllChannels ( TransmitPower transmitPower ) ;
141
+ bool SetNetworkKey ( byte netNumber , byte [ ] networkKey , uint responseWaitTime = 0 ) ;
191
142
/// <summary>Sets the transmit power for all channels.</summary>
192
143
/// <param name="transmitPower">The transmit power.</param>
193
- /// <param name="responseWaitTime">The response wait time.</param>
144
+ /// <param name="responseWaitTime">The response wait time in milliseconds. The default is 0ms .</param>
194
145
/// <returns>
195
146
/// true if successful
196
147
/// </returns>
197
- bool SetTransmitPowerForAllChannels ( TransmitPower transmitPower , uint responseWaitTime ) ;
148
+ bool SetTransmitPowerForAllChannels ( TransmitPower transmitPower , uint responseWaitTime = 0 ) ;
198
149
}
199
150
}
0 commit comments