Changes

no edit summary
Line 14: Line 14:  
! Description
 
! Description
 
|-
 
|-
| 0x00 || Command || DriveOn
+
| 0x00 || Command || SMC_CMD_ODD_ON
 
|-
 
|-
| 0x01 || Command || DriveOff
+
| 0x01 || Command || SMC_CMD_ODD_OFF
 
|-
 
|-
| 0x02 || Command || DriveEject
+
| 0x02 || Command || SMC_CMD_ODD_EJECT
 
|-
 
|-
| 0x10 || Command || Red LED off
+
| 0x10 || Command || SMC_CMD_SBYLED_OFF
 
|-
 
|-
| 0x11 || Command || Blue LED on
+
| 0x11 || Command || SMC_CMD_PWRLED_ON
 
|-
 
|-
| 0x12 || Command || Blue LED off
+
| 0x12 || Command || SMC_CMD_PWRLED_OFF
 
|-
 
|-
| 0x13 || Command || Blue LED pulse
+
| 0x13 || Command || SMC_CMD_PWRLED_BLINK
 
|-
 
|-
| 0x14 || Command || Yellow LED off
+
| 0x14 || Command || SMC_CMD_C24LED_OFF
 
|-
 
|-
| 0x15 || Command || Yellow LED on
+
| 0x15 || Command || SMC_CMD_C24LED_ON
 
|-
 
|-
| 0x16 || Command || Yellow LED pulse
+
| 0x16 || Command || SMC_CMD_C24LED_BLINK
 
|-
 
|-
| 0x1E || Command || Red LED on
+
| 0x1E || Command || SMC_CMD_SBYLED_ON
 
|-
 
|-
| 0x1F || Command || Red LED pulse
+
| 0x1F || Command || SMC_CMD_SBYLED_BLINK
 
|-
 
|-
| 0x20 || Command || ResetBluetooth
+
| 0x20 || Command || SMC_CMD_RESET_BT
 
|-
 
|-
| 0x21 || Command || ResetWiFi24
+
| 0x21 || Command || SMC_CMD_RESET_WIFI24
 
|-
 
|-
| 0x22 || Command || ResetWiFi5
+
| 0x22 || Command || SMC_CMD_RESET_WIFI5
 
|-
 
|-
| 0x30~0x32 || Read/Write || TimerCounter
+
| 0x30 || Read/Write || SMC_CMD_TIMER_23_16
 
|-
 
|-
| 0x40 || Read || ProgramRevision (val: 0xC5)
+
| 0x31 || Read/Write || SMC_CMD_TIMER_15_08
 
|-
 
|-
| 0x41 || Read || [[#SystemEventFlag|SystemEventFlag]]
+
| 0x32 || Read/Write || SMC_CMD_TIMER_07_00
 
|-
 
|-
| 0x42 || Read || DriveStatus (val: 0x0B, 0x0A?)
+
| 0x40 || Read || SMC_CMD_PROG_REVISION (val: 0xC5)
 
|-
 
|-
| 0x43 || Read/Write || USBPowerControl (bitmask; front USB: 0x1, rear USB: 0x2)
+
| 0x41 || Read || [[#SMC_CMD_SYSTEM_EVENT|SMC_CMD_SYSTEM_EVENT]]
 
|-
 
|-
| 0x44 || Read/Write || [[#NotificationLED|NotificationLED]]
+
| 0x42 || Read || SMC_CMD_ODD_FLAG (val: 0x0B, 0x0A?)
 
|-
 
|-
| 0x45 || Read/Write || PowerFailureState (val: 0x08)
+
| 0x43 || Read/Write || SMC_CMD_USB_FLAG (bitmask; front USB: 0x1, rear USB: 0x2)
 
|-
 
|-
| 0x46 || Read/Write || WifiRstCtrl (val: 0x00)
+
| 0x44 || Read/Write || [[#SMC_CMD_CCIND_FLAG|SMC_CMD_CCIND_FLAG]]
 +
|-
 +
| 0x45 || Read/Write || SMC_CMD_PWRERR_FLAG (val: 0x08)
 +
|-
 +
| 0x46 || Read/Write || [[#SMC_CMD_DEVEN_FLAG|SMC_CMD_DEVEN_FLAG]] (val: 0x00)
 
|-
 
|-
 
| 0x47 || Read || ? not writable (val: 0xFF)
 
| 0x47 || Read || ? not writable (val: 0xFF)
Line 86: Line 90:  
|}
 
|}
   −
=== SystemEventFlag ===
+
=== SMC_CMD_SYSTEM_EVENT ===
 
{| style="border: 1px solid #bbb; border-collapse: collapse; background-color: #eef; padding: 0.2em 0.2em 0.2em 0.2em;" border="1" cellpadding="2"
 
{| style="border: 1px solid #bbb; border-collapse: collapse; background-color: #eef; padding: 0.2em 0.2em 0.2em 0.2em;" border="1" cellpadding="2"
 
|- style="background-color: #ddd;"
 
|- style="background-color: #ddd;"
Line 108: Line 112:  
|}
 
|}
   −
=== NotificationLED ===
+
=== SMC_CMD_CCIND_FLAG ===
 
{| style="border: 1px solid #bbb; border-collapse: collapse; background-color: #eef; padding: 0.2em 0.2em 0.2em 0.2em;" border="1" cellpadding="2"
 
{| style="border: 1px solid #bbb; border-collapse: collapse; background-color: #eef; padding: 0.2em 0.2em 0.2em 0.2em;" border="1" cellpadding="2"
 
|- style="background-color: #ddd;"
 
|- style="background-color: #ddd;"
Line 125: Line 129:  
|-
 
|-
 
| 0x01 || Yellow LED pulse
 
| 0x01 || Yellow LED pulse
 +
|-
 +
|}
 +
 +
=== SMC_CMD_DEVEN_FLAG ===
 +
{| style="border: 1px solid #bbb; border-collapse: collapse; background-color: #eef; padding: 0.2em 0.2em 0.2em 0.2em;" border="1" cellpadding="2"
 +
|- style="background-color: #ddd;"
 +
! Value
 +
! Name
 +
|-
 +
| 0x01 || SMC_DEVEN_WIFI24
 
|-
 
|-
 
|}
 
|}