Clarify why we need the mut buffer
This commit is contained in:
parent
986295998a
commit
bc7266394d
@ -428,6 +428,8 @@ impl Default for SequenceConfig {
|
|||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct Sequence<'d> {
|
pub struct Sequence<'d> {
|
||||||
/// The words comprising the sequence. Must not exceed 32767 words.
|
/// The words comprising the sequence. Must not exceed 32767 words.
|
||||||
|
/// The reason for this buffer to be mutable is so that stopping
|
||||||
|
/// the PWM can relinquish the sequence for subsequent modification.
|
||||||
pub words: &'d mut [u16],
|
pub words: &'d mut [u16],
|
||||||
/// Configuration associated with the sequence.
|
/// Configuration associated with the sequence.
|
||||||
pub config: SequenceConfig,
|
pub config: SequenceConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user