Skip to content

Commit a6b804d

Browse files
committed
Clarify deadtime
1 parent 9d65b33 commit a6b804d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/mcpwm.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ pub enum DeadtimeConfig {
192192
// TODO: Figure out what all of those options do and give them nice descriptions
193193
/// MCPWM_BYPASS_RED
194194
///
195+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
196+
/// have no effect with this dead time mode
197+
///
195198
/// ```
196199
/// . . .
197200
/// . . .
@@ -221,6 +224,9 @@ pub enum DeadtimeConfig {
221224

222225
/// MCPWM_BYPASS_FED
223226
///
227+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
228+
/// have no effect with this dead time mode
229+
///
224230
/// ```
225231
/// . . .
226232
/// . . .
@@ -250,6 +256,9 @@ pub enum DeadtimeConfig {
250256

251257
/// MCPWM_ACTIVE_HIGH_MODE
252258
///
259+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
260+
/// have no effect with this dead time mode
261+
///
253262
/// ```
254263
/// . . . .
255264
/// . . . .
@@ -282,6 +291,9 @@ pub enum DeadtimeConfig {
282291

283292
/// MCPWM_ACTIVE_LOW_MODE
284293
///
294+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
295+
/// have no effect with this dead time mode
296+
///
285297
/// ```
286298
/// . . . .
287299
/// . . . .
@@ -314,6 +326,9 @@ pub enum DeadtimeConfig {
314326

315327
/// MCPWM_ACTIVE_HIGH_COMPLIMENT_MODE
316328
///
329+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
330+
/// have no effect with this dead time mode
331+
///
317332
/// ```
318333
/// . . . .
319334
/// . . . .
@@ -346,6 +361,9 @@ pub enum DeadtimeConfig {
346361

347362
/// MCPWM_ACTIVE_LOW_COMPLIMENT_MODE
348363
///
364+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
365+
/// have no effect with this dead time mode
366+
///
349367
/// ```
350368
/// . . . .
351369
/// . . . .
@@ -377,12 +395,18 @@ pub enum DeadtimeConfig {
377395
},
378396

379397
/// MCPWM_ACTIVE_RED_FED_FROM_PWMXA
398+
///
399+
/// Note that `MCPWMXB in` will be completely ignored. This means `Operator::set_duty_b` will
400+
/// have no effect with this dead time mode
380401
ActiveRedFedFromPwmxa {
381402
rising_edge_delay: u16,
382403
falling_edge_delay: u16,
383404
},
384405

385406
/// MCPWM_ACTIVE_RED_FED_FROM_PWMXB
407+
///
408+
/// Note that `MCPWMXA in` will be completely ignored. This means `Operator::set_duty_a` will
409+
/// have no effect with this dead time mode
386410
ActiveRedFedFromPwmxb {
387411
rising_edge_delay: u16,
388412
falling_edge_delay: u16,

0 commit comments

Comments
 (0)