@@ -34,7 +34,7 @@ public enum LibConfigFlags
3434 RadioConfigAlways = 0x01 ,
3535 /// <summary>The message out inc time stamp</summary>
3636 MesgOutIncTimeStamp = 0x20 ,
37- /// <summary>The message out inc rssi </summary>
37+ /// <summary>The message out inc RSSI </summary>
3838 MesgOutIncRssi = 0x40 ,
3939 /// <summary>The message out inc device identifier</summary>
4040 MesgOutIncDeviceId = 0x80 ,
@@ -48,37 +48,23 @@ public interface IAntConfiguration
4848 /// <param name="maxPacketLength">Maximum length of the packet.</param>
4949 /// <param name="requiredFields">The required fields.</param>
5050 /// <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>
5852 /// <returns>
5953 /// true if successful
6054 /// </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 ) ;
7056 /// <summary>Configures the extended advanced bursting.</summary>
7157 /// <param name="enable">if set to <c>true</c> [enable].</param>
7258 /// <param name="maxPacketLength">Maximum length of the packet.</param>
7359 /// <param name="requiredFields">The required fields.</param>
7460 /// <param name="optionalFields">The optional fields.</param>
7561 /// <param name="stallCount">The stall count.</param>
7662 /// <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>
7864 /// <returns>
7965 /// true if successful
8066 /// </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 ) ;
8268 /// <summary>Configures the advanced burst splitting.</summary>
8369 /// <param name="splitBursts">if set to <c>true</c> [split bursts].</param>
8470 /// <returns>
@@ -89,111 +75,76 @@ public interface IAntConfiguration
8975 /// <param name="config">The configuration.</param>
9076 /// <param name="size">The size.</param>
9177 /// <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>
9879 /// <returns>
9980 /// true if successful
10081 /// </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 ) ;
10583 /// <summary>Configures the event filter.</summary>
10684 /// <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>
10886 /// <returns>
10987 /// true if successful
11088 /// </returns>
111- bool ConfigureEventFilter ( ushort eventFilter , uint responseWaitTime ) ;
89+ bool ConfigureEventFilter ( ushort eventFilter , uint responseWaitTime = 0 ) ;
11290 /// <summary>Configures the high duty search.</summary>
11391 /// <param name="enable">if set to <c>true</c> [enable].</param>
11492 /// <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>
12094 /// <returns>
12195 /// true if successful
12296 /// </returns>
123- bool ConfigureHighDutySearch ( bool enable , byte suppressionCycles , uint responseWaitTime ) ;
97+ bool ConfigureHighDutySearch ( bool enable , byte suppressionCycles , uint responseWaitTime = 0 ) ;
12498 /// <summary>Configures the user NVM.</summary>
12599 /// <param name="address">The address.</param>
126100 /// <param name="data">The data.</param>
127101 /// <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>
134103 /// <returns>
135104 /// true if successful
136105 /// </returns>
137- bool ConfigureUserNvm ( ushort address , byte [ ] data , byte size , uint responseWaitTime ) ;
106+ bool ConfigureUserNvm ( ushort address , byte [ ] data , byte size , uint responseWaitTime = 0 ) ;
138107 /// <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>
142109 /// <returns>
143110 /// true if successful
144111 /// </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>
150114 /// <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>
152116 /// <returns>
153117 /// true if successful
154118 /// </returns>
155- bool EnableLED ( bool isEnabled , uint responseWaitTime ) ;
119+ bool EnableLED ( bool isEnabled , uint responseWaitTime = 0 ) ;
156120 /// <summary>Enables Rx extended messages.</summary>
157121 /// <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>
162123 /// <returns>
163124 /// true if successful
164125 /// </returns>
165- bool EnableRxExtendedMessages ( bool isEnabled , uint responseWaitTime ) ;
126+ bool EnableRxExtendedMessages ( bool isEnabled , uint responseWaitTime = 0 ) ;
166127 /// <summary>Sets the library configuration.</summary>
167128 /// <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>
172130 /// <returns>
173131 /// true if successful
174132 /// </returns>
175- bool SetLibConfig ( LibConfigFlags libConfigFlags , uint responseWaitTime ) ;
133+ bool SetLibConfig ( LibConfigFlags libConfigFlags , uint responseWaitTime = 0 ) ;
176134 /// <summary>Sets the network key.</summary>
177135 /// <param name="netNumber">The network number.</param>
178136 /// <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>
184138 /// <returns>
185139 /// true if successful
186140 /// </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 ) ;
191142 /// <summary>Sets the transmit power for all channels.</summary>
192143 /// <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>
194145 /// <returns>
195146 /// true if successful
196147 /// </returns>
197- bool SetTransmitPowerForAllChannels ( TransmitPower transmitPower , uint responseWaitTime ) ;
148+ bool SetTransmitPowerForAllChannels ( TransmitPower transmitPower , uint responseWaitTime = 0 ) ;
198149 }
199150}
0 commit comments