1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
| pub const GyroRange = enum(u8) { _2000DPS = 0, _1000DPS = 1, _500DPS = 2, _250DPS = 3, _125DPS = 4, };
pub const GyroODRBW = enum(u8) { ODR_2000_BW_532 = 0x00, ODR_2000_BW_230 = 0x01, ODR_1000_BW_116 = 0x02, ODR_400_BW_47 = 0x03, ODR_200_BW_64 = 0x06, ODR_200_BW_23 = 0x04, ODR_100_BW_32 = 0x07, ODR_100_BW_12 = 0x05, };
pub const VTable = struct { read_reg: *const fn (ctx: *anyopaque, sen: Sen, reg: u8, data: *u8) anyerror!void, read_regs: *const fn (*anyopaque, Sen, u8, []u8) anyerror!void, write_reg: *const fn (ctx: *anyopaque, sen: Sen, reg: u8, data: u8) anyerror!void, log: *const fn (ctx: *anyopaque, level: u8, msg: []const u8) void, waitms: *const fn (ms: u16) void, };
|