Skip to content

Commit 6646792

Browse files
Merge pull request #48 from FrameworkComputer/full-width-inputmodule
chromium_ec: Add full-width input module
2 parents b6b235c + fbe6dc2 commit 6646792

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

framework_lib/src/chromium_ec/input_deck.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ enum InputDeckMux {
1010
/// C1 all the way left
1111
/// B1 all the way left
1212
/// Keyboard left
13+
/// Full Width module
1314
TopRow0 = 0,
1415
/// C1 2nd-most left
1516
/// Keyboard middle
@@ -38,7 +39,7 @@ pub enum InputModuleType {
3839
Reserved3,
3940
Reserved4,
4041
Reserved5,
41-
Reserved6,
42+
FullWidth,
4243
HubBoard,
4344
GenericA,
4445
GenericB,
@@ -58,7 +59,7 @@ impl From<u8> for InputModuleType {
5859
3 => Self::Reserved3,
5960
4 => Self::Reserved4,
6061
5 => Self::Reserved5,
61-
6 => Self::Reserved6,
62+
6 => Self::FullWidth,
6263
7 => Self::HubBoard,
6364
8 => Self::GenericA,
6465
9 => Self::GenericB,
@@ -84,7 +85,7 @@ impl InputModuleType {
8485
Self::Reserved3 => 0,
8586
Self::Reserved4 => 0,
8687
Self::Reserved5 => 0,
87-
Self::Reserved6 => 0,
88+
Self::FullWidth => 8,
8889
Self::HubBoard => 0,
8990
Self::GenericA => 6,
9091
Self::GenericB => 2,
@@ -202,6 +203,7 @@ pub struct TopRowPositions {
202203
/// C1 all the way left
203204
/// B1 all the way left
204205
/// Keyboard left
206+
/// Full Width module
205207
pub pos0: InputModuleType,
206208
/// C1 2nd-most left
207209
/// Keyboard middle

0 commit comments

Comments
 (0)