Tage Mellemstrand 9310455cac
Add function to detect the gyro model in a 3ds (#949)
* Add gyro model detection

* Add gyro detection to sysinfo

* Add gyro model as lua global

* Normalize line endings to LF

* Add documentation, add var to gm9 script, change model to start at 1
2026-03-20 15:29:18 +01:00

21 lines
354 B
C

#pragma once
#include "common.h"
typedef enum {
GYRO_1_WHO_AM_I = 0x00,
GYRO_1_PWR_MGM = 0x3E
} GyroModel1Register;
typedef enum {
GYRO_2_PWR_MGM_1 = 0x6B,
GYRO_2_WHO_AM_I = 0x75
} GyroModel2Register;
typedef enum {
GYRO_3_PWR_MGM = 0x39 // Unconfirmed
} GyroModel3Register;
u32 GetGyroModel();
const char* GetGyroModelString();