From 82f012405dc9a094fa3c63d1b4ac8aadaea798a4 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Wed, 1 May 2024 18:32:58 +0200 Subject: [PATCH] MTC: Add output details --- content/controllers/usb/cotm02001/_index.md | 9 ++++++++- content/controllers/usb/sotp031201/_index.md | 11 ++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/content/controllers/usb/cotm02001/_index.md b/content/controllers/usb/cotm02001/_index.md index fd8f72a..a29428e 100644 --- a/content/controllers/usb/cotm02001/_index.md +++ b/content/controllers/usb/cotm02001/_index.md @@ -46,6 +46,13 @@ The second button byte also uses six bits to represent the state of the physical ### Output -No details are known regarding internal functioning. +The controller supports receiving data via a control transfer to turn on/off the lamps. The setup packet is as follows: +| bmRequestType | bRequest | wValue | wIndex | wLength | +|:-------------:|:--------:|:---------:|:------:|:-------:| +| 0x40 | 0x50 | Lamp data | 0x0000 | 0x0000 | +Changing *wValue* controls the lamps with the logic below. + +* **Door lamp:** **0x0X** is **Off**, **0x1X** is **On**. +* **Signal lamp:** **0xX0** is **Off**, **0xX1** is **ATS**, **0xX2** is **45**, **0xX3** is **15**. diff --git a/content/controllers/usb/sotp031201/_index.md b/content/controllers/usb/sotp031201/_index.md index d420461..8a99aa9 100644 --- a/content/controllers/usb/sotp031201/_index.md +++ b/content/controllers/usb/sotp031201/_index.md @@ -68,4 +68,13 @@ The second button byte also uses six bits to represent the state of the physical #### Output -No details are known regarding internal functioning. +The controller supports receiving data via a control transfer to turn on/off the lamps. The setup packet is as follows: + +| bmRequestType | bRequest | wValue | wIndex | wLength | +|:-------------:|:--------:|:---------:|:------:|:-------:| +| 0x40 | 0x50 | Lamp data | 0x0000 | 0x0000 | + +Changing *wValue* controls the lamps with the logic below. + +* **Door lamp:** **0x0X** is **Off**, **0x1X** is **On**. +* **Signal lamp:** **0xX0** is **Off**, **0xX1** is **ATS**, **0xX2** is **45**, **0xX3** is **15**.