Skip to content

Commit 6a53980

Browse files
committed
Add 7-bit words to configuration options
1 parent f1e2924 commit 6a53980

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/serial/config.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ impl LowPowerConfig {
109109
self
110110
}
111111

112+
pub fn wordlength_7(mut self) -> Self {
113+
self.wordlength = WordLength::DataBits7;
114+
self
115+
}
116+
112117
pub fn wordlength_8(mut self) -> Self {
113118
self.wordlength = WordLength::DataBits8;
114119
self
@@ -197,6 +202,11 @@ impl FullConfig {
197202
self
198203
}
199204

205+
pub fn wordlength_7(mut self) -> Self {
206+
self.wordlength = WordLength::DataBits7;
207+
self
208+
}
209+
200210
pub fn wordlength_8(mut self) -> Self {
201211
self.wordlength = WordLength::DataBits8;
202212
self

0 commit comments

Comments
 (0)