started with l3dg20h definitions
This commit is contained in:
parent
2203b8ed53
commit
76a6db18ab
@ -1,8 +1,23 @@
|
||||
#ifndef MISSION_DEVICES_DEVICEDEFINITIONS_GYROL3GD20DEFINITIONS_H_
|
||||
#define MISSION_DEVICES_DEVICEDEFINITIONS_GYROL3GD20DEFINITIONS_H_
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace L3GD20H {
|
||||
|
||||
static constexpr uint8_t READ_MASK = 0b1000'0000;
|
||||
|
||||
static constexpr uint8_t AUTO_INCREMENT_MASK = 0b0100'0000;
|
||||
|
||||
static constexpr uint8_t WHO_AM_I_REG = 0b0000'1111;
|
||||
static constexpr uint8_t WHO_AM_I_VAL = 0b1101'0111;
|
||||
|
||||
static constexpr uint8_t CTRL_REG_1 = 0b0010'0000;
|
||||
static constexpr uint8_t CTRL_REG_2 = 0b0010'0001;
|
||||
static constexpr uint8_t CTRL_REG_3 = 0b0010'0010;
|
||||
static constexpr uint8_t CTRL_REG_4 = 0b0010'0011;
|
||||
static constexpr uint8_t CTRL_REG_5 = 0b0010'0100;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user