HID Shared Memory: Difference between revisions
No edit summary |
|||
Line 202: | Line 202: | ||
|} | |} | ||
The size of this region is 0x50-bytes. This contains the accelerometer state. | The size of this region is 0x50-bytes. This contains the accelerometer state. The data stored under these entries is loaded from [[MCU|MCUHID]] service commands. | ||
The data stored under these entries is loaded from [[MCU|MCUHID]] service commands. | |||
HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0. | HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0. | ||
Line 257: | Line 255: | ||
|} | |} | ||
The size of this region is 0xE0-bytes. Initially this contains 0xFF/0x00 bytes. This contains the gyroscope state. | The size of this region is 0xE0-bytes. Initially this contains 0xFF/0x00 bytes. This contains the gyroscope state. The [[I2C]] gyroscope device is used for this. | ||
HID module first updates index0, then index1, and so on. When updating the array when the index is already 31, the index is reset to 0. | HID module first updates index0, then index1, and so on. When updating the array when the index is already 31, the index is reset to 0. | ||
Line 306: | Line 304: | ||
|} | |} | ||
The size of this region is 0x78-bytes. Initially this contains 0xFF/0x00 bytes. | The size of this region is 0x78-bytes. Initially this contains 0xFF/0x00 bytes. The data stored under these entries is loaded from [[I2C]] deviceid 12. | ||
HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0. | HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0. |